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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 void InspectElement(DevToolsAgentHostClient* client, int x, int y) override; | 44 void InspectElement(DevToolsAgentHostClient* client, int x, int y) override; |
45 std::string GetId() override; | 45 std::string GetId() override; |
46 std::string GetParentId() override; | 46 std::string GetParentId() override; |
47 std::string GetDescription() override; | 47 std::string GetDescription() override; |
48 GURL GetFaviconURL() override; | 48 GURL GetFaviconURL() override; |
49 base::TimeTicks GetLastActivityTime() override; | 49 base::TimeTicks GetLastActivityTime() override; |
50 BrowserContext* GetBrowserContext() override; | 50 BrowserContext* GetBrowserContext() override; |
51 WebContents* GetWebContents() override; | 51 WebContents* GetWebContents() override; |
52 void DisconnectWebContents() override; | 52 void DisconnectWebContents() override; |
53 void ConnectWebContents(WebContents* wc) override; | 53 void ConnectWebContents(WebContents* wc) override; |
54 bool Inspect() override; | 54 bool Inspect(BrowserContext* context) override; |
55 | 55 |
56 // DevToolsProtocolDelegate implementation. | 56 // DevToolsProtocolDelegate implementation. |
57 void SendProtocolResponse(int session_id, | 57 void SendProtocolResponse(int session_id, |
58 const std::string& message) override; | 58 const std::string& message) override; |
59 void SendProtocolNotification(const std::string& message) override; | 59 void SendProtocolNotification(const std::string& message) override; |
60 | 60 |
61 protected: | 61 protected: |
62 DevToolsAgentHostImpl(const std::string& id); | 62 DevToolsAgentHostImpl(const std::string& id); |
63 ~DevToolsAgentHostImpl() override; | 63 ~DevToolsAgentHostImpl() override; |
64 | 64 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 SendMessageCallback callback_; | 99 SendMessageCallback callback_; |
100 std::string message_buffer_; | 100 std::string message_buffer_; |
101 uint32_t message_buffer_size_; | 101 uint32_t message_buffer_size_; |
102 std::string state_cookie_; | 102 std::string state_cookie_; |
103 int last_call_id_; | 103 int last_call_id_; |
104 }; | 104 }; |
105 | 105 |
106 } // namespace content | 106 } // namespace content |
107 | 107 |
108 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_AGENT_HOST_IMPL_H_ | 108 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_AGENT_HOST_IMPL_H_ |
OLD | NEW |