mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-10 09:19:28 +00:00
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:
parent
6713234855
commit
9c99764b14
@ -21,7 +21,7 @@ XPCOMUtils.defineLazyServiceGetter(
|
||||
|
||||
class Connection {
|
||||
/**
|
||||
* @param WebSocketDebuggerTransport transport
|
||||
* @param WebSocketTransport transport
|
||||
* @param httpd.js's Connection httpdConnection
|
||||
*/
|
||||
constructor(transport, httpdConnection) {
|
||||
|
@ -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;
|
||||
|
@ -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));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user