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

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

Issue 2739203002: Initial Implementation of Iframe Attribute for Feature Policy (Part 3) (Closed)
Patch Set: Codereview: added TODO comment for implementing allow* attributes in the container policy parser Created 3 years, 9 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 "public/platform/WebFeaturePolicy.h" 10 #include "public/platform/WebFeaturePolicy.h"
(...skipping 12 matching lines...) Expand all
23 23
24 // Converts a JSON feature policy string into a vector of whitelists, one for 24 // Converts a JSON feature policy string into a vector of whitelists, one for
25 // each feature specified. Unrecognized features are filtered out. If |messages| 25 // each feature specified. Unrecognized features are filtered out. If |messages|
26 // is not null, then any errors in the input will cause an error message to be 26 // is not null, then any errors in the input will cause an error message to be
27 // appended to it. 27 // appended to it.
28 PLATFORM_EXPORT WebParsedFeaturePolicy 28 PLATFORM_EXPORT WebParsedFeaturePolicy
29 parseFeaturePolicy(const String& policy, 29 parseFeaturePolicy(const String& policy,
30 RefPtr<SecurityOrigin>, 30 RefPtr<SecurityOrigin>,
31 Vector<String>* messages); 31 Vector<String>* messages);
32 32
33 // Given a vector of WebFeaturePolicyFeatures and an origin, creates a vector of
34 // whitelists, one for each feature specified.
35 PLATFORM_EXPORT WebParsedFeaturePolicy getContainerPolicyFromAllowedFeatures(
36 const WebVector<WebFeaturePolicyFeature>& features,
37 RefPtr<SecurityOrigin>);
33 } // namespace blink 38 } // namespace blink
iclelland 2017/03/15 17:14:55 Nit: blank line before closing the namespace
34 39
35 #endif // FeaturePolicy_h 40 #endif // FeaturePolicy_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698