OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 FeaturePolicy_h | 5 #ifndef FeaturePolicy_h |
6 #define FeaturePolicy_h | 6 #define FeaturePolicy_h |
7 | 7 |
8 #include "platform/PlatformExport.h" | 8 #include "platform/PlatformExport.h" |
9 #include "platform/weborigin/SecurityOrigin.h" | 9 #include "platform/weborigin/SecurityOrigin.h" |
10 #include "platform/wtf/HashMap.h" | 10 #include "platform/wtf/HashMap.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 const FeatureNameMap& feature_names); | 42 const FeatureNameMap& feature_names); |
43 | 43 |
44 // Given a vector of WebFeaturePolicyFeatures and an origin, creates a vector of | 44 // Given a vector of WebFeaturePolicyFeatures and an origin, creates a vector of |
45 // whitelists, one for each feature specified. | 45 // whitelists, one for each feature specified. |
46 PLATFORM_EXPORT WebParsedFeaturePolicy GetContainerPolicyFromAllowedFeatures( | 46 PLATFORM_EXPORT WebParsedFeaturePolicy GetContainerPolicyFromAllowedFeatures( |
47 const WebVector<WebFeaturePolicyFeature>& features, | 47 const WebVector<WebFeaturePolicyFeature>& features, |
48 bool allowfullscreen, | 48 bool allowfullscreen, |
49 bool allowpayment, | 49 bool allowpayment, |
50 RefPtr<SecurityOrigin>); | 50 RefPtr<SecurityOrigin>); |
51 | 51 |
| 52 // Verifies whether feature policy is enabled and |feature| is supported in |
| 53 // feature policy. |
| 54 PLATFORM_EXPORT bool IsSupportedInFeaturePolicy(WebFeaturePolicyFeature); |
| 55 |
52 } // namespace blink | 56 } // namespace blink |
53 | 57 |
54 #endif // FeaturePolicy_h | 58 #endif // FeaturePolicy_h |
OLD | NEW |