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

Unified Diff: content/browser/debugger/devtools_agent_host.h

Issue 7719026: DevTools: introduce DevToolsAgentHost (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged CreateFor into FindFor Created 9 years, 4 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 | « no previous file | content/browser/debugger/devtools_agent_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/debugger/devtools_agent_host.h
diff --git a/content/browser/debugger/devtools_agent_host.h b/content/browser/debugger/devtools_agent_host.h
new file mode 100644
index 0000000000000000000000000000000000000000..7208e72e1f66c52491ee477cf417be49367b29f7
--- /dev/null
+++ b/content/browser/debugger/devtools_agent_host.h
@@ -0,0 +1,44 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_BROWSER_DEBUGGER_DEVTOOLS_AGENT_HOST_H_
+#define CONTENT_BROWSER_DEBUGGER_DEVTOOLS_AGENT_HOST_H_
+#pragma once
+
+namespace IPC {
+class Message;
+}
+
+// Describes interface for managing devtools agents from the browser process.
+class DevToolsAgentHost {
+ public:
+ class CloseListener {
+ public:
+ virtual void AgentHostClosing(DevToolsAgentHost*) = 0;
+ protected:
+ virtual ~CloseListener() {}
+ };
+
+ // Sends the message to the devtools agent hosted by this object.
+ virtual void SendMessageToAgent(IPC::Message* msg) = 0;
+
+ // TODO(yurys): get rid of this method
+ virtual void NotifyClientClosing() = 0;
+
+ virtual int GetRenderProcessId() = 0;
+
+ void set_close_listener(CloseListener* listener) {
+ close_listener_ = listener;
+ }
+
+ protected:
+ DevToolsAgentHost();
+ virtual ~DevToolsAgentHost() {}
+
+ void NotifyCloseListener();
+
+ CloseListener* close_listener_;
+};
+
+#endif // CONTENT_BROWSER_DEBUGGER_DEVTOOLS_AGENT_HOST_H_
« no previous file with comments | « no previous file | content/browser/debugger/devtools_agent_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698