Bug 1545843 - Mark some HTTP XPIDL classes as builtinclass. r=mayhemer
authorAndrew McCreight <continuation@gmail.com>
Tue, 23 Apr 2019 16:05:29 +0000
changeset 470510 17b4c383ffbd54407ed6b16de81881c2bace8ca2
parent 470509 8ab68eea15b8e9585d0dd3ffd7f499b39a808dcb
child 470511 6569e4cca483da6fb943a60e3e60ed4c052f7fc6
push id35906
push useraciure@mozilla.com
push dateTue, 23 Apr 2019 22:14:56 +0000
treeherdermozilla-central@0ce3633f8b80 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmayhemer
bugs1545843
milestone68.0a1
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 1545843 - Mark some HTTP XPIDL classes as builtinclass. r=mayhemer Differential Revision: https://phabricator.services.mozilla.com/D28295
netwerk/base/nsIHttpAuthenticatorCallback.idl
netwerk/base/nsIProxiedProtocolHandler.idl
netwerk/protocol/http/nsIHttpActivityObserver.idl
netwerk/protocol/http/nsIHttpAuthManager.idl
netwerk/protocol/http/nsIHttpAuthenticableChannel.idl
netwerk/protocol/http/nsIHttpAuthenticator.idl
netwerk/protocol/http/nsIHttpChannelAuthProvider.idl
netwerk/protocol/http/nsIHttpChannelChild.idl
netwerk/protocol/http/nsIHttpProtocolHandler.idl
--- a/netwerk/base/nsIHttpAuthenticatorCallback.idl
+++ b/netwerk/base/nsIHttpAuthenticatorCallback.idl
@@ -1,15 +1,15 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #include "nsISupports.idl"
 
