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

Unified Diff: content/child/web_url_request_util.cc

Issue 2105503002: Skip foreign fetch when the skipServiceWorker flag is set on a request. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rephrase SkipServiceWorker comments. Created 4 years, 6 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
« no previous file with comments | « content/child/web_url_request_util.h ('k') | content/common/resource_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/web_url_request_util.cc
diff --git a/content/child/web_url_request_util.cc b/content/child/web_url_request_util.cc
index 74091e38455876a82699c7f67aa6d01b46dc2edf..e23e5b7bea1889207fe62a34ea84cefd73dba05f 100644
--- a/content/child/web_url_request_util.cc
+++ b/content/child/web_url_request_util.cc
@@ -456,6 +456,18 @@ RequestContextType GetRequestContextTypeForWebURLRequest(
return static_cast<RequestContextType>(request.getRequestContext());
}
+STATIC_ASSERT_ENUM(SkipServiceWorker::NONE,
+ WebURLRequest::SkipServiceWorker::None);
+STATIC_ASSERT_ENUM(SkipServiceWorker::CONTROLLING,
+ WebURLRequest::SkipServiceWorker::Controlling);
+STATIC_ASSERT_ENUM(SkipServiceWorker::ALL,
+ WebURLRequest::SkipServiceWorker::All);
+
+SkipServiceWorker GetSkipServiceWorkerForWebURLRequest(
+ const blink::WebURLRequest& request) {
+ return static_cast<SkipServiceWorker>(request.skipServiceWorker());
+}
+
blink::WebURLError CreateWebURLError(const blink::WebURL& unreachable_url,
bool stale_copy_in_cache,
int reason) {
« no previous file with comments | « content/child/web_url_request_util.h ('k') | content/common/resource_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698