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

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

Issue 2810413002: Rewrite references to "wtf/" to "platform/wtf/" in the rest of platform/. (Closed)
Patch Set: Created 3 years, 8 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 #include "platform/feature_policy/FeaturePolicy.h" 5 #include "platform/feature_policy/FeaturePolicy.h"
6 6
7 #include "platform/RuntimeEnabledFeatures.h" 7 #include "platform/RuntimeEnabledFeatures.h"
8 #include "platform/json/JSONValues.h" 8 #include "platform/json/JSONValues.h"
9 #include "platform/network/HTTPParsers.h" 9 #include "platform/network/HTTPParsers.h"
10 #include "platform/weborigin/SecurityOrigin.h" 10 #include "platform/weborigin/SecurityOrigin.h"
11 #include "wtf/PtrUtil.h" 11 #include "platform/wtf/PtrUtil.h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 WebFeaturePolicyFeature GetWebFeaturePolicyFeature(const String& feature) { 15 WebFeaturePolicyFeature GetWebFeaturePolicyFeature(const String& feature) {
16 if (feature == "fullscreen") 16 if (feature == "fullscreen")
17 return WebFeaturePolicyFeature::kFullscreen; 17 return WebFeaturePolicyFeature::kFullscreen;
18 if (feature == "payment") 18 if (feature == "payment")
19 return WebFeaturePolicyFeature::kPayment; 19 return WebFeaturePolicyFeature::kPayment;
20 if (feature == "vibrate") 20 if (feature == "vibrate")
21 return WebFeaturePolicyFeature::kVibrate; 21 return WebFeaturePolicyFeature::kVibrate;
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 for (const WebFeaturePolicyFeature feature : features) { 125 for (const WebFeaturePolicyFeature feature : features) {
126 WebParsedFeaturePolicyDeclaration whitelist; 126 WebParsedFeaturePolicyDeclaration whitelist;
127 whitelist.feature = feature; 127 whitelist.feature = feature;
128 whitelist.origins = Vector<WebSecurityOrigin>(1UL, {origin}); 128 whitelist.origins = Vector<WebSecurityOrigin>(1UL, {origin});
129 whitelists.push_back(whitelist); 129 whitelists.push_back(whitelist);
130 } 130 }
131 return whitelists; 131 return whitelists;
132 } 132 }
133 133
134 } // namespace blink 134 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698