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

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

Issue 2612793002: Implement ContentSecurityPolicy on the browser-side. (Closed)
Patch Set: Rename SchemeShouldBypass => SchemeShouldBypassCSP. Created 3 years, 10 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 12 matching lines...) Expand all
23 #include "base/time/time.h" 23 #include "base/time/time.h"
24 #include "build/build_config.h" 24 #include "build/build_config.h"
25 #include "content/browser/accessibility/browser_accessibility_manager.h" 25 #include "content/browser/accessibility/browser_accessibility_manager.h"
26 #include "content/browser/bad_message.h" 26 #include "content/browser/bad_message.h"
27 #include "content/browser/loader/global_routing_id.h" 27 #include "content/browser/loader/global_routing_id.h"
28 #include "content/browser/site_instance_impl.h" 28 #include "content/browser/site_instance_impl.h"
29 #include "content/browser/webui/web_ui_impl.h" 29 #include "content/browser/webui/web_ui_impl.h"
30 #include "content/common/accessibility_mode_enums.h" 30 #include "content/common/accessibility_mode_enums.h"
31 #include "content/common/ax_content_node_data.h" 31 #include "content/common/ax_content_node_data.h"
32 #include "content/common/content_export.h" 32 #include "content/common/content_export.h"
33 #include "content/common/content_security_policy/csp_policy.h"
33 #include "content/common/download/mhtml_save_status.h" 34 #include "content/common/download/mhtml_save_status.h"
34 #include "content/common/frame.mojom.h" 35 #include "content/common/frame.mojom.h"
35 #include "content/common/frame_message_enums.h" 36 #include "content/common/frame_message_enums.h"
36 #include "content/common/frame_replication_state.h" 37 #include "content/common/frame_replication_state.h"
37 #include "content/common/image_downloader/image_downloader.mojom.h" 38 #include "content/common/image_downloader/image_downloader.mojom.h"
38 #include "content/common/navigation_params.h" 39 #include "content/common/navigation_params.h"
39 #include "content/public/browser/render_frame_host.h" 40 #include "content/public/browser/render_frame_host.h"
40 #include "content/public/common/javascript_dialog_type.h" 41 #include "content/public/common/javascript_dialog_type.h"
41 #include "content/public/common/previews_state.h" 42 #include "content/public/common/previews_state.h"
42 #include "media/mojo/interfaces/interface_factory.mojom.h" 43 #include "media/mojo/interfaces/interface_factory.mojom.h"
(...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after
715 void OnTextSurroundingSelectionResponse(const base::string16& content, 716 void OnTextSurroundingSelectionResponse(const base::string16& content,
716 uint32_t start_offset, 717 uint32_t start_offset,
717 uint32_t end_offset); 718 uint32_t end_offset);
718 void OnFocusedFormFieldDataResponse(int request_id, 719 void OnFocusedFormFieldDataResponse(int request_id,
719 const FormFieldData& field_data); 720 const FormFieldData& field_data);
720 void OnDidAccessInitialDocument(); 721 void OnDidAccessInitialDocument();
721 void OnDidChangeOpener(int32_t opener_routing_id); 722 void OnDidChangeOpener(int32_t opener_routing_id);
722 void OnDidChangeName(const std::string& name, const std::string& unique_name); 723 void OnDidChangeName(const std::string& name, const std::string& unique_name);
723 void OnDidSetFeaturePolicyHeader( 724 void OnDidSetFeaturePolicyHeader(
724 const ParsedFeaturePolicyHeader& parsed_header); 725 const ParsedFeaturePolicyHeader& parsed_header);
725 void OnDidAddContentSecurityPolicy(const ContentSecurityPolicyHeader& header); 726 void OnDidAddContentSecurityPolicy(const ContentSecurityPolicyHeader& header,
727 const std::vector<CSPPolicy>& policy);
726 void OnEnforceInsecureRequestPolicy(blink::WebInsecureRequestPolicy policy); 728 void OnEnforceInsecureRequestPolicy(blink::WebInsecureRequestPolicy policy);
727 void OnUpdateToUniqueOrigin(bool is_potentially_trustworthy_unique_origin); 729 void OnUpdateToUniqueOrigin(bool is_potentially_trustworthy_unique_origin);
728 void OnDidChangeSandboxFlags(int32_t frame_routing_id, 730 void OnDidChangeSandboxFlags(int32_t frame_routing_id,
729 blink::WebSandboxFlags flags); 731 blink::WebSandboxFlags flags);
730 void OnDidChangeFrameOwnerProperties(int32_t frame_routing_id, 732 void OnDidChangeFrameOwnerProperties(int32_t frame_routing_id,
731 const FrameOwnerProperties& properties); 733 const FrameOwnerProperties& properties);
732 void OnUpdateTitle(const base::string16& title, 734 void OnUpdateTitle(const base::string16& title,
733 blink::WebTextDirection title_direction); 735 blink::WebTextDirection title_direction);
734 void OnUpdateEncoding(const std::string& encoding); 736 void OnUpdateEncoding(const std::string& encoding);
735 void OnBeginNavigation(const CommonNavigationParams& common_params, 737 void OnBeginNavigation(const CommonNavigationParams& common_params,
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
1168 1170
1169 // NOTE: This must be the last member. 1171 // NOTE: This must be the last member.
1170 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; 1172 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;
1171 1173
1172 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 1174 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
1173 }; 1175 };
1174 1176
1175 } // namespace content 1177 } // namespace content
1176 1178
1177 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 1179 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698