Bug 736087 - Remove the ns prefix from the WifiWorker component. r=philikon DONTBUILD
authorBlake Kaplan <mrbkap@gmail.com>
Fri, 16 Mar 2012 18:05:28 +0100
changeset 89722 c22568c8cf0e147e78989f31f678377327141057
parent 89721 350ed35543d2eac1ea831c19bfa4e614f04764a7
child 89723 b972b89518c3385f92eea8c7ca474b66bf6e34e5
child 89791 d223f6c586a983b351151cc9ca3478dde4b1c2c4
child 105996 a4916f9d8d2f217b2d452a5802f8ace5d44f396b
push id22278
push usermrbkap@mozilla.com
push dateMon, 19 Mar 2012 19:27:00 +0000
treeherdermozilla-central@c22568c8cf0e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersphilikon
bugs736087
milestone14.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 736087 - Remove the ns prefix from the WifiWorker component. r=philikon DONTBUILD
b2g/installer/package-manifest.in
browser/installer/package-manifest.in
browser/installer/removed-files.in
dom/system/gonk/SystemWorkerManager.cpp
dom/wifi/Makefile.in
dom/wifi/WifiWorker.h
dom/wifi/WifiWorker.js
dom/wifi/WifiWorker.manifest
dom/wifi/nsWifiWorker.h
dom/wifi/nsWifiWorker.js
dom/wifi/nsWifiWorker.manifest
mobile/xul/installer/package-manifest.in
--- a/b2g/installer/package-manifest.in
+++ b/b2g/installer/package-manifest.in
@@ -402,18 +402,18 @@
 @BINPATH@/components/messageWakeupService.manifest
 @BINPATH@/components/nsFilePicker.js
 @BINPATH@/components/nsFilePicker.manifest
 #ifdef MOZ_B2G_RIL
 @BINPATH@/components/RadioInterfaceLayer.manifest
 @BINPATH@/components/RadioInterfaceLayer.js
 @BINPATH@/components/SmsDatabaseService.manifest
 @BINPATH@/components/SmsDatabaseService.js
-@BINPATH@/components/nsWifiWorker.js
-@BINPATH@/components/nsWifiWorker.manifest
+@BINPATH@/components/WifiWorker.js
+@BINPATH@/components/WifiWorker.manifest
 @BINPATH@/components/DOMWifiManager.js
 @BINPATH@/components/DOMWifiManager.manifest
 #endif
 #ifdef XP_MACOSX
 @BINPATH@/components/libalerts.dylib
 #endif
 #ifdef MOZ_ENABLE_DBUS
 @BINPATH@/components/@DLL_PREFIX@dbusservice@DLL_SUFFIX@
--- a/browser/installer/package-manifest.in
+++ b/browser/installer/package-manifest.in
@@ -383,18 +383,18 @@
 @BINPATH@/components/contentSecurityPolicy.js
 @BINPATH@/components/contentAreaDropListener.manifest
 @BINPATH@/components/contentAreaDropListener.js
 #ifdef MOZ_B2G_RIL
 @BINPATH@/components/RadioInterfaceLayer.manifest
 @BINPATH@/components/RadioInterfaceLayer.js
 @BINPATH@/components/SmsDatabaseService.manifest
 @BINPATH@/components/SmsDatabaseService.js
-@BINPATH@/components/nsWifiWorker.js
-@BINPATH@/components/nsWifiWorker.manifest
+@BINPATH@/components/WifiWorker.js
+@BINPATH@/components/WifiWorker.manifest
 @BINPATH@/components/DOMWifiManager.js
 @BINPATH@/components/DOMWifiManager.manifest
 #endif
 @BINPATH@/components/BrowserProfileMigrators.manifest
 @BINPATH@/components/ProfileMigrator.js
 @BINPATH@/components/ChromeProfileMigrator.js
 @BINPATH@/components/FirefoxProfileMigrator.js
 #ifdef XP_MACOSX
--- a/browser/installer/removed-files.in
+++ b/browser/installer/removed-files.in
@@ -930,18 +930,18 @@ xpicleanup@BIN_SUFFIX@
   components/PlacesProtocolHandler.js
   components/storage-Legacy.js
   components/storage-mozStorage.js
 #ifdef MOZ_B2G_RIL
   components/nsTelephonyWorker.manifest
   components/nsTelephonyWorker.js
   components/Telephony.manifest
   components/Telephony.js
-  components/nsWifiWorker.js
-  components/nsWifiWorker.manifest
+  components/WifiWorker.js
+  components/WifiWorker.manifest
   components/DOMWifiManager.js
   components/DOMWifiManager.manifest
 #endif
   components/txEXSLTRegExFunctions.js
   components/Weave.js
   components/Webapps.js
   components/Webapps.manifest
   components/WebContentConverter.js
--- a/dom/system/gonk/SystemWorkerManager.cpp
+++ b/dom/system/gonk/SystemWorkerManager.cpp
@@ -48,17 +48,17 @@
 
 #include "jstypedarray.h"
 #include "mozilla/dom/workers/Workers.h"
 #include "mozilla/ipc/Ril.h"
 #include "nsContentUtils.h"
 #include "nsServiceManagerUtils.h"
 #include "nsThreadUtils.h"
 #include "nsRadioInterfaceLayer.h"
-#include "nsWifiWorker.h"
+#include "WifiWorker.h"
 
 
 USING_WORKERS_NAMESPACE
 using namespace mozilla::dom::gonk;
 using namespace mozilla::ipc;
 
 namespace {
 
--- a/dom/wifi/Makefile.in
+++ b/dom/wifi/Makefile.in
@@ -50,18 +50,18 @@ FORCE_STATIC_LIB = 1
 
 include $(topsrcdir)/dom/dom-config.mk
 
 XPIDLSRCS = \
   nsIWifi.idl \
   $(NULL)
 
 EXTRA_COMPONENTS = \
-  nsWifiWorker.js \
-  nsWifiWorker.manifest \
+  WifiWorker.js \
+  WifiWorker.manifest \
   DOMWifiManager.js \
   DOMWifiManager.manifest \
   $(NULL)
 
 EXTRA_JS_MODULES = \
   libcutils.js \
   libhardware_legacy.js \
   libnetutils.js \
rename from dom/wifi/nsWifiWorker.h
rename to dom/wifi/WifiWorker.h
rename from dom/wifi/nsWifiWorker.js
rename to dom/wifi/WifiWorker.js
--- a/dom/wifi/nsWifiWorker.js
+++ b/dom/wifi/WifiWorker.js
@@ -1072,17 +1072,17 @@ function isWepHexKey(s) {
   return !/[^a-fA-F0-9]/.test(s);
 }
 
 // TODO Make the difference between a DOM-based network object and our
 // networks objects much clearer.
 let netToDOM;
 let netFromDOM;
 
-function nsWifiWorker() {
+function WifiWorker() {
   var self = this;
 
   this._mm = Cc["@mozilla.org/parentprocessmessagemanager;1"].getService(Ci.nsIFrameMessageManager);
   const messages = ["WifiManager:setEnabled", "WifiManager:getNetworks",
                     "WifiManager:associate", "WifiManager:getState"];
 
   messages.forEach((function(msgName) {
     this._mm.addMessageListener(msgName, this);
@@ -1328,17 +1328,17 @@ function nsWifiWorker() {
         WifiManager.start();
       else
         debug("Couldn't start Wifi");
     });
 
   debug("Wifi starting");
 }
 
-nsWifiWorker.prototype = {
+WifiWorker.prototype = {
   classID:   WIFIWORKER_CID,
   classInfo: XPCOMUtils.generateCI({classID: WIFIWORKER_CID,
                                     contractID: WIFIWORKER_CONTRACTID,
                                     classDescription: "WifiWorker",
                                     interfaces: [Ci.nsIWorkerHolder,
                                                  Ci.nsIWifi]}),
 
   QueryInterface: XPCOMUtils.generateQI([Ci.nsIWorkerHolder,
@@ -1473,18 +1473,18 @@ nsWifiWorker.prototype = {
   // that RadioManager never actually tries to get the worker from us.
   get worker() { throw "Not implemented"; },
 
   shutdown: function() {
     this.setWifiEnabled(false);
   }
 };
 
-const NSGetFactory = XPCOMUtils.generateNSGetFactory([nsWifiWorker]);
+const NSGetFactory = XPCOMUtils.generateNSGetFactory([WifiWorker]);
 
 let debug;
 if (DEBUG) {
   debug = function (s) {
-    dump("-*- nsWifiWorker component: " + s + "\n");
+    dump("-*- WifiWorker component: " + s + "\n");
   };
 } else {
   debug = function (s) {};
 }
rename from dom/wifi/nsWifiWorker.manifest
rename to dom/wifi/WifiWorker.manifest
--- a/dom/wifi/nsWifiWorker.manifest
+++ b/dom/wifi/WifiWorker.manifest
@@ -1,1 +1,1 @@
-component {a14e8977-d259-433a-a88d-58dd44657e5b} nsWifiWorker.js
+component {a14e8977-d259-433a-a88d-58dd44657e5b} WifiWorker.js
--- a/mobile/xul/installer/package-manifest.in
+++ b/mobile/xul/installer/package-manifest.in
@@ -398,18 +398,18 @@
 @BINPATH@/components/messageWakeupService.manifest
 @BINPATH@/components/nsFilePicker.js
 @BINPATH@/components/nsFilePicker.manifest
 #ifdef MOZ_B2G_RIL
 @BINPATH@/components/nsTelephonyWorker.manifest
 @BINPATH@/components/nsTelephonyWorker.js
 @BINPATH@/components/Telephony.manifest
 @BINPATH@/components/Telephony.js
-@BINPATH@/components/nsWifiWorker.js
-@BINPATH@/components/nsWifiWorker.manifest
+@BINPATH@/components/WifiWorker.js
+@BINPATH@/components/WifiWorker.manifest
 @BINPATH@/components/DOMWifiManager.js
 @BINPATH@/components/DOMWifiManager.manifest
 #endif
 #ifdef XP_MACOSX
 @BINPATH@/components/libalerts.dylib
 #endif
 #ifdef MOZ_ENABLE_DBUS
 @BINPATH@/components/@DLL_PREFIX@dbusservice@DLL_SUFFIX@