Bug 1563685 - Rename WebSocketDebuggerTransport class to match its JSM file name. r=remote-protocol-reviewers,jdescottes,ato
authorAlexandre Poirot <poirot.alex@gmail.com>
Tue, 09 Jul 2019 09:36:16 +0000
changeset 481888 404680ad41e4e7d08aa46081a70095486f14e15f
parent 481887 95f85f3b71bd6be1e51e8dfa589d62c154297bad
child 481889 9f5318689ae7917e6b65b3060405a5f899394ac4
child 482130 f20a93348db55f4a310cb3d67b4599413493de98
push id89450
push userapoirot@mozilla.com
push dateTue, 09 Jul 2019 11:14:55 +0000
treeherderautoland@404680ad41e4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersremote-protocol-reviewers, jdescottes, ato
bugs1563685
milestone70.0a1
first release with
nightly linux32
404680ad41e4 / 70.0a1 / 20190709153742 / files
nightly linux64
404680ad41e4 / 70.0a1 / 20190709153742 / files
nightly mac
404680ad41e4 / 70.0a1 / 20190709153742 / files
nightly win32
404680ad41e4 / 70.0a1 / 20190709153742 / files
nightly win64
404680ad41e4 / 70.0a1 / 20190709153742 / files
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1563685 - Rename WebSocketDebuggerTransport class to match its JSM file name. r=remote-protocol-reviewers,jdescottes,ato Differential Revision: https://phabricator.services.mozilla.com/D37040
remote/Connection.jsm
remote/server/WebSocketTransport.jsm
remote/targets/Target.jsm
--- a/remote/Connection.jsm
+++ b/remote/Connection.jsm
@@ -16,17 +16,17 @@ XPCOMUtils.defineLazyServiceGetter(
   this,
   "UUIDGen",
   "@mozilla.org/uuid-generator;1",
   "nsIUUIDGenerator"
 );
 
 class Connection {
   /**
-   * @param WebSocketDebuggerTransport transport
+   * @param WebSocketTransport transport
    * @param httpd.js's Connection httpdConnection
    */
   constructor(transport, httpdConnection) {
     this.id = UUIDGen.generateUUID().toString();
     this.transport = transport;
     this.httpdConnection = httpdConnection;
 
     this.transport.hooks = this;
--- a/remote/server/WebSocketTransport.jsm
+++ b/remote/server/WebSocketTransport.jsm
@@ -1,31 +1,31 @@
 /* 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/. */
 
 // This is an XPCOM service-ified copy of ../devtools/shared/transport/websocket-transport.js.
 
 "use strict";
 
-var EXPORTED_SYMBOLS = ["WebSocketDebuggerTransport"];
+var EXPORTED_SYMBOLS = ["WebSocketTransport"];
 
 const { EventEmitter } = ChromeUtils.import(
   "resource://gre/modules/EventEmitter.jsm"
 );
 
-function WebSocketDebuggerTransport(socket) {
+function WebSocketTransport(socket) {
   EventEmitter.decorate(this);
 
   this.active = false;
   this.hooks = null;
   this.socket = socket;
 }
 
-WebSocketDebuggerTransport.prototype = {
+WebSocketTransport.prototype = {
   ready() {
     if (this.active) {
       return;
     }
 
     this.socket.addEventListener("message", this);
     this.socket.addEventListener("close", this);
 
--- a/remote/targets/Target.jsm
+++ b/remote/targets/Target.jsm
@@ -4,17 +4,17 @@
 
 "use strict";
 
 var EXPORTED_SYMBOLS = ["Target"];
 
 const { Connection } = ChromeUtils.import(
   "chrome://remote/content/Connection.jsm"
 );
-const { WebSocketDebuggerTransport } = ChromeUtils.import(
+const { WebSocketTransport } = ChromeUtils.import(
   "chrome://remote/content/server/WebSocketTransport.jsm"
 );
 const { WebSocketHandshake } = ChromeUtils.import(
   "chrome://remote/content/server/WebSocketHandshake.jsm"
 );
 
 /**
  * Base class for all the Targets.
@@ -38,17 +38,17 @@ class Target {
       conn.close();
     }
   }
 
   // nsIHttpRequestHandler
 
   async handle(request, response) {
     const so = await WebSocketHandshake.upgrade(request, response);
-    const transport = new WebSocketDebuggerTransport(so);
+    const transport = new WebSocketTransport(so);
     const conn = new Connection(transport, response._connection);
     this.sessions.set(conn, new this.sessionClass(conn, this));
   }
 
   // XPCOM
 
   get QueryInterface() {
     return ChromeUtils.generateQI([Ci.nsIHttpRequestHandler]);