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

Unified Diff: chrome/browser/debugger/devtools_manager.h

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 | « no previous file | chrome/browser/debugger/devtools_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/debugger/devtools_manager.h
===================================================================
--- chrome/browser/debugger/devtools_manager.h (revision 30693)
+++ chrome/browser/debugger/devtools_manager.h (working copy)
@@ -6,6 +6,8 @@
#define CHROME_BROWSER_DEBUGGER_DEVTOOLS_MANAGER_H_
#include <map>
+#include <set>
+#include <string>
#include "base/ref_counted.h"
#include "chrome/browser/debugger/devtools_client_host.h"
@@ -54,8 +56,10 @@
void ToggleInspectElementMode(RenderViewHost* client_rvh, bool enabled);
void OpenDevToolsWindow(RenderViewHost* inspected_rvh);
-
void ToggleDevToolsWindow(RenderViewHost* inspected_rvh);
+ void RuntimeFeatureStateChanged(RenderViewHost* inspected_rvh,
+ const std::string& feature,
+ bool enabled);
// Starts element inspection in the devtools client.
// Creates one by means of OpenDevToolsWindow if no client
@@ -79,7 +83,8 @@
// client hosted by DevToolsClientHost.
RenderViewHost* GetInspectedRenderViewHost(DevToolsClientHost* client_host);
- void SendAttachToAgent(RenderViewHost* inspected_rvh);
+ void SendAttachToAgent(RenderViewHost* inspected_rvh,
+ const std::set<std::string>& runtime_features);
void SendDetachToAgent(RenderViewHost* inspected_rvh);
void ForceReopenWindow();
@@ -107,6 +112,11 @@
typedef std::map<DevToolsClientHost*, RenderViewHost*>
ClientHostToInspectedRvhMap;
ClientHostToInspectedRvhMap client_host_to_inspected_rvh_;
+
+ typedef std::map<RenderViewHost*, std::set<std::string> >
+ RuntimeFeaturesMap;
+ RuntimeFeaturesMap runtime_features_;
+
RenderViewHost* inspected_rvh_for_reopen_;
bool in_initial_show_;
« no previous file with comments | « no previous file | chrome/browser/debugger/devtools_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698