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