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

Side by Side Diff: third_party/WebKit/public/platform/WebFeaturePolicy.h

Issue 2680083002: Initial Implementation of Iframe Attribute for Feature Policy (Part 1) (Closed)
Patch Set: Removed getAllowedFeatureNames() from HTMLIFrameElement Created 3 years, 10 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 WebFeaturePolicy_h 5 #ifndef WebFeaturePolicy_h
6 #define WebFeaturePolicy_h 6 #define WebFeaturePolicy_h
7 7
8 #include "WebSecurityOrigin.h" 8 #include "WebSecurityOrigin.h"
9 #include "WebString.h" 9 #include "WebString.h"
10 #include "WebVector.h" 10 #include "WebVector.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 struct WebFeaturePolicy { 14 struct WebFeaturePolicy {
15 struct ParsedWhitelist { 15 struct ParsedWhitelist {
16 ParsedWhitelist() : matchesAllOrigins(false) {} 16 ParsedWhitelist() : matchesAllOrigins(false) {}
17 WebString featureName; 17 WebString featureName;
18 bool matchesAllOrigins; 18 bool matchesAllOrigins;
19 WebVector<WebSecurityOrigin> origins; 19 WebVector<WebSecurityOrigin> origins;
20 }; 20 };
21 }; 21 };
22 22
23 using WebParsedFeaturePolicy = WebVector<WebFeaturePolicy::ParsedWhitelist>; 23 using WebParsedFeaturePolicy = WebVector<WebFeaturePolicy::ParsedWhitelist>;
24 24
25 enum class WebFeaturePolicyFeature {
iclelland 2017/02/08 15:06:24 This certainly conflicts with https://codereview.c
lunalu1 2017/02/08 19:50:30 Done.
26 NotFound = 0,
27 DocumentCookie,
28 DocumentDomain,
29 DocumentWrite,
30 Geolocation,
31 Fullscreen,
32 MidiFeature,
33 Notifications,
34 Payment,
35 Push,
36 SyncScript,
37 SyncXHR,
38 Usermedia,
39 Vibrate,
40 WebRTC,
41 LAST_FEATURE = WebRTC
42 };
43
25 } // namespace blink 44 } // namespace blink
26 45
27 #endif // WebFeaturePolicy_h 46 #endif // WebFeaturePolicy_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698