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

Side by Side Diff: third_party/WebKit/Source/bindings/core/v8/ConditionalFeaturesForCore.h

Issue 2730303002: Move Feature Policy test to Frame (Closed)
Patch Set: Fix rebase 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/core/v8/ConditionalFeaturesForCore.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 ConditionalFeaturesForCore_h 5 #ifndef ConditionalFeaturesForCore_h
6 #define ConditionalFeaturesForCore_h 6 #define ConditionalFeaturesForCore_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "public/platform/WebFeaturePolicy.h"
10 #include "v8/include/v8.h" 9 #include "v8/include/v8.h"
11 10
12 namespace blink { 11 namespace blink {
13 12
14 class Frame;
15 class ScriptState; 13 class ScriptState;
16 14
17 // Installs all of the conditionally enabled V8 bindings on the Window object. 15 // Installs all of the conditionally enabled V8 bindings on the Window object.
18 // This is called separately from other objects so that attributes and 16 // This is called separately from other objects so that attributes and
19 // interfaces which need to be visible on the global object are installed even 17 // interfaces which need to be visible on the global object are installed even
20 // when the V8 context is reused (i.e., after navigation) 18 // when the V8 context is reused (i.e., after navigation)
21 CORE_EXPORT void installConditionalFeaturesOnWindow(const ScriptState*); 19 CORE_EXPORT void installConditionalFeaturesOnWindow(const ScriptState*);
22 20
23 // Tests whether the feature-policy controlled feature is enabled by policy in
24 // the given frame.
25 CORE_EXPORT bool isFeatureEnabledInFrame(WebFeaturePolicyFeature, const Frame*);
26
27 CORE_EXPORT void registerInstallConditionalFeaturesForCore(); 21 CORE_EXPORT void registerInstallConditionalFeaturesForCore();
28 22
29 } // namespace blink 23 } // namespace blink
30 24
31 #endif // ConditionalFeaturesForCore_h 25 #endif // ConditionalFeaturesForCore_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/core/v8/ConditionalFeaturesForCore.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698