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 26 matching lines...) Expand all Loading... |
37 std::string GetParentId() override; | 37 std::string GetParentId() override; |
38 std::string GetDescription() override; | 38 std::string GetDescription() override; |
39 GURL GetFaviconURL() override; | 39 GURL GetFaviconURL() override; |
40 std::string GetFrontendURL() override; | 40 std::string GetFrontendURL() override; |
41 base::TimeTicks GetLastActivityTime() override; | 41 base::TimeTicks GetLastActivityTime() override; |
42 BrowserContext* GetBrowserContext() override; | 42 BrowserContext* GetBrowserContext() override; |
43 WebContents* GetWebContents() override; | 43 WebContents* GetWebContents() override; |
44 void DisconnectWebContents() override; | 44 void DisconnectWebContents() override; |
45 void ConnectWebContents(WebContents* wc) override; | 45 void ConnectWebContents(WebContents* wc) override; |
46 | 46 |
| 47 void AttachMultiClient(DevToolsAgentHostClient* client); |
47 bool Inspect(); | 48 bool Inspect(); |
48 | 49 |
49 protected: | 50 protected: |
50 DevToolsAgentHostImpl(const std::string& id); | 51 DevToolsAgentHostImpl(const std::string& id); |
51 ~DevToolsAgentHostImpl() override; | 52 ~DevToolsAgentHostImpl() override; |
52 | 53 |
53 static bool ShouldForceCreation(); | 54 static bool ShouldForceCreation(); |
54 | 55 |
55 virtual void AttachSession(DevToolsSession* session) = 0; | 56 virtual void AttachSession(DevToolsSession* session) = 0; |
56 virtual void DetachSession(int session_id) = 0; | 57 virtual void DetachSession(int session_id) = 0; |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 SendMessageCallback callback_; | 104 SendMessageCallback callback_; |
104 std::string message_buffer_; | 105 std::string message_buffer_; |
105 uint32_t message_buffer_size_; | 106 uint32_t message_buffer_size_; |
106 std::string state_cookie_; | 107 std::string state_cookie_; |
107 int last_call_id_; | 108 int last_call_id_; |
108 }; | 109 }; |
109 | 110 |
110 } // namespace content | 111 } // namespace content |
111 | 112 |
112 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_AGENT_HOST_IMPL_H_ | 113 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_AGENT_HOST_IMPL_H_ |
OLD | NEW |