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

Side by Side Diff: net/url_request/url_request_http_job.h

Issue 122453002: Allows deferral of a URLRequest just before talking to the network, at (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated content-length in test to actual length Created 6 years, 11 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 unified diff | Download patch
« no previous file with comments | « net/url_request/url_request.cc ('k') | net/url_request/url_request_http_job.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ 5 #ifndef NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_
6 #define NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ 6 #define NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 virtual bool GetResponseCookies(std::vector<std::string>* cookies) OVERRIDE; 106 virtual bool GetResponseCookies(std::vector<std::string>* cookies) OVERRIDE;
107 virtual int GetResponseCode() const OVERRIDE; 107 virtual int GetResponseCode() const OVERRIDE;
108 virtual Filter* SetupFilter() const OVERRIDE; 108 virtual Filter* SetupFilter() const OVERRIDE;
109 virtual bool IsSafeRedirect(const GURL& location) OVERRIDE; 109 virtual bool IsSafeRedirect(const GURL& location) OVERRIDE;
110 virtual bool NeedsAuth() OVERRIDE; 110 virtual bool NeedsAuth() OVERRIDE;
111 virtual void GetAuthChallengeInfo(scoped_refptr<AuthChallengeInfo>*) OVERRIDE; 111 virtual void GetAuthChallengeInfo(scoped_refptr<AuthChallengeInfo>*) OVERRIDE;
112 virtual void SetAuth(const AuthCredentials& credentials) OVERRIDE; 112 virtual void SetAuth(const AuthCredentials& credentials) OVERRIDE;
113 virtual void CancelAuth() OVERRIDE; 113 virtual void CancelAuth() OVERRIDE;
114 virtual void ContinueWithCertificate(X509Certificate* client_cert) OVERRIDE; 114 virtual void ContinueWithCertificate(X509Certificate* client_cert) OVERRIDE;
115 virtual void ContinueDespiteLastError() OVERRIDE; 115 virtual void ContinueDespiteLastError() OVERRIDE;
116 virtual void ResumeNetworkStart() OVERRIDE;
116 virtual bool ReadRawData(IOBuffer* buf, int buf_size, 117 virtual bool ReadRawData(IOBuffer* buf, int buf_size,
117 int* bytes_read) OVERRIDE; 118 int* bytes_read) OVERRIDE;
118 virtual void StopCaching() OVERRIDE; 119 virtual void StopCaching() OVERRIDE;
119 virtual bool GetFullRequestHeaders( 120 virtual bool GetFullRequestHeaders(
120 HttpRequestHeaders* headers) const OVERRIDE; 121 HttpRequestHeaders* headers) const OVERRIDE;
121 virtual void DoneReading() OVERRIDE; 122 virtual void DoneReading() OVERRIDE;
122 virtual HostPortPair GetSocketAddress() const OVERRIDE; 123 virtual HostPortPair GetSocketAddress() const OVERRIDE;
123 virtual void NotifyURLRequestDestroyed() OVERRIDE; 124 virtual void NotifyURLRequestDestroyed() OVERRIDE;
124 125
125 void RecordTimer(); 126 void RecordTimer();
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 bool awaiting_callback_; 260 bool awaiting_callback_;
260 261
261 const HttpUserAgentSettings* http_user_agent_settings_; 262 const HttpUserAgentSettings* http_user_agent_settings_;
262 263
263 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); 264 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob);
264 }; 265 };
265 266
266 } // namespace net 267 } // namespace net
267 268
268 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ 269 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_
OLDNEW
« no previous file with comments | « net/url_request/url_request.cc ('k') | net/url_request/url_request_http_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698