Commit fc03c541 authored by Bill Budge's avatar Bill Budge Committed by Commit Bot

[blink] Add IsCrossOriginIsolated getter to blink.h

- Adds a getter to go with the SetIsCrossOriginIsolated function.

We need to be able to access this in content::RenderProcessImpl, in order
to properly set V8 up.

Bug: chromium:923807
Change-Id: I99337ea49537cd6f2b5ebb76f2ceddac38260dbb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2488716Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Commit-Queue: Bill Budge <bbudge@chromium.org>
Cr-Commit-Position: refs/heads/master@{#819202}
parent 3ae14708
...@@ -112,6 +112,7 @@ BLINK_EXPORT void ForceNextDrawingBufferCreationToFailForTest(); ...@@ -112,6 +112,7 @@ BLINK_EXPORT void ForceNextDrawingBufferCreationToFailForTest();
// agents, not both. // agents, not both.
// This is called at most once. This is called earlier than any frame commit. // This is called at most once. This is called earlier than any frame commit.
BLINK_EXPORT void SetIsCrossOriginIsolated(bool value); BLINK_EXPORT void SetIsCrossOriginIsolated(bool value);
BLINK_EXPORT bool IsCrossOriginIsolated();
} // namespace blink } // namespace blink
......
...@@ -194,6 +194,11 @@ void SetIsCrossOriginIsolated(bool value) { ...@@ -194,6 +194,11 @@ void SetIsCrossOriginIsolated(bool value) {
Agent::SetIsCrossOriginIsolated(value); Agent::SetIsCrossOriginIsolated(value);
} }
// Function defined in third_party/blink/public/web/blink.h.
bool IsCrossOriginIsolated() {
return Agent::IsCrossOriginIsolated();
}
void BlinkInitializer::RegisterInterfaces(mojo::BinderMap& binders) { void BlinkInitializer::RegisterInterfaces(mojo::BinderMap& binders) {
ModulesInitializer::RegisterInterfaces(binders); ModulesInitializer::RegisterInterfaces(binders);
Thread* main_thread = Thread::MainThread(); Thread* main_thread = Thread::MainThread();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment