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

Unified Diff: content/renderer/devtools/devtools_agent.h

Issue 341513002: DevTools: pass agent host id to the renderer (content). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Same w/ reattach. Created 6 years, 6 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
« no previous file with comments | « content/common/devtools_messages.h ('k') | content/renderer/devtools/devtools_agent.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/devtools/devtools_agent.h
diff --git a/content/renderer/devtools/devtools_agent.h b/content/renderer/devtools/devtools_agent.h
index 4c285cdbd1bf34e0f7bb8c5193eaaf3483428afc..3dee0871eeedf1c670d5badf046795955bd52ac8 100644
--- a/content/renderer/devtools/devtools_agent.h
+++ b/content/renderer/devtools/devtools_agent.h
@@ -36,8 +36,8 @@ class DevToolsAgent : public RenderViewObserver,
explicit DevToolsAgent(RenderViewImpl* render_view);
virtual ~DevToolsAgent();
- // Returns agent instance for its host id.
- static DevToolsAgent* FromHostId(int host_id);
+ // Returns agent instance for its routing id.
+ static DevToolsAgent* FromRoutingId(int routing_id);
blink::WebDevToolsAgent* GetWebAgent();
@@ -51,6 +51,7 @@ class DevToolsAgent : public RenderViewObserver,
virtual void sendMessageToInspectorFrontend(const blink::WebString& data);
virtual int hostIdentifier() OVERRIDE;
+ virtual int debuggerId() OVERRIDE;
virtual void saveAgentRuntimeState(const blink::WebString& state) OVERRIDE;
virtual blink::WebDevToolsAgentClient::WebKitClientMessageLoop*
createClientMessageLoop() OVERRIDE;
@@ -77,11 +78,12 @@ class DevToolsAgent : public RenderViewObserver,
virtual void setTouchEventEmulationEnabled(bool enabled,
bool allow_pinch) OVERRIDE;
- void OnAttach();
- void OnReattach(const std::string& agent_state);
+ void OnAttach(const std::string& host_id);
+ void OnReattach(const std::string& host_id,
+ const std::string& agent_state);
void OnDetach();
void OnDispatchOnInspectorBackend(const std::string& message);
- void OnInspectElement(int x, int y);
+ void OnInspectElement(const std::string& host_id, int x, int y);
void OnAddMessageToConsole(ConsoleMessageLevel level,
const std::string& message);
void OnGpuTasksChunk(const std::vector<GpuTaskInfo>& tasks);
« no previous file with comments | « content/common/devtools_messages.h ('k') | content/renderer/devtools/devtools_agent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698