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

Side by Side Diff: content/public/browser/devtools_external_agent_proxy.h

Issue 13305002: Remove redundant DevToolsManager methods and clean up its clients. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments Created 7 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/public/browser/devtools_agent_host.h ('k') | content/public/browser/devtools_manager.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_BROWSER_DEVTOOLS_EXTERNAL_AGENT_PROXY_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_DEVTOOLS_EXTERNAL_AGENT_PROXY_H_
6 #define CONTENT_PUBLIC_BROWSER_DEVTOOLS_EXTERNAL_AGENT_PROXY_H_ 6 #define CONTENT_PUBLIC_BROWSER_DEVTOOLS_EXTERNAL_AGENT_PROXY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
11 11
12 namespace content { 12 namespace content {
13 13
14 class DevToolsAgentHost; 14 class DevToolsAgentHost;
15 class DevToolsExternalAgentProxyDelegate; 15 class DevToolsExternalAgentProxyDelegate;
16 16
17 // Describes interface for communication with an external DevTools agent. 17 // Describes interface for communication with an external DevTools agent.
18 class DevToolsExternalAgentProxy { 18 class DevToolsExternalAgentProxy {
19 public: 19 public:
20 // Creates DevToolsExternalAgentProxy to communicate with an agent 20 // Creates DevToolsExternalAgentProxy to communicate with an agent
21 // via the provided |delegate|. 21 // via the provided |delegate|.
22 // Caller get the proxy ownership and keeps the |delegate| ownership. 22 // Caller get the proxy ownership and keeps the |delegate| ownership.
23 static CONTENT_EXPORT DevToolsExternalAgentProxy* Create( 23 static CONTENT_EXPORT DevToolsExternalAgentProxy* Create(
24 DevToolsExternalAgentProxyDelegate* delegate); 24 DevToolsExternalAgentProxyDelegate* delegate);
25 25
26 // Returns the local DevToolsAgentHost for the external agent. 26 // Returns the local DevToolsAgentHost for the external agent.
27 virtual scoped_refptr<DevToolsAgentHost> GetAgentHost() = 0; 27 virtual scoped_refptr<DevToolsAgentHost> GetAgentHost() = 0;
28 28
29 // Sends the message to the client host.
30 virtual void DispatchOnClientHost(const std::string& message) = 0;
31
29 // Informs the client that the connection has closed. 32 // Informs the client that the connection has closed.
30 virtual void ConnectionClosed() = 0; 33 virtual void ConnectionClosed() = 0;
31 34
32 virtual ~DevToolsExternalAgentProxy() {} 35 virtual ~DevToolsExternalAgentProxy() {}
33 }; 36 };
34 37
35 } // namespace content 38 } // namespace content
36 39
37 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_EXTERNAL_AGENT_PROXY_H_ 40 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_EXTERNAL_AGENT_PROXY_H_
OLDNEW
« no previous file with comments | « content/public/browser/devtools_agent_host.h ('k') | content/public/browser/devtools_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698