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 std::string GetParentId() override; | 83 Type GetType() override; |
84 std::string GetType() override; | |
85 std::string GetTitle() override; | 84 std::string GetTitle() override; |
86 std::string GetDescription() override; | |
87 GURL GetURL() override; | 85 GURL GetURL() override; |
88 GURL GetFaviconURL() override; | |
89 bool Activate() override; | 86 bool Activate() override; |
90 void Reload() override; | |
91 | |
92 bool Close() override; | 87 bool Close() override; |
93 base::TimeTicks GetLastActivityTime() override; | |
94 | |
95 bool DispatchProtocolMessage(const std::string& message) override; | 88 bool DispatchProtocolMessage(const std::string& message) override; |
96 | 89 |
97 private: | 90 private: |
98 friend class DevToolsAgentHost; | 91 friend class DevToolsAgentHost; |
99 explicit RenderFrameDevToolsAgentHost(RenderFrameHostImpl*); | 92 explicit RenderFrameDevToolsAgentHost(RenderFrameHostImpl*); |
100 ~RenderFrameDevToolsAgentHost() override; | 93 ~RenderFrameDevToolsAgentHost() override; |
101 | 94 |
102 static scoped_refptr<DevToolsAgentHost> GetOrCreateFor( | 95 static scoped_refptr<DevToolsAgentHost> GetOrCreateFor( |
103 RenderFrameHostImpl* host); | 96 RenderFrameHostImpl* host); |
104 static void AppendAgentHostForFrameIfApplicable( | 97 static void AppendAgentHostForFrameIfApplicable( |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 | 204 |
212 // The FrameTreeNode associated with this agent. | 205 // The FrameTreeNode associated with this agent. |
213 FrameTreeNode* frame_tree_node_; | 206 FrameTreeNode* frame_tree_node_; |
214 | 207 |
215 DISALLOW_COPY_AND_ASSIGN(RenderFrameDevToolsAgentHost); | 208 DISALLOW_COPY_AND_ASSIGN(RenderFrameDevToolsAgentHost); |
216 }; | 209 }; |
217 | 210 |
218 } // namespace content | 211 } // namespace content |
219 | 212 |
220 #endif // CONTENT_BROWSER_DEVTOOLS_RENDER_FRAME_DEVTOOLS_AGENT_HOST_H_ | 213 #endif // CONTENT_BROWSER_DEVTOOLS_RENDER_FRAME_DEVTOOLS_AGENT_HOST_H_ |
OLD | NEW |