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

Unified Diff: webkit/glue/devtools/js/inject_dispatch.js

Issue 343075: DevTools: support cross-navigation instrumentation. (Closed)
Patch Set: '' Created 11 years, 1 month 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
« no previous file with comments | « webkit/api/public/WebDevToolsAgentClient.h ('k') | webkit/glue/webdevtoolsagent_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/devtools/js/inject_dispatch.js
===================================================================
--- webkit/glue/devtools/js/inject_dispatch.js (revision 30693)
+++ webkit/glue/devtools/js/inject_dispatch.js (working copy)
@@ -61,6 +61,18 @@
return;
}
+ // Sniff some inspector controller state changes in order to support
+ // cross-navigation instrumentation. Keep names in sync with
+ // webdevtoolsagent_impl.
+ if (method == 'timelineProfilerWasStarted')
+ DevToolsAgentHost.runtimeFeatureStateChanged('timeline-profiler', true);
+ else if (method == 'timelineProfilerWasStopped')
+ DevToolsAgentHost.runtimeFeatureStateChanged('timeline-profiler', false);
+ else if (method == 'resourceTrackingWasEnabled')
+ DevToolsAgentHost.runtimeFeatureStateChanged('resource-tracking', true);
+ else if (method == 'resourceTrackingWasDisabled')
+ DevToolsAgentHost.runtimeFeatureStateChanged('resource-tracking', false);
+
if (ApuAgentDispatcher.enabled) {
ApuAgentDispatcher.dispatchToApu(method, args);
return;
« no previous file with comments | « webkit/api/public/WebDevToolsAgentClient.h ('k') | webkit/glue/webdevtoolsagent_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698