OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. |
3 * Copyright (C) 2011 Apple Inc. All rights reserved. | 3 * Copyright (C) 2011 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 #include "modules/remoteplayback/RemotePlayback.h" | 64 #include "modules/remoteplayback/RemotePlayback.h" |
65 #include "modules/serviceworkers/NavigatorServiceWorker.h" | 65 #include "modules/serviceworkers/NavigatorServiceWorker.h" |
66 #include "modules/serviceworkers/ServiceWorkerLinkResource.h" | 66 #include "modules/serviceworkers/ServiceWorkerLinkResource.h" |
67 #include "modules/storage/DOMWindowStorageController.h" | 67 #include "modules/storage/DOMWindowStorageController.h" |
68 #include "modules/vr/NavigatorVR.h" | 68 #include "modules/vr/NavigatorVR.h" |
69 #include "platform/Histogram.h" | 69 #include "platform/Histogram.h" |
70 #include "platform/RuntimeEnabledFeatures.h" | 70 #include "platform/RuntimeEnabledFeatures.h" |
71 #include "platform/UserGestureIndicator.h" | 71 #include "platform/UserGestureIndicator.h" |
72 #include "platform/exported/WrappedResourceRequest.h" | 72 #include "platform/exported/WrappedResourceRequest.h" |
73 #include "platform/exported/WrappedResourceResponse.h" | 73 #include "platform/exported/WrappedResourceResponse.h" |
| 74 #include "platform/feature_policy/FeaturePolicy.h" |
74 #include "platform/network/HTTPParsers.h" | 75 #include "platform/network/HTTPParsers.h" |
75 #include "platform/network/mime/MIMETypeRegistry.h" | 76 #include "platform/network/mime/MIMETypeRegistry.h" |
76 #include "platform/plugins/PluginData.h" | 77 #include "platform/plugins/PluginData.h" |
77 #include "platform/wtf/PtrUtil.h" | 78 #include "platform/wtf/PtrUtil.h" |
78 #include "platform/wtf/StringExtras.h" | 79 #include "platform/wtf/StringExtras.h" |
79 #include "platform/wtf/text/CString.h" | 80 #include "platform/wtf/text/CString.h" |
80 #include "platform/wtf/text/WTFString.h" | 81 #include "platform/wtf/text/WTFString.h" |
81 #include "public/platform/Platform.h" | 82 #include "public/platform/Platform.h" |
82 #include "public/platform/WebApplicationCacheHost.h" | 83 #include "public/platform/WebApplicationCacheHost.h" |
83 #include "public/platform/WebMediaPlayerSource.h" | 84 #include "public/platform/WebMediaPlayerSource.h" |
(...skipping 753 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
837 } | 838 } |
838 | 839 |
839 void LocalFrameClientImpl::DidUpdateToUniqueOrigin() { | 840 void LocalFrameClientImpl::DidUpdateToUniqueOrigin() { |
840 if (!web_frame_->Client()) | 841 if (!web_frame_->Client()) |
841 return; | 842 return; |
842 DCHECK(web_frame_->GetSecurityOrigin().IsUnique()); | 843 DCHECK(web_frame_->GetSecurityOrigin().IsUnique()); |
843 web_frame_->Client()->DidUpdateToUniqueOrigin( | 844 web_frame_->Client()->DidUpdateToUniqueOrigin( |
844 web_frame_->GetSecurityOrigin().IsPotentiallyTrustworthy()); | 845 web_frame_->GetSecurityOrigin().IsPotentiallyTrustworthy()); |
845 } | 846 } |
846 | 847 |
847 void LocalFrameClientImpl::DidChangeSandboxFlags(Frame* child_frame, | 848 void LocalFrameClientImpl::DidChangeFramePolicy( |
848 SandboxFlags flags) { | 849 Frame* child_frame, |
| 850 SandboxFlags flags, |
| 851 const WebParsedFeaturePolicy& container_policy) { |
849 if (!web_frame_->Client()) | 852 if (!web_frame_->Client()) |
850 return; | 853 return; |
851 web_frame_->Client()->DidChangeSandboxFlags( | 854 web_frame_->Client()->DidChangeFramePolicy( |
852 WebFrame::FromFrame(child_frame), static_cast<WebSandboxFlags>(flags)); | 855 WebFrame::FromFrame(child_frame), static_cast<WebSandboxFlags>(flags), |
| 856 container_policy); |
853 } | 857 } |
854 | 858 |
855 void LocalFrameClientImpl::DidSetFeaturePolicyHeader( | 859 void LocalFrameClientImpl::DidSetFeaturePolicyHeader( |
856 const WebParsedFeaturePolicy& parsed_header) { | 860 const WebParsedFeaturePolicy& parsed_header) { |
857 if (web_frame_->Client()) | 861 if (web_frame_->Client()) |
858 web_frame_->Client()->DidSetFeaturePolicyHeader(parsed_header); | 862 web_frame_->Client()->DidSetFeaturePolicyHeader(parsed_header); |
859 } | 863 } |
860 | 864 |
861 void LocalFrameClientImpl::DidAddContentSecurityPolicies( | 865 void LocalFrameClientImpl::DidAddContentSecurityPolicies( |
862 const blink::WebVector<WebContentSecurityPolicy>& policies) { | 866 const blink::WebVector<WebContentSecurityPolicy>& policies) { |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
985 void LocalFrameClientImpl::AbortClientNavigation() { | 989 void LocalFrameClientImpl::AbortClientNavigation() { |
986 if (web_frame_->Client()) | 990 if (web_frame_->Client()) |
987 web_frame_->Client()->AbortClientNavigation(); | 991 web_frame_->Client()->AbortClientNavigation(); |
988 } | 992 } |
989 | 993 |
990 TextCheckerClient& LocalFrameClientImpl::GetTextCheckerClient() const { | 994 TextCheckerClient& LocalFrameClientImpl::GetTextCheckerClient() const { |
991 return web_frame_->GetTextCheckerClient(); | 995 return web_frame_->GetTextCheckerClient(); |
992 } | 996 } |
993 | 997 |
994 } // namespace blink | 998 } // namespace blink |
OLD | NEW |