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

Unified Diff: third_party/WebKit/Source/core/workers/Worklet.cpp

Issue 2911093002: Worklet: Move loader client impl from ThreadedWorklet to ThreadedWorkletMessagingProxy
Patch Set: rebase Created 3 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/core/workers/Worklet.cpp
diff --git a/third_party/WebKit/Source/core/workers/Worklet.cpp b/third_party/WebKit/Source/core/workers/Worklet.cpp
index 6620d822b7d92d4b754b6a80fd0832aaa5d7423f..deb56b048fb2f1add4b971314c3b3c2096b7e6a3 100644
--- a/third_party/WebKit/Source/core/workers/Worklet.cpp
+++ b/third_party/WebKit/Source/core/workers/Worklet.cpp
@@ -62,6 +62,18 @@ ScriptPromise Worklet::addModule(ScriptState* script_state,
return promise;
}
+WebURLRequest::FetchCredentialsMode Worklet::ParseCredentialsOption(
+ const String& credentials_option) {
+ if (credentials_option == "omit")
+ return WebURLRequest::kFetchCredentialsModeOmit;
+ if (credentials_option == "same-origin")
+ return WebURLRequest::kFetchCredentialsModeSameOrigin;
+ if (credentials_option == "include")
+ return WebURLRequest::kFetchCredentialsModeInclude;
+ NOTREACHED();
+ return WebURLRequest::kFetchCredentialsModeOmit;
+}
+
DEFINE_TRACE(Worklet) {
ContextLifecycleObserver::Trace(visitor);
}
« no previous file with comments | « third_party/WebKit/Source/core/workers/Worklet.h ('k') | third_party/WebKit/Source/core/workers/WorkletGlobalScopeProxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698