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_RENDER_FRAME_DEVTOOLS_AGENT_HOST_H_ | 5 #ifndef CONTENT_BROWSER_DEVTOOLS_RENDER_FRAME_DEVTOOLS_AGENT_HOST_H_ |
6 #define CONTENT_BROWSER_DEVTOOLS_RENDER_FRAME_DEVTOOLS_AGENT_HOST_H_ | 6 #define CONTENT_BROWSER_DEVTOOLS_RENDER_FRAME_DEVTOOLS_AGENT_HOST_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 | 73 |
74 bool HasRenderFrameHost(RenderFrameHost* host); | 74 bool HasRenderFrameHost(RenderFrameHost* host); |
75 | 75 |
76 FrameTreeNode* frame_tree_node() { return frame_tree_node_; } | 76 FrameTreeNode* frame_tree_node() { return frame_tree_node_; } |
77 | 77 |
78 // DevTooolsAgentHost overrides. | 78 // DevTooolsAgentHost overrides. |
79 void DisconnectWebContents() override; | 79 void DisconnectWebContents() override; |
80 void ConnectWebContents(WebContents* web_contents) override; | 80 void ConnectWebContents(WebContents* web_contents) override; |
81 BrowserContext* GetBrowserContext() override; | 81 BrowserContext* GetBrowserContext() override; |
82 WebContents* GetWebContents() override; | 82 WebContents* GetWebContents() override; |
83 Type GetType() override; | 83 std::string GetParentId() override; |
| 84 std::string GetType() override; |
84 std::string GetTitle() override; | 85 std::string GetTitle() override; |
| 86 std::string GetDescription() override; |
85 GURL GetURL() override; | 87 GURL GetURL() override; |
| 88 GURL GetFaviconURL() override; |
86 bool Activate() override; | 89 bool Activate() override; |
| 90 void Reload() override; |
| 91 |
87 bool Close() override; | 92 bool Close() override; |
| 93 base::TimeTicks GetLastActivityTime() override; |
| 94 |
88 bool DispatchProtocolMessage(const std::string& message) override; | 95 bool DispatchProtocolMessage(const std::string& message) override; |
89 | 96 |
90 private: | 97 private: |
91 friend class DevToolsAgentHost; | 98 friend class DevToolsAgentHost; |
92 explicit RenderFrameDevToolsAgentHost(RenderFrameHostImpl*); | 99 explicit RenderFrameDevToolsAgentHost(RenderFrameHostImpl*); |
93 ~RenderFrameDevToolsAgentHost() override; | 100 ~RenderFrameDevToolsAgentHost() override; |
94 | 101 |
95 static scoped_refptr<DevToolsAgentHost> GetOrCreateFor( | 102 static scoped_refptr<DevToolsAgentHost> GetOrCreateFor( |
96 RenderFrameHostImpl* host); | 103 RenderFrameHostImpl* host); |
97 static void AppendAgentHostForFrameIfApplicable( | 104 static void AppendAgentHostForFrameIfApplicable( |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 | 211 |
205 // The FrameTreeNode associated with this agent. | 212 // The FrameTreeNode associated with this agent. |
206 FrameTreeNode* frame_tree_node_; | 213 FrameTreeNode* frame_tree_node_; |
207 | 214 |
208 DISALLOW_COPY_AND_ASSIGN(RenderFrameDevToolsAgentHost); | 215 DISALLOW_COPY_AND_ASSIGN(RenderFrameDevToolsAgentHost); |
209 }; | 216 }; |
210 | 217 |
211 } // namespace content | 218 } // namespace content |
212 | 219 |
213 #endif // CONTENT_BROWSER_DEVTOOLS_RENDER_FRAME_DEVTOOLS_AGENT_HOST_H_ | 220 #endif // CONTENT_BROWSER_DEVTOOLS_RENDER_FRAME_DEVTOOLS_AGENT_HOST_H_ |
OLD | NEW |