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

Side by Side Diff: third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.h

Issue 2873433002: Enable Feature Policy without experimental features or fullscreen (Closed)
Patch Set: Codereview: pass enum instead of string to IsSupportedInFeaturePolicy Created 3 years, 7 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 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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698