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

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

Issue 2691343010: Split ConditionalFeatures (Closed)
Patch Set: Rebase, code review changes 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/bindings/core/v8/ConditionalFeaturesForCore.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/ConditionalFeaturesForCore.h b/third_party/WebKit/Source/bindings/core/v8/ConditionalFeaturesForCore.h
new file mode 100644
index 0000000000000000000000000000000000000000..dc61f1bfa703b2966248f03806ed79a0589227ec
--- /dev/null
+++ b/third_party/WebKit/Source/bindings/core/v8/ConditionalFeaturesForCore.h
@@ -0,0 +1,30 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ConditionalFeaturesForCore_h
+#define ConditionalFeaturesForCore_h
+
+#include <v8.h>
+#include "core/CoreExport.h"
+#include "platform/feature_policy/FeaturePolicy.h"
+
+namespace blink {
+
+class LocalFrame;
+class ScriptState;
+
+// Installs all of the conditionally enabled V8 bindings on the Window object.
+// This is called separately from other objects so that attributes and
+// interfaces which need to be visible on the global object are installed even
+// when the V8 context is reused (i.e., after navigation)
+CORE_EXPORT void installConditionalFeaturesOnWindow(const ScriptState*);
+
+CORE_EXPORT bool isFeatureEnabledInFrame(const FeaturePolicy::Feature&,
+ const LocalFrame*);
+
+CORE_EXPORT void registerInstallConditionalFeaturesForCore();
+
+} // namespace blink
+
+#endif // ConditionalFeaturesForCore_h

Powered by Google App Engine
This is Rietveld 408576698