OLD | NEW |
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_TEST_UTIL_H_ | 5 #ifndef NET_URL_REQUEST_URL_REQUEST_TEST_UTIL_H_ |
6 #define NET_URL_REQUEST_URL_REQUEST_TEST_UTIL_H_ | 6 #define NET_URL_REQUEST_URL_REQUEST_TEST_UTIL_H_ |
7 | 7 |
8 #include <stdlib.h> | 8 #include <stdlib.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 const CompletionCallback& callback, | 258 const CompletionCallback& callback, |
259 GURL* new_url) OVERRIDE; | 259 GURL* new_url) OVERRIDE; |
260 virtual int OnBeforeSendHeaders(URLRequest* request, | 260 virtual int OnBeforeSendHeaders(URLRequest* request, |
261 const CompletionCallback& callback, | 261 const CompletionCallback& callback, |
262 HttpRequestHeaders* headers) OVERRIDE; | 262 HttpRequestHeaders* headers) OVERRIDE; |
263 virtual void OnSendHeaders(URLRequest* request, | 263 virtual void OnSendHeaders(URLRequest* request, |
264 const HttpRequestHeaders& headers) OVERRIDE; | 264 const HttpRequestHeaders& headers) OVERRIDE; |
265 virtual int OnHeadersReceived( | 265 virtual int OnHeadersReceived( |
266 URLRequest* request, | 266 URLRequest* request, |
267 const CompletionCallback& callback, | 267 const CompletionCallback& callback, |
| 268 GURL* new_url, |
268 const HttpResponseHeaders* original_response_headers, | 269 const HttpResponseHeaders* original_response_headers, |
269 scoped_refptr<HttpResponseHeaders>* override_response_headers) OVERRIDE; | 270 scoped_refptr<HttpResponseHeaders>* override_response_headers) OVERRIDE; |
270 virtual void OnBeforeRedirect(URLRequest* request, | 271 virtual void OnBeforeRedirect(URLRequest* request, |
271 const GURL& new_location) OVERRIDE; | 272 const GURL& new_location) OVERRIDE; |
272 virtual void OnResponseStarted(URLRequest* request) OVERRIDE; | 273 virtual void OnResponseStarted(URLRequest* request) OVERRIDE; |
273 virtual void OnRawBytesRead(const URLRequest& request, | 274 virtual void OnRawBytesRead(const URLRequest& request, |
274 int bytes_read) OVERRIDE; | 275 int bytes_read) OVERRIDE; |
275 virtual void OnCompleted(URLRequest* request, bool started) OVERRIDE; | 276 virtual void OnCompleted(URLRequest* request, bool started) OVERRIDE; |
276 virtual void OnURLRequestDestroyed(URLRequest* request) OVERRIDE; | 277 virtual void OnURLRequestDestroyed(URLRequest* request) OVERRIDE; |
277 virtual void OnPACScriptError(int line_number, | 278 virtual void OnPACScriptError(int line_number, |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 NetworkDelegate* network_delegate) const OVERRIDE; | 365 NetworkDelegate* network_delegate) const OVERRIDE; |
365 void set_main_intercept_job(URLRequestJob* job); | 366 void set_main_intercept_job(URLRequestJob* job); |
366 | 367 |
367 private: | 368 private: |
368 mutable URLRequestJob* main_intercept_job_; | 369 mutable URLRequestJob* main_intercept_job_; |
369 }; | 370 }; |
370 | 371 |
371 } // namespace net | 372 } // namespace net |
372 | 373 |
373 #endif // NET_URL_REQUEST_URL_REQUEST_TEST_UTIL_H_ | 374 #endif // NET_URL_REQUEST_URL_REQUEST_TEST_UTIL_H_ |
OLD | NEW |