Bug 909003 - Part c: Remove some includes from WebSocket.h; r=bz
authorMs2ger <ms2ger@gmail.com>
Fri, 06 Sep 2013 08:43:12 +0200
changeset 145767 10055975c7c4e21a80b81a9d5ddb7f7a804ae959
parent 145766 4811bd5aea435972c745c657ca52efa19327148a
child 145768 ab4e4e5c501a8121e80f6bc729c2eeb6a7ad15a9
push id25224
push userMs2ger@gmail.com
push dateFri, 06 Sep 2013 06:44:32 +0000
treeherdermozilla-central@ab5f29823236 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz
bugs909003
milestone26.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 909003 - Part c: Remove some includes from WebSocket.h; r=bz
content/base/src/WebSocket.cpp
content/base/src/WebSocket.h
--- a/content/base/src/WebSocket.cpp
+++ b/content/base/src/WebSocket.cpp
@@ -15,17 +15,16 @@
 #include "nsIDocument.h"
 #include "nsXPCOM.h"
 #include "nsIXPConnect.h"
 #include "nsContentUtils.h"
 #include "nsCxPusher.h"
 #include "nsEventDispatcher.h"
 #include "nsError.h"
 #include "nsIScriptObjectPrincipal.h"
-#include "nsDOMClassInfoID.h"
 #include "nsIURL.h"
 #include "nsICharsetConverterManager.h"
 #include "nsIUnicodeEncoder.h"
 #include "nsThreadUtils.h"
 #include "nsIDOMMessageEvent.h"
 #include "nsIPromptFactory.h"
 #include "nsIWindowWatcher.h"
 #include "nsIPrompt.h"
@@ -40,16 +39,17 @@
 #include "mozilla/Preferences.h"
 #include "nsDOMLists.h"
 #include "xpcpublic.h"
 #include "nsContentPolicyUtils.h"
 #include "nsDOMFile.h"
 #include "nsWrapperCacheInlines.h"
 #include "nsDOMEventTargetHelper.h"
 #include "nsIObserverService.h"
+#include "nsIWebSocketChannel.h"
 #include "GeneratedEvents.h"
 
 namespace mozilla {
 namespace dom {
 
 #define UTF_8_REPLACEMENT_CHAR    static_cast<PRUnichar>(0xFFFD)
 
 class CallDispatchConnectionCloseEvents: public nsRunnable
--- a/content/base/src/WebSocket.h
+++ b/content/base/src/WebSocket.h
@@ -3,37 +3,30 @@
 /* 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/. */
 
 #ifndef WebSocket_h__
 #define WebSocket_h__
 
 #include "mozilla/Attributes.h"
-#include "mozilla/dom/BindingUtils.h"
-#include "mozilla/dom/EventHandlerBinding.h"
 #include "mozilla/dom/TypedArray.h"
 #include "mozilla/dom/WebSocketBinding.h" // for BinaryType
 #include "mozilla/ErrorResult.h"
-#include "mozilla/Util.h"
 #include "nsAutoPtr.h"
 #include "nsCOMPtr.h"
 #include "nsCycleCollectionParticipant.h"
 #include "nsDOMEventTargetHelper.h"
-#include "nsIDOMDOMStringList.h"
-#include "nsIDOMEventListener.h"
 #include "nsIInterfaceRequestor.h"
 #include "nsIObserver.h"
-#include "nsIPrincipal.h"
 #include "nsIRequest.h"
 #include "nsISupports.h"
 #include "nsISupportsUtils.h"
 #include "nsIWebSocketChannel.h"
 #include "nsIWebSocketListener.h"
-#include "nsIWebSocketListener.h"
 #include "nsString.h"
 #include "nsWeakReference.h"
 #include "nsWrapperCache.h"
 
 #define DEFAULT_WS_SCHEME_PORT  80
 #define DEFAULT_WSS_SCHEME_PORT 443
 
 namespace mozilla {