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

Unified Diff: net/url_request/url_request_redirect_job.h

Issue 335123006: Simulate HTTP headers for URLRequestRedirectJob. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 | « no previous file | net/url_request/url_request_redirect_job.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_redirect_job.h
diff --git a/net/url_request/url_request_redirect_job.h b/net/url_request/url_request_redirect_job.h
index 580fec2d109688747d84eb63f95cf5f4a25f325d..d7ed4603e0d4ec4de761bbfab811b614d8532471 100644
--- a/net/url_request/url_request_redirect_job.h
+++ b/net/url_request/url_request_redirect_job.h
@@ -7,6 +7,7 @@
#include <string>
+#include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.h"
#include "net/base/net_export.h"
#include "net/url_request/url_request_job.h"
@@ -15,6 +16,8 @@ class GURL;
namespace net {
+class HttpResponseHeaders;
+
// A URLRequestJob that will redirect the request to the specified
// URL. This is useful to restart a request at a different URL based
// on the result of another job.
@@ -38,6 +41,7 @@ class NET_EXPORT URLRequestRedirectJob : public URLRequestJob {
const std::string& redirect_reason);
virtual void Start() OVERRIDE;
+ virtual void GetResponseInfo(HttpResponseInfo* info) OVERRIDE;
virtual bool IsRedirectResponse(GURL* location,
int* http_status_code) OVERRIDE;
virtual bool CopyFragmentOnRedirect(const GURL& location) const OVERRIDE;
@@ -54,6 +58,7 @@ class NET_EXPORT URLRequestRedirectJob : public URLRequestJob {
const int http_status_code_;
base::TimeTicks receive_headers_end_;
std::string redirect_reason_;
+ scoped_refptr<HttpResponseHeaders> response_headers_;
base::WeakPtrFactory<URLRequestRedirectJob> weak_factory_;
};
« no previous file with comments | « no previous file | net/url_request/url_request_redirect_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698