-[scriptable, uuid(d989cb03-e446-4086-b9e6-46842cb97bd5)]
+[builtinclass, uuid(d989cb03-e446-4086-b9e6-46842cb97bd5)]
 interface nsIHttpAuthenticatorCallback : nsISupports
 {
   /**
    * Authentication data for a header is available.
    *
    * @param aCreds
    *        Credentials which were obtained asynchonously.
    * @param aFlags
--- a/netwerk/base/nsIProxiedProtocolHandler.idl
+++ b/netwerk/base/nsIProxiedProtocolHandler.idl
@@ -5,17 +5,17 @@
 
 #include "nsIProtocolHandler.idl"
 
 interface nsIChannel;
 interface nsIURI;
 interface nsIProxyInfo;
 interface nsILoadInfo;
 
-[scriptable, uuid(3756047a-fa2b-4b45-9948-3b5f8fc375e7)]
+[scriptable, builtinclass, uuid(3756047a-fa2b-4b45-9948-3b5f8fc375e7)]
 interface nsIProxiedProtocolHandler : nsIProtocolHandler
 {
     /** Create a new channel with the given proxyInfo
      *
      * @param uri the channel uri
      * @param proxyInfo any proxy information that has already been determined,
      *        or null if channel should later determine the proxy on its own using
      *        proxyResolveFlags/proxyURI
--- a/netwerk/protocol/http/nsIHttpActivityObserver.idl
+++ b/netwerk/protocol/http/nsIHttpActivityObserver.idl
@@ -115,14 +115,14 @@ interface nsIHttpActivityObserver : nsIS
 %}
 
 /**
  * nsIHttpActivityDistributor
  *
  * This interface provides a way to register and unregister observers to the
  * http activities.
  */
-[scriptable, uuid(7C512CB8-582A-4625-B5B6-8639755271B5)]
+[scriptable, builtinclass, uuid(7C512CB8-582A-4625-B5B6-8639755271B5)]
 interface nsIHttpActivityDistributor : nsIHttpActivityObserver
 {
     void addObserver(in nsIHttpActivityObserver aObserver);
     void removeObserver(in nsIHttpActivityObserver aObserver);
 };
--- a/netwerk/protocol/http/nsIHttpAuthManager.idl
+++ b/netwerk/protocol/http/nsIHttpAuthManager.idl
@@ -16,17 +16,17 @@ interface nsIPrincipal;
  *
  * This interface exists to provide other HTTP stacks with the
  * ability to share HTTP authentication credentials with Necko.
  * This is currently used by the Java plugin (version 1.5 and
  * higher) to avoid duplicate authentication prompts when the
  * Java client fetches content from a HTTP site that the user
  * has already logged into.
  */
-[scriptable, uuid(54f90444-c52b-4d2d-8916-c59a2bb25938)]
+[scriptable, builtinclass, uuid(54f90444-c52b-4d2d-8916-c59a2bb25938)]
 interface nsIHttpAuthManager : nsISupports
 {
     /**
      * Lookup auth identity.
      *
      * @param aScheme
      *        the URL scheme (e.g., "http").  NOTE: for proxy authentication,
      *        this should be "http" (this includes authentication for CONNECT
--- a/netwerk/protocol/http/nsIHttpAuthenticableChannel.idl
+++ b/netwerk/protocol/http/nsIHttpAuthenticableChannel.idl
@@ -5,17 +5,17 @@
 
 #include "nsIProxiedChannel.idl"
 #include "nsIRequest.idl"
 
 interface nsILoadGroup;
 interface nsIURI;
 interface nsIInterfaceRequestor;
 
-[scriptable, uuid(701093ac-5c7f-429c-99e3-423b041fccb4)]
+[builtinclass, uuid(701093ac-5c7f-429c-99e3-423b041fccb4)]
 interface nsIHttpAuthenticableChannel : nsIProxiedChannel
 {
     /**
      * If the channel being authenticated is using SSL.
      */
     [must_use] readonly attribute boolean isSSL;
 
     /**
--- a/netwerk/protocol/http/nsIHttpAuthenticator.idl
+++ b/netwerk/protocol/http/nsIHttpAuthenticator.idl
@@ -15,17 +15,17 @@ interface nsICancelable;
  * Interface designed to allow for pluggable HTTP authentication modules.
  * Implementations are registered under the ContractID:
  *
  *   "@mozilla.org/network/http-authenticator;1?scheme=<auth-scheme>"
  *
  * where <auth-scheme> is the lower-cased value of the authentication scheme
  * found in the server challenge per the rules of RFC 2617.
  */
-[scriptable, uuid(fef7db8a-a4e2-49d1-9685-19ed7e309b7d)]
+[builtinclass, uuid(fef7db8a-a4e2-49d1-9685-19ed7e309b7d)]
 interface nsIHttpAuthenticator : nsISupports
 {
     /**
      * Upon receipt of a server challenge, this function is called to determine
      * whether or not the current user identity has been rejected.  If true,
      * then the user will be prompted by the channel to enter (or revise) their
      * identity.  Following this, generateCredentials will be called.
      *
--- a/netwerk/protocol/http/nsIHttpChannelAuthProvider.idl
+++ b/netwerk/protocol/http/nsIHttpChannelAuthProvider.idl
@@ -20,17 +20,17 @@ interface nsIHttpAuthenticableChannel;
  * in order to get the http cached headers credentials. When the request is
  * unsuccessful because of receiving either a 401 or 407 http response code
  * ProcessAuthentication MUST be called and the page MUST be requested again
  * with the new credentials that the user has provided. After a successful
  * request, checkForSuperfluousAuth MAY be called, and disconnect MUST be
  * called.
  */
 
-[scriptable, uuid(788f331b-2e1f-436c-b405-4f88a31a105b)]
+[builtinclass, uuid(788f331b-2e1f-436c-b405-4f88a31a105b)]
 interface nsIHttpChannelAuthProvider : nsICancelable
 {
   /**
    * Initializes the http authentication support for the channel.
    * Implementations must hold a weak reference of the channel.
    */
   [must_use] void init(in nsIHttpAuthenticableChannel channel);
 
--- a/netwerk/protocol/http/nsIHttpChannelChild.idl
+++ b/netwerk/protocol/http/nsIHttpChannelChild.idl
@@ -6,17 +6,17 @@
 #include "nsISupports.idl"
 
 [ptr] native RequestHeaderTuples(mozilla::net::RequestHeaderTuples);
 [ref] native MaybeCorsPreflightArgsRef(mozilla::Maybe<mozilla::net::CorsPreflightArgs>);
 
 interface nsIPrincipal;
 interface nsIURI;
 
-[uuid(d02b96ed-2789-4f42-a25c-7abe63de7c18)]
+[builtinclass, uuid(d02b96ed-2789-4f42-a25c-7abe63de7c18)]
 interface nsIHttpChannelChild : nsISupports
 {
   [must_use] void addCookiesToRequest();
 
   // Mark this channel as requiring an interception; this will propagate
   // to the corresponding parent channel when a redirect occurs.
   [must_use]
   void forceIntercepted(in boolean postRedirectChannelShouldIntercept,
--- a/netwerk/protocol/http/nsIHttpProtocolHandler.idl
+++ b/netwerk/protocol/http/nsIHttpProtocolHandler.idl
@@ -9,43 +9,43 @@
 namespace mozilla {
 namespace net {
 class HSTSDataCallbackWrapper;
 }
 }
 %}
 [ptr] native HSTSDataCallbackWrapperPtr(mozilla::net::HSTSDataCallbackWrapper);
 
-[scriptable, uuid(c48126d9-2ddd-485b-a51a-378e917e75f8)]
+[scriptable, builtinclass, uuid(c48126d9-2ddd-485b-a51a-378e917e75f8)]
 interface nsIHttpProtocolHandler : nsIProxiedProtocolHandler
 {
     /**
      * Get the HTTP advertised user agent string.
      */
     [must_use] readonly attribute ACString userAgent;
 
     /**
      * Get the application name.
-	 *
+     *
      * @return The name of this application (eg. "Mozilla").
      */
     [must_use] readonly attribute ACString appName;
 
     /**
      * Get the application version string.
      *
      * @return The complete version (major and minor) string. (eg. "5.0")
      */
     [must_use] readonly attribute ACString appVersion;
 
     /**
      * Get the current platform.
      *
      * @return The platform this application is running on
-     *		   (eg. "Windows", "Macintosh", "X11")
+     *         (eg. "Windows", "Macintosh", "X11")
      */
     [must_use] readonly attribute ACString platform;
 
     /**
      * Get the current oscpu.
      *
      * @return The oscpu this application is running on
      */