Bug 536324 - e10s HTTP: refactor nsHashPropertyBag. Part 1: make nsIChannel.contentLength 64-bit. r=jduell, sr=jst, a=beta5+
authorDan Witte <dwitte@mozilla.com>
Sat, 21 Aug 2010 00:30:29 -0700
changeset 51337 8f84c33993c17930817a45643f6462f626b380c2
parent 51336 5741d88ac97f5c5aee7919a1a7980333c9ebdc16
child 51338 b69195520ef4558c2f780104b88e9e0ba8eb3efc
push id15277
push userdwitte@mozilla.com
push dateTue, 24 Aug 2010 04:18:33 +0000
treeherdermozilla-central@49dc8d6901a7 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjduell, jst, beta5
bugs536324
milestone2.0b5pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 536324 - e10s HTTP: refactor nsHashPropertyBag. Part 1: make nsIChannel.contentLength 64-bit. r=jduell, sr=jst, a=beta5+
netwerk/base/public/nsIChannel.idl
--- a/netwerk/base/public/nsIChannel.idl
+++ b/netwerk/base/public/nsIChannel.idl
@@ -51,17 +51,17 @@ interface nsIStreamListener;
  * by calling nsIChannel::open or nsIChannel::asyncOpen.
  *
  * After a request has been completed, the channel is still valid for accessing
  * protocol-specific results.  For example, QI'ing to nsIHttpChannel allows
  * response headers to be retrieved for the corresponding http transaction.
  *
  * This interface must be used only from the XPCOM main thread.
  */
-[scriptable, uuid(c63a055a-a676-4e71-bf3c-6cfa11082018)]
+[scriptable, uuid(e0bb5c49-c54e-4efb-8f0d-6a7edd926fab)]
 interface nsIChannel : nsIRequest
 {
     /**
      * The original URI used to construct the channel. This is used in
      * the case of a redirect or URI "resolution" (e.g. resolving a
      * resource: URI to a file: URI) so that the original pre-redirect
      * URI can still be obtained.  This is never null.  Attempts to
      * set it to null must throw.
@@ -146,23 +146,21 @@ interface nsIChannel : nsIRequest
      * This attribute only applies to textual data.
      *
      * The value of the contentCharset attribute is a mixedcase string.
      */
     attribute ACString contentCharset;
 
     /**
      * The length of the data associated with the channel if available.  A value
-     * of -1 indicates that the content length is unknown.
-     *
-     * Callers should prefer getting the "content-length" property
-     * as 64-bit value by QIing the channel to nsIPropertyBag2,
-     * if that interface is exposed by the channel.
+     * of -1 indicates that the content length is unknown. Note that this
+     * is a 64-bit value and obsoletes the "content-length" property used on
+     * some channels.
      */
-    attribute long contentLength;
+    attribute PRInt64 contentLength;
 
     /**
      * Synchronously open the channel.
      *
      * @return blocking input stream to the channel's data.
      *
      * NOTE: nsIChannel implementations are not required to implement this
      * method.  Moreover, since this method may block the calling thread, it