 Chromium Code Reviews
 Chromium Code Reviews Issue 2484793002:
  Remove access to WebContents in RWHVA::SynchronousFrameMetadata()  (Closed)
    
  
    Issue 2484793002:
  Remove access to WebContents in RWHVA::SynchronousFrameMetadata()  (Closed) 
  | 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 void SignalSynchronousSwapCompositorFrame( | |
| 76 RenderFrameHost* frame_host, | |
| 77 cc::CompositorFrameMetadata* frame_metadata); | |
| 78 | |
| 75 void SynchronousSwapCompositorFrame( | 79 void SynchronousSwapCompositorFrame( | 
| 
dgozman
2016/11/08 23:36:01
Move this to private section please.
 
Jinsuk Kim
2016/11/08 23:54:42
Done.
 | |
| 76 cc::CompositorFrameMetadata frame_metadata); | 80 cc::CompositorFrameMetadata frame_metadata); | 
| 77 | 81 | 
| 78 bool HasRenderFrameHost(RenderFrameHost* host); | 82 bool HasRenderFrameHost(RenderFrameHost* host); | 
| 79 | 83 | 
| 80 FrameTreeNode* frame_tree_node() { return frame_tree_node_; } | 84 FrameTreeNode* frame_tree_node() { return frame_tree_node_; } | 
| 81 | 85 | 
| 82 // DevTooolsAgentHost overrides. | 86 // DevTooolsAgentHost overrides. | 
| 83 void DisconnectWebContents() override; | 87 void DisconnectWebContents() override; | 
| 84 void ConnectWebContents(WebContents* web_contents) override; | 88 void ConnectWebContents(WebContents* web_contents) override; | 
| 85 BrowserContext* GetBrowserContext() override; | 89 BrowserContext* GetBrowserContext() override; | 
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 217 | 221 | 
| 218 // The FrameTreeNode associated with this agent. | 222 // The FrameTreeNode associated with this agent. | 
| 219 FrameTreeNode* frame_tree_node_; | 223 FrameTreeNode* frame_tree_node_; | 
| 220 | 224 | 
| 221 DISALLOW_COPY_AND_ASSIGN(RenderFrameDevToolsAgentHost); | 225 DISALLOW_COPY_AND_ASSIGN(RenderFrameDevToolsAgentHost); | 
| 222 }; | 226 }; | 
| 223 | 227 | 
| 224 } // namespace content | 228 } // namespace content | 
| 225 | 229 | 
| 226 #endif // CONTENT_BROWSER_DEVTOOLS_RENDER_FRAME_DEVTOOLS_AGENT_HOST_H_ | 230 #endif // CONTENT_BROWSER_DEVTOOLS_RENDER_FRAME_DEVTOOLS_AGENT_HOST_H_ | 
| OLD | NEW |