OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_DEVTOOLS_AGENT_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_AGENT_HOST_IMPL_H_ |
6 #define CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_AGENT_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_AGENT_HOST_IMPL_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 BrowserContext* GetBrowserContext() override; | 46 BrowserContext* GetBrowserContext() override; |
47 WebContents* GetWebContents() override; | 47 WebContents* GetWebContents() override; |
48 void DisconnectWebContents() override; | 48 void DisconnectWebContents() override; |
49 void ConnectWebContents(WebContents* wc) override; | 49 void ConnectWebContents(WebContents* wc) override; |
50 | 50 |
51 // DevToolsProtocolDelegate implementation. | 51 // DevToolsProtocolDelegate implementation. |
52 void SendProtocolResponse(int session_id, | 52 void SendProtocolResponse(int session_id, |
53 const std::string& message) override; | 53 const std::string& message) override; |
54 void SendProtocolNotification(const std::string& message) override; | 54 void SendProtocolNotification(const std::string& message) override; |
55 | 55 |
| 56 std::string GetUserAgentOverride() override; |
| 57 |
56 protected: | 58 protected: |
57 DevToolsAgentHostImpl(); | 59 DevToolsAgentHostImpl(); |
58 ~DevToolsAgentHostImpl() override; | 60 ~DevToolsAgentHostImpl() override; |
59 | 61 |
60 void HostClosed(); | 62 void HostClosed(); |
61 void SendMessageToClient(int session_id, const std::string& message); | 63 void SendMessageToClient(int session_id, const std::string& message); |
62 devtools::DevToolsIOContext* GetIOContext() { return &io_context_; } | 64 devtools::DevToolsIOContext* GetIOContext() { return &io_context_; } |
63 | 65 |
64 int session_id() { DCHECK(client_); return session_id_; } | 66 int session_id() { DCHECK(client_); return session_id_; } |
65 | 67 |
(...skipping 24 matching lines...) Expand all Loading... |
90 SendMessageCallback callback_; | 92 SendMessageCallback callback_; |
91 std::string message_buffer_; | 93 std::string message_buffer_; |
92 uint32_t message_buffer_size_; | 94 uint32_t message_buffer_size_; |
93 std::string state_cookie_; | 95 std::string state_cookie_; |
94 int last_call_id_; | 96 int last_call_id_; |
95 }; | 97 }; |
96 | 98 |
97 } // namespace content | 99 } // namespace content |
98 | 100 |
99 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_AGENT_HOST_IMPL_H_ | 101 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_AGENT_HOST_IMPL_H_ |
OLD | NEW |