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

Unified Diff: content/public/browser/devtools_agent_host_client.h

Issue 449043002: [DevTools] Make DevTools clients talk directly to DevToolsAgentHost instead of using DevToolsManage… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed DetachAllClients Created 6 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 | « content/public/browser/devtools_agent_host.h ('k') | content/public/browser/devtools_client_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/devtools_agent_host_client.h
diff --git a/content/public/browser/devtools_agent_host_client.h b/content/public/browser/devtools_agent_host_client.h
new file mode 100644
index 0000000000000000000000000000000000000000..7dd0a38c9ae391294ef0666aeb00886c23f7f9a5
--- /dev/null
+++ b/content/public/browser/devtools_agent_host_client.h
@@ -0,0 +1,34 @@
+// Copyright (c) 2014 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_PUBLIC_BROWSER_DEVTOOLS_AGENT_HOST_CLIENT_H_
+#define CONTENT_PUBLIC_BROWSER_DEVTOOLS_AGENT_HOST_CLIENT_H_
+
+#include <string>
+
+#include "base/basictypes.h"
+#include "content/common/content_export.h"
+
+namespace content {
+
+class DevToolsAgentHost;
+
+// DevToolsAgentHostClient can attach to a DevToolsAgentHost and start
+// debugging it.
+class CONTENT_EXPORT DevToolsAgentHostClient {
+ public:
+ virtual ~DevToolsAgentHostClient() {}
+
+ // Dispatches given protocol message on the client.
+ virtual void DispatchProtocolMessage(DevToolsAgentHost* agent_host,
+ const std::string& message) = 0;
+
+ // This method is called when attached agent host is closed.
+ virtual void AgentHostClosed(DevToolsAgentHost* agent_host,
+ bool replaced_with_another_client) = 0;
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_AGENT_HOST_CLIENT_H_
« no previous file with comments | « content/public/browser/devtools_agent_host.h ('k') | content/public/browser/devtools_client_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698