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

Unified Diff: third_party/WebKit/Source/web/AssociatedURLLoader.cpp

Issue 2389633002: reflow comments in web/ (Closed)
Patch Set: . 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/web/AssociatedURLLoaderTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/AssociatedURLLoader.cpp
diff --git a/third_party/WebKit/Source/web/AssociatedURLLoader.cpp b/third_party/WebKit/Source/web/AssociatedURLLoader.cpp
index 25ce3fc650d8bb22f93b48ed9e181c48fbd8b784..636c2320737e35da47bd70fd378d8531c5381a93 100644
--- a/third_party/WebKit/Source/web/AssociatedURLLoader.cpp
+++ b/third_party/WebKit/Source/web/AssociatedURLLoader.cpp
@@ -80,7 +80,8 @@ void HTTPRequestHeaderValidator::visitHeader(const WebString& name,
} // namespace
-// This class bridges the interface differences between WebCore and WebKit loader clients.
+// This class bridges the interface differences between WebCore and WebKit
+// loader clients.
// It forwards its ThreadableLoaderClient notifications to a WebURLLoaderClient.
class AssociatedURLLoader::ClientAdapter final
: public DocumentThreadableLoaderClient {
@@ -112,11 +113,13 @@ class AssociatedURLLoader::ClientAdapter final
// Sets an error to be reported back to the client, asychronously.
void setDelayedError(const ResourceError&);
- // Enables forwarding of error notifications to the WebURLLoaderClient. These must be
- // deferred until after the call to AssociatedURLLoader::loadAsynchronously() completes.
+ // Enables forwarding of error notifications to the WebURLLoaderClient. These
+ // must be deferred until after the call to
+ // AssociatedURLLoader::loadAsynchronously() completes.
void enableErrorNotifications();
- // Stops loading and releases the DocumentThreadableLoader as early as possible.
+ // Stops loading and releases the DocumentThreadableLoader as early as
+ // possible.
WebURLLoaderClient* releaseClient() {
WebURLLoaderClient* client = m_client;
m_client = nullptr;
@@ -279,8 +282,9 @@ void AssociatedURLLoader::ClientAdapter::didFailRedirectCheck() {
void AssociatedURLLoader::ClientAdapter::enableErrorNotifications() {
m_enableErrorNotifications = true;
- // If an error has already been received, start a timer to report it to the client
- // after AssociatedURLLoader::loadAsynchronously has returned to the caller.
+ // If an error has already been received, start a timer to report it to the
+ // client after AssociatedURLLoader::loadAsynchronously has returned to the
+ // caller.
if (m_didFail)
m_errorTimer.startOneShot(0, BLINK_FROM_HERE);
}
@@ -393,9 +397,10 @@ void AssociatedURLLoader::loadAsynchronously(const WebURLRequest& request,
const ResourceRequest& webcoreRequest = newRequest.toResourceRequest();
if (webcoreRequest.requestContext() ==
WebURLRequest::RequestContextUnspecified) {
- // FIXME: We load URLs without setting a TargetType (and therefore a request context) in several
- // places in content/ (P2PPortAllocatorSession::AllocateLegacyRelaySession, for example). Remove
- // this once those places are patched up.
+ // FIXME: We load URLs without setting a TargetType (and therefore a
+ // request context) in several places in content/
+ // (P2PPortAllocatorSession::AllocateLegacyRelaySession, for example).
+ // Remove this once those places are patched up.
newRequest.setRequestContext(WebURLRequest::RequestContextInternal);
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/web/AssociatedURLLoaderTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698