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