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

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

Issue 2767983003: Initial Implementation of Iframe Attribute for Feature Policy (Part 4) (Closed)
Patch Set: Codereview: nit + added more unit tests for container policy 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 27 matching lines...) Expand all
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698