| 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 27 matching lines...) Expand all Loading... |
| 38 PLATFORM_EXPORT WebParsedFeaturePolicy | 38 PLATFORM_EXPORT WebParsedFeaturePolicy |
| 39 ParseFeaturePolicy(const String& policy, | 39 ParseFeaturePolicy(const String& policy, |
| 40 RefPtr<SecurityOrigin>, | 40 RefPtr<SecurityOrigin>, |
| 41 Vector<String>* messages, | 41 Vector<String>* messages, |
| 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, |
| 49 bool allowpayment, |
| 48 RefPtr<SecurityOrigin>); | 50 RefPtr<SecurityOrigin>); |
| 49 | 51 |
| 50 } // namespace blink | 52 } // namespace blink |
| 51 | 53 |
| 52 #endif // FeaturePolicy_h | 54 #endif // FeaturePolicy_h |
| OLD | NEW |