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

Unified Diff: third_party/WebKit/Source/core/fetch/FetchRequest.cpp

Issue 2389643002: Reflow comments in core/fetch (Closed)
Patch Set: yoavs comments Created 4 years, 2 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/fetch/FetchRequest.cpp
diff --git a/third_party/WebKit/Source/core/fetch/FetchRequest.cpp b/third_party/WebKit/Source/core/fetch/FetchRequest.cpp
index f6de0ae11d04593e1b5aadbffc26af68b9b774cd..952e4d42a6954ad986d6f628e54ff29326e327b9 100644
--- a/third_party/WebKit/Source/core/fetch/FetchRequest.cpp
+++ b/third_party/WebKit/Source/core/fetch/FetchRequest.cpp
@@ -79,7 +79,8 @@ void FetchRequest::setCrossOriginAccessControl(
const bool isSameOriginRequest =
origin && origin->canRequestNoSuborigin(m_resourceRequest.url());
- // Currently FetchRequestMode and FetchCredentialsMode are only used when the request goes to Service Worker.
+ // Currently FetchRequestMode and FetchCredentialsMode are only used when the
+ // request goes to Service Worker.
m_resourceRequest.setFetchRequestMode(WebURLRequest::FetchRequestModeCORS);
m_resourceRequest.setFetchCredentialsMode(
useCredentials ? WebURLRequest::FetchCredentialsModeInclude
@@ -111,7 +112,8 @@ void FetchRequest::setForPreload(bool forPreload, double discoveryTime) {
}
void FetchRequest::makeSynchronous() {
- // Synchronous requests should always be max priority, lest they hang the renderer.
+ // Synchronous requests should always be max priority, lest they hang the
+ // renderer.
m_resourceRequest.setPriority(ResourceLoadPriorityHighest);
m_resourceRequest.setTimeoutInterval(10);
m_options.synchronousPolicy = RequestSynchronously;
« no previous file with comments | « third_party/WebKit/Source/core/fetch/FetchContext.h ('k') | third_party/WebKit/Source/core/fetch/ImageResource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698