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

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

Issue 2149833002: DevTools: Add sendOverProtocol() method for protocol debugging (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/Connections.js
diff --git a/third_party/WebKit/Source/devtools/front_end/main/Connections.js b/third_party/WebKit/Source/devtools/front_end/main/Connections.js
index fbab8df5cadac50c903c31f034125fc5f9b89d76..dacd4f58c7f9ee7a31a40c34029a4b8391f4cc90 100644
--- a/third_party/WebKit/Source/devtools/front_end/main/Connections.js
+++ b/third_party/WebKit/Source/devtools/front_end/main/Connections.js
@@ -141,3 +141,7 @@ WebInspector.StubConnection.prototype = {
__proto__: InspectorBackendClass.Connection.prototype
}
+
+WebInspector.sendOverProtocol = function(method, params, cb){
dgozman 2016/07/13 22:50:02 Let's move this to main.
+ WebInspector.targetManager.mainTarget().connection().sendUserMessage(domain, method, params, cb);
+}

Powered by Google App Engine
This is Rietveld 408576698