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

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

Issue 2797813002: Replicate feature policy container policies. (Closed)
Patch Set: Fix ODR violation Created 3 years, 8 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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 239
240 // Called when this frame has added a child. This is a continuation of an IPC 240 // Called when this frame has added a child. This is a continuation of an IPC
241 // that was partially handled on the IO thread (to allocate |new_routing_id|), 241 // that was partially handled on the IO thread (to allocate |new_routing_id|),
242 // and is forwarded here. The renderer has already been told to create a 242 // and is forwarded here. The renderer has already been told to create a
243 // RenderFrame with |new_routing_id|. 243 // RenderFrame with |new_routing_id|.
244 void OnCreateChildFrame(int new_routing_id, 244 void OnCreateChildFrame(int new_routing_id,
245 blink::WebTreeScopeType scope, 245 blink::WebTreeScopeType scope,
246 const std::string& frame_name, 246 const std::string& frame_name,
247 const std::string& frame_unique_name, 247 const std::string& frame_unique_name,
248 blink::WebSandboxFlags sandbox_flags, 248 blink::WebSandboxFlags sandbox_flags,
249 const ParsedFeaturePolicyHeader& container_policy,
249 const FrameOwnerProperties& frame_owner_properties); 250 const FrameOwnerProperties& frame_owner_properties);
250 251
251 // Called when this frame tries to open a new WebContents, e.g. via a script 252 // Called when this frame tries to open a new WebContents, e.g. via a script
252 // call to window.open(). The renderer has already been told to create the 253 // call to window.open(). The renderer has already been told to create the
253 // RenderView and RenderFrame with the specified route ids, which were 254 // RenderView and RenderFrame with the specified route ids, which were
254 // assigned on the IO thread. 255 // assigned on the IO thread.
255 void OnCreateNewWindow(int32_t render_view_route_id, 256 void OnCreateNewWindow(int32_t render_view_route_id,
256 int32_t main_frame_route_id, 257 int32_t main_frame_route_id,
257 int32_t main_frame_widget_route_id, 258 int32_t main_frame_widget_route_id,
258 const mojom::CreateNewWindowParams& params, 259 const mojom::CreateNewWindowParams& params,
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
730 void OnDidChangeName(const std::string& name, const std::string& unique_name); 731 void OnDidChangeName(const std::string& name, const std::string& unique_name);
731 void OnDidSetFeaturePolicyHeader( 732 void OnDidSetFeaturePolicyHeader(
732 const ParsedFeaturePolicyHeader& parsed_header); 733 const ParsedFeaturePolicyHeader& parsed_header);
733 734
734 // A new set of CSP |policies| has been added to the document. 735 // A new set of CSP |policies| has been added to the document.
735 void OnDidAddContentSecurityPolicies( 736 void OnDidAddContentSecurityPolicies(
736 const std::vector<ContentSecurityPolicy>& policies); 737 const std::vector<ContentSecurityPolicy>& policies);
737 738
738 void OnEnforceInsecureRequestPolicy(blink::WebInsecureRequestPolicy policy); 739 void OnEnforceInsecureRequestPolicy(blink::WebInsecureRequestPolicy policy);
739 void OnUpdateToUniqueOrigin(bool is_potentially_trustworthy_unique_origin); 740 void OnUpdateToUniqueOrigin(bool is_potentially_trustworthy_unique_origin);
740 void OnDidChangeSandboxFlags(int32_t frame_routing_id, 741 void OnDidChangeFramePolicy(
741 blink::WebSandboxFlags flags); 742 int32_t frame_routing_id,
743 blink::WebSandboxFlags flags,
744 const ParsedFeaturePolicyHeader& container_policy);
742 void OnDidChangeFrameOwnerProperties(int32_t frame_routing_id, 745 void OnDidChangeFrameOwnerProperties(int32_t frame_routing_id,
743 const FrameOwnerProperties& properties); 746 const FrameOwnerProperties& properties);
744 void OnUpdateTitle(const base::string16& title, 747 void OnUpdateTitle(const base::string16& title,
745 blink::WebTextDirection title_direction); 748 blink::WebTextDirection title_direction);
746 void OnUpdateEncoding(const std::string& encoding); 749 void OnUpdateEncoding(const std::string& encoding);
747 void OnBeginNavigation(const CommonNavigationParams& common_params, 750 void OnBeginNavigation(const CommonNavigationParams& common_params,
748 const BeginNavigationParams& begin_params); 751 const BeginNavigationParams& begin_params);
749 void OnAbortNavigation(); 752 void OnAbortNavigation();
750 void OnDispatchLoad(); 753 void OnDispatchLoad();
751 void OnAccessibilityEvents( 754 void OnAccessibilityEvents(
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
1175 1178
1176 // NOTE: This must be the last member. 1179 // NOTE: This must be the last member.
1177 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; 1180 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;
1178 1181
1179 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 1182 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
1180 }; 1183 };
1181 1184
1182 } // namespace content 1185 } // namespace content
1183 1186
1184 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 1187 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698