Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(721)

Unified Diff: third_party/WebKit/Source/devtools/front_end/main/Main.js

Issue 2453673002: [DevTools] Scope common protocol infrastructure under Protocol namespace in a separate module. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/main/Main.js
diff --git a/third_party/WebKit/Source/devtools/front_end/main/Main.js b/third_party/WebKit/Source/devtools/front_end/main/Main.js
index 198a93a8e4ef0dea29f75d900e276e611f449bae..4550d03085188599497d43f073003e30b16a6a3c 100644
--- a/third_party/WebKit/Source/devtools/front_end/main/Main.js
+++ b/third_party/WebKit/Source/devtools/front_end/main/Main.js
@@ -300,7 +300,7 @@ WebInspector.Main.prototype = {
/**
* @param {function(string)} onMessage
- * @return {!Promise<!InspectorBackendClass.Connection>}
+ * @return {!Promise<!Protocol.Connection>}
*/
_interceptMainConnection: function(onMessage)
{
@@ -312,8 +312,8 @@ WebInspector.Main.prototype = {
},
/**
- * @param {!InspectorBackendClass.Connection.Params} params
- * @return {!InspectorBackendClass.Connection}
+ * @param {!Protocol.Connection.Params} params
+ * @return {!Protocol.Connection}
*/
_createMainConnection: function(params)
{
@@ -959,7 +959,7 @@ WebInspector.Main.InspectedNodeRevealer.prototype = {
WebInspector.sendOverProtocol = function(method, params)
{
return new Promise((resolve, reject) => {
- InspectorBackendClass.sendRawMessageForTesting(method, params, (err, result) => {
+ Protocol.sendRawMessageForTesting(method, params, (err, result) => {
if (err)
return reject(err);
return resolve(result);

Powered by Google App Engine
This is Rietveld 408576698