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_PROTOCOL_DEVTOOLS_PROTOCOL_HANDLER_H_ | 5 #ifndef CONTENT_BROWSER_DEVTOOLS_PROTOCOL_DEVTOOLS_PROTOCOL_HANDLER_H_ |
6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_DEVTOOLS_PROTOCOL_HANDLER_H_ | 6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_DEVTOOLS_PROTOCOL_HANDLER_H_ |
7 | 7 |
8 #include "content/browser/devtools/protocol/devtools_protocol_dispatcher.h" | 8 #include "content/browser/devtools/protocol/devtools_protocol_dispatcher.h" |
9 | 9 |
10 namespace content { | 10 namespace content { |
11 | 11 |
12 class DevToolsAgentHost; | 12 class DevToolsAgentHost; |
13 class DevToolsAgentHostImpl; | 13 class DevToolsAgentHostImpl; |
14 class DevToolsProtocolDelegate; | |
15 | 14 |
16 class DevToolsProtocolHandler { | 15 class DevToolsProtocolHandler { |
17 public: | 16 public: |
18 using Response = DevToolsProtocolClient::Response; | 17 using Response = DevToolsProtocolClient::Response; |
19 | 18 |
20 explicit DevToolsProtocolHandler(DevToolsAgentHostImpl* agent_host); | 19 explicit DevToolsProtocolHandler(DevToolsAgentHostImpl* agent_host); |
21 virtual ~DevToolsProtocolHandler(); | 20 virtual ~DevToolsProtocolHandler(); |
22 | 21 |
23 void HandleMessage(int session_id, const std::string& message); | 22 void HandleMessage(int session_id, const std::string& message); |
24 bool HandleOptionalMessage(int session_id, | 23 bool HandleOptionalMessage(int session_id, |
(...skipping 16 matching lines...) Expand all Loading... |
41 std::string* method); | 40 std::string* method); |
42 | 41 |
43 DevToolsAgentHost* agent_host_; | 42 DevToolsAgentHost* agent_host_; |
44 DevToolsProtocolClient client_; | 43 DevToolsProtocolClient client_; |
45 DevToolsProtocolDispatcher dispatcher_; | 44 DevToolsProtocolDispatcher dispatcher_; |
46 }; | 45 }; |
47 | 46 |
48 } // namespace content | 47 } // namespace content |
49 | 48 |
50 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_DEVTOOLS_PROTOCOL_HANDLER_H_ | 49 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_DEVTOOLS_PROTOCOL_HANDLER_H_ |
OLD | NEW |