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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Alexandre Poirot 2019-07-09 09:36:16 +00:00
parent 6713234855
commit 9c99764b14
3 changed files with 6 additions and 6 deletions

View File

@ -21,7 +21,7 @@ XPCOMUtils.defineLazyServiceGetter(
class Connection {
/**
* @param WebSocketDebuggerTransport transport
* @param WebSocketTransport transport
* @param httpd.js's Connection httpdConnection
*/
constructor(transport, httpdConnection) {

View File

@ -6,13 +6,13 @@
"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;
@ -20,7 +20,7 @@ function WebSocketDebuggerTransport(socket) {
this.socket = socket;
}
WebSocketDebuggerTransport.prototype = {
WebSocketTransport.prototype = {
ready() {
if (this.active) {
return;

View File

@ -9,7 +9,7 @@ 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(
@ -43,7 +43,7 @@ class Target {
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));
}