OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_BROWSER_DEVTOOLS_FORWARDING_AGENT_HOST_H_ | 5 #ifndef CONTENT_BROWSER_DEVTOOLS_FORWARDING_AGENT_HOST_H_ |
6 #define CONTENT_BROWSER_DEVTOOLS_FORWARDING_AGENT_HOST_H_ | 6 #define CONTENT_BROWSER_DEVTOOLS_FORWARDING_AGENT_HOST_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 std::unique_ptr<DevToolsExternalAgentProxyDelegate> delegate); | 23 std::unique_ptr<DevToolsExternalAgentProxyDelegate> delegate); |
24 | 24 |
25 private: | 25 private: |
26 ~ForwardingAgentHost() override; | 26 ~ForwardingAgentHost() override; |
27 | 27 |
28 // DevToolsExternalAgentProxy implementation. | 28 // DevToolsExternalAgentProxy implementation. |
29 void DispatchOnClientHost(const std::string& message) override; | 29 void DispatchOnClientHost(const std::string& message) override; |
30 void ConnectionClosed() override; | 30 void ConnectionClosed() override; |
31 | 31 |
32 // DevToolsAgentHostImpl implementation. | 32 // DevToolsAgentHostImpl implementation. |
33 void Attach() override; | 33 void AttachSession(DevToolsSession* session) override; |
34 void Detach() override; | 34 void DetachSession(int session_id) override; |
35 bool DispatchProtocolMessage(const std::string& message) override; | 35 bool DispatchProtocolMessage( |
| 36 DevToolsSession* session, |
| 37 const std::string& message) override; |
36 | 38 |
37 // DevToolsAgentHost implementation | 39 // DevToolsAgentHost implementation |
38 std::string GetType() override; | 40 std::string GetType() override; |
39 std::string GetTitle() override; | 41 std::string GetTitle() override; |
40 GURL GetURL() override; | 42 GURL GetURL() override; |
41 GURL GetFaviconURL() override; | 43 GURL GetFaviconURL() override; |
42 std::string GetFrontendURL() override; | 44 std::string GetFrontendURL() override; |
43 bool Activate() override; | 45 bool Activate() override; |
44 void Reload() override; | 46 void Reload() override; |
45 bool Close() override; | 47 bool Close() override; |
46 | 48 |
47 std::unique_ptr<DevToolsExternalAgentProxyDelegate> delegate_; | 49 std::unique_ptr<DevToolsExternalAgentProxyDelegate> delegate_; |
48 std::string type_; | 50 std::string type_; |
49 std::string title_; | 51 std::string title_; |
50 GURL url_; | 52 GURL url_; |
51 }; | 53 }; |
52 | 54 |
53 } // namespace content | 55 } // namespace content |
54 | 56 |
55 #endif // CONTENT_BROWSER_DEVTOOLS_FORWARDING_AGENT_HOST_H_ | 57 #endif // CONTENT_BROWSER_DEVTOOLS_FORWARDING_AGENT_HOST_H_ |
OLD | NEW |