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

Side by Side Diff: content/browser/frame_host/render_frame_host_impl.h

Issue 2156883002: Use content::FrameOwnerProperties instead of blink::WebFrameOwnerProperties in content/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permission-delegation-frame-owner-properties
Patch Set: Use this everywhere Created 4 years, 5 months 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 #if defined(USE_EXTERNAL_POPUP_MENU) 58 #if defined(USE_EXTERNAL_POPUP_MENU)
59 struct FrameHostMsg_ShowPopup_Params; 59 struct FrameHostMsg_ShowPopup_Params;
60 #endif 60 #endif
61 61
62 namespace base { 62 namespace base {
63 class FilePath; 63 class FilePath;
64 class ListValue; 64 class ListValue;
65 } 65 }
66 66
67 namespace blink { 67 namespace blink {
68 struct WebFrameOwnerProperties;
69 }
70
71 namespace blink {
72 namespace mojom { 68 namespace mojom {
73 class WebBluetoothService; 69 class WebBluetoothService;
74 } 70 }
75 } 71 }
76 72
77 namespace content { 73 namespace content {
78 74
79 class CrossProcessFrameConnector; 75 class CrossProcessFrameConnector;
80 class CrossSiteTransferringRequest; 76 class CrossSiteTransferringRequest;
81 class FrameMojoShell; 77 class FrameMojoShell;
(...skipping 11 matching lines...) Expand all
93 class RenderWidgetHostViewBase; 89 class RenderWidgetHostViewBase;
94 class ResourceRequestBody; 90 class ResourceRequestBody;
95 class StreamHandle; 91 class StreamHandle;
96 class TimeoutMonitor; 92 class TimeoutMonitor;
97 class WebBluetoothServiceImpl; 93 class WebBluetoothServiceImpl;
98 struct ContentSecurityPolicyHeader; 94 struct ContentSecurityPolicyHeader;
99 struct ContextMenuParams; 95 struct ContextMenuParams;
100 struct FileChooserParams; 96 struct FileChooserParams;
101 struct FrameOwnerProperties; 97 struct FrameOwnerProperties;
102 struct GlobalRequestID; 98 struct GlobalRequestID;
103 struct FileChooserParams;
nasko 2016/07/19 21:32:43 Why is this one touched? It seems unrelated to thi
raymes 2016/07/20 03:22:18 It's just a duplicated forward declare that I noti
104 struct Referrer; 99 struct Referrer;
105 struct ResourceResponse; 100 struct ResourceResponse;
106 101
107 class CONTENT_EXPORT RenderFrameHostImpl 102 class CONTENT_EXPORT RenderFrameHostImpl
108 : public RenderFrameHost, 103 : public RenderFrameHost,
109 NON_EXPORTED_BASE(public mojom::FrameHost), 104 NON_EXPORTED_BASE(public mojom::FrameHost),
110 public BrowserAccessibilityDelegate, 105 public BrowserAccessibilityDelegate,
111 public SiteInstanceImpl::Observer { 106 public SiteInstanceImpl::Observer {
112 public: 107 public:
113 using AXTreeSnapshotCallback = 108 using AXTreeSnapshotCallback =
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 // Tracks whether the RenderFrame for this RenderFrameHost has been created in 212 // Tracks whether the RenderFrame for this RenderFrameHost has been created in
218 // the renderer process. This is currently only used for subframes. 213 // the renderer process. This is currently only used for subframes.
219 // TODO(creis): Use this for main frames as well when RVH goes away. 214 // TODO(creis): Use this for main frames as well when RVH goes away.
220 void SetRenderFrameCreated(bool created); 215 void SetRenderFrameCreated(bool created);
221 216
222 // Called for renderer-created windows to resume requests from this frame, 217 // Called for renderer-created windows to resume requests from this frame,
223 // after they are blocked in RenderWidgetHelper::CreateNewWindow. 218 // after they are blocked in RenderWidgetHelper::CreateNewWindow.
224 void Init(); 219 void Init();
225 220
226 int routing_id() const { return routing_id_; } 221 int routing_id() const { return routing_id_; }
227 void OnCreateChildFrame( 222 void OnCreateChildFrame(int new_routing_id,
228 int new_routing_id, 223 blink::WebTreeScopeType scope,
229 blink::WebTreeScopeType scope, 224 const std::string& frame_name,
230 const std::string& frame_name, 225 const std::string& frame_unique_name,
231 const std::string& frame_unique_name, 226 blink::WebSandboxFlags sandbox_flags,
232 blink::WebSandboxFlags sandbox_flags, 227 const FrameOwnerProperties& frame_owner_properties);
233 const blink::WebFrameOwnerProperties& frame_owner_properties);
234 228
235 RenderViewHostImpl* render_view_host() { return render_view_host_; } 229 RenderViewHostImpl* render_view_host() { return render_view_host_; }
236 RenderFrameHostDelegate* delegate() { return delegate_; } 230 RenderFrameHostDelegate* delegate() { return delegate_; }
237 FrameTreeNode* frame_tree_node() { return frame_tree_node_; } 231 FrameTreeNode* frame_tree_node() { return frame_tree_node_; }
238 232
239 const GURL& last_committed_url() const { return last_committed_url_; } 233 const GURL& last_committed_url() const { return last_committed_url_; }
240 234
241 // Allows FrameTreeNode::SetCurrentURL to update this frame's last committed 235 // Allows FrameTreeNode::SetCurrentURL to update this frame's last committed
242 // URL. Do not call this directly, since we rely on SetCurrentURL to track 236 // URL. Do not call this directly, since we rely on SetCurrentURL to track
243 // whether a real load has committed or not. 237 // whether a real load has committed or not.
(...skipping 800 matching lines...) Expand 10 before | Expand all | Expand 10 after
1044 1038
1045 // NOTE: This must be the last member. 1039 // NOTE: This must be the last member.
1046 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; 1040 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;
1047 1041
1048 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 1042 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
1049 }; 1043 };
1050 1044
1051 } // namespace content 1045 } // namespace content
1052 1046
1053 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 1047 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698