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

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

Issue 2005433002: [Origin Trials] Install origin trial bindings on V8 context conditionally (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@track-ef-install
Patch Set: Rebase; Respect runtime-enabled flags as well Created 4 years, 7 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/V8Binding.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8Binding.h b/third_party/WebKit/Source/bindings/core/v8/V8Binding.h
index 599bc7323634e4e5364e11605d4b12affff2ff7b..b6293c8760b797a4d75fa7beecb91ea2d42d301d 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8Binding.h
+++ b/third_party/WebKit/Source/bindings/core/v8/V8Binding.h
@@ -69,6 +69,8 @@ class WorkerGlobalScope;
class WorkerOrWorkletGlobalScope;
class XPathNSResolver;
+using initializeOriginTrialsFunction = void (*)(v8::Local<v8::Context>, const DOMWrapperWorld&);
+
template <typename T>
struct V8TypeOf {
STATIC_ONLY(V8TypeOf);
@@ -838,6 +840,8 @@ CORE_EXPORT LocalDOMWindow* currentDOMWindow(v8::Isolate*);
CORE_EXPORT LocalDOMWindow* callingDOMWindow(v8::Isolate*);
CORE_EXPORT ExecutionContext* toExecutionContext(v8::Local<v8::Context>);
CORE_EXPORT void registerToExecutionContextForModules(ExecutionContext* (*toExecutionContextForModules)(v8::Local<v8::Context>));
+CORE_EXPORT void initializeOriginTrials(v8::Local<v8::Context>, const DOMWrapperWorld&);
+CORE_EXPORT initializeOriginTrialsFunction setInitializeOriginTrialsFunction(initializeOriginTrialsFunction);
CORE_EXPORT ExecutionContext* currentExecutionContext(v8::Isolate*);
CORE_EXPORT ExecutionContext* enteredExecutionContext(v8::Isolate*);

Powered by Google App Engine
This is Rietveld 408576698