Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(175)

Side by Side Diff: content/browser/devtools/render_frame_devtools_agent_host.h

Issue 2484793002: Remove access to WebContents in RWHVA::SynchronousFrameMetadata() (Closed)
Patch Set: comments Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 RenderFrameHost* current); 65 RenderFrameHost* current);
66 static void OnBeforeNavigation(RenderFrameHost* current, 66 static void OnBeforeNavigation(RenderFrameHost* current,
67 RenderFrameHost* pending); 67 RenderFrameHost* pending);
68 static void OnBeforeNavigation(NavigationHandle* navigation_handle); 68 static void OnBeforeNavigation(NavigationHandle* navigation_handle);
69 static std::unique_ptr<NavigationThrottle> CreateThrottleForNavigation( 69 static std::unique_ptr<NavigationThrottle> CreateThrottleForNavigation(
70 NavigationHandle* navigation_handle); 70 NavigationHandle* navigation_handle);
71 static bool IsNetworkHandlerEnabled(FrameTreeNode* frame_tree_node); 71 static bool IsNetworkHandlerEnabled(FrameTreeNode* frame_tree_node);
72 72
73 static void WebContentsCreated(WebContents* web_contents); 73 static void WebContentsCreated(WebContents* web_contents);
74 74
75 static bool HasFor(RenderFrameHost* frame_host);
76
75 void SynchronousSwapCompositorFrame( 77 void SynchronousSwapCompositorFrame(
76 cc::CompositorFrameMetadata frame_metadata); 78 cc::CompositorFrameMetadata frame_metadata);
77 79
78 bool HasRenderFrameHost(RenderFrameHost* host); 80 bool HasRenderFrameHost(RenderFrameHost* host);
79 81
80 FrameTreeNode* frame_tree_node() { return frame_tree_node_; } 82 FrameTreeNode* frame_tree_node() { return frame_tree_node_; }
81 83
82 // DevTooolsAgentHost overrides. 84 // DevTooolsAgentHost overrides.
83 void DisconnectWebContents() override; 85 void DisconnectWebContents() override;
84 void ConnectWebContents(WebContents* web_contents) override; 86 void ConnectWebContents(WebContents* web_contents) override;
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 219
218 // The FrameTreeNode associated with this agent. 220 // The FrameTreeNode associated with this agent.
219 FrameTreeNode* frame_tree_node_; 221 FrameTreeNode* frame_tree_node_;
220 222
221 DISALLOW_COPY_AND_ASSIGN(RenderFrameDevToolsAgentHost); 223 DISALLOW_COPY_AND_ASSIGN(RenderFrameDevToolsAgentHost);
222 }; 224 };
223 225
224 } // namespace content 226 } // namespace content
225 227
226 #endif // CONTENT_BROWSER_DEVTOOLS_RENDER_FRAME_DEVTOOLS_AGENT_HOST_H_ 228 #endif // CONTENT_BROWSER_DEVTOOLS_RENDER_FRAME_DEVTOOLS_AGENT_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698