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

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

Issue 12950002: Introduce DevToolsExternalAgentProxy interface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments Created 7 years, 9 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/content_browser.gypi ('k') | content/public/browser/devtools_external_agent_proxy_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/devtools_external_agent_proxy.h
diff --git a/content/public/browser/devtools_external_agent_proxy.h b/content/public/browser/devtools_external_agent_proxy.h
new file mode 100644
index 0000000000000000000000000000000000000000..9e43c648a7e37b976f6b0f58483b12afea6ea7ab
--- /dev/null
+++ b/content/public/browser/devtools_external_agent_proxy.h
@@ -0,0 +1,37 @@
+// Copyright (c) 2013 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_EXTERNAL_AGENT_PROXY_H_
+#define CONTENT_PUBLIC_BROWSER_DEVTOOLS_EXTERNAL_AGENT_PROXY_H_
+
+#include <string>
+
+#include "content/common/content_export.h"
+
+namespace content {
+
+class DevToolsAgentHost;
+class DevToolsExternalAgentProxyDelegate;
+
+// Describes interface for communication with an external DevTools agent.
+class DevToolsExternalAgentProxy {
+ public:
+ // Creates DevToolsExternalAgentProxy to communicate with an agent
+ // via the provided |delegate|.
+ // Caller get the proxy ownership and keeps the |delegate| ownership.
+ static CONTENT_EXPORT DevToolsExternalAgentProxy* Create(
+ DevToolsExternalAgentProxyDelegate* delegate);
+
+ // Returns the local DevToolsAgentHost for the external agent.
+ virtual scoped_refptr<DevToolsAgentHost> GetAgentHost() = 0;
+
+ // Informs the client that the connection has closed.
+ virtual void ConnectionClosed() = 0;
+
+ virtual ~DevToolsExternalAgentProxy() {}
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_EXTERNAL_AGENT_PROXY_H_
« no previous file with comments | « content/content_browser.gypi ('k') | content/public/browser/devtools_external_agent_proxy_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698