diff options
author | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-02 17:59:36 +0000 |
---|---|---|
committer | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-02 17:59:36 +0000 |
commit | aa7e932f4c29e47c1f69afc8781115eaba0185bc (patch) | |
tree | fe227fa5da525f47e46a7c42a506e0a70817190f /chrome/browser/debugger/devtools_manager.h | |
parent | 4f967820e2e2e24b438c230cc781df62ecdc2c89 (diff) | |
download | chromium_src-aa7e932f4c29e47c1f69afc8781115eaba0185bc.zip chromium_src-aa7e932f4c29e47c1f69afc8781115eaba0185bc.tar.gz chromium_src-aa7e932f4c29e47c1f69afc8781115eaba0185bc.tar.bz2 |
DevTools: support cross-navigation instrumentation.
Review URL: http://codereview.chromium.org/343075
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30713 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/debugger/devtools_manager.h')
-rw-r--r-- | chrome/browser/debugger/devtools_manager.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/chrome/browser/debugger/devtools_manager.h b/chrome/browser/debugger/devtools_manager.h index d5c6981..56ffb3f8 100644 --- a/chrome/browser/debugger/devtools_manager.h +++ b/chrome/browser/debugger/devtools_manager.h @@ -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 @@ class DevToolsManager : public DevToolsClientHost::CloseListener, 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 @@ private: // 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 @@ private: 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_; |