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

Unified Diff: content/browser/loader/resource_loader.h

Issue 2574063003: Move ResourceHandler deferred actions ahead of external protocol handling. (Closed)
Patch Set: Adds external protocol handling tests for sync and async cases. Created 4 years 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: content/browser/loader/resource_loader.h
diff --git a/content/browser/loader/resource_loader.h b/content/browser/loader/resource_loader.h
index 43b7530f315444b50964f6d2ce35c76a64527ab3..40603a4556a9531f9af6eaf1adc933fd186d2f1b 100644
--- a/content/browser/loader/resource_loader.h
+++ b/content/browser/loader/resource_loader.h
@@ -16,6 +16,7 @@
#include "content/browser/ssl/ssl_error_handler.h"
#include "content/common/content_export.h"
#include "net/url_request/url_request.h"
+#include "url/gurl.h"
namespace net {
class X509Certificate;
@@ -83,6 +84,7 @@ class CONTENT_EXPORT ResourceLoader : public net::URLRequest::Delegate,
void StartRequestInternal();
void CancelRequestInternal(int error, bool from_renderer);
+ void FollowDeferredRedirectInternal();
void CompleteResponseStarted();
void ReadMore(bool is_continuation);
void ResumeReading();
@@ -139,6 +141,9 @@ class CONTENT_EXPORT ResourceLoader : public net::URLRequest::Delegate,
bool started_request_;
int times_cancelled_after_request_start_;
+ // Stores the URL from a deferred redirect.
+ GURL deferred_redirect_url_;
+
base::WeakPtrFactory<ResourceLoader> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(ResourceLoader);
« no previous file with comments | « no previous file | content/browser/loader/resource_loader.cc » ('j') | content/browser/loader/resource_loader_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698