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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 const AuthChallengeInfo& auth_info, | 263 const AuthChallengeInfo& auth_info, |
264 const AuthCallback& callback, | 264 const AuthCallback& callback, |
265 AuthCredentials* credentials) OVERRIDE; | 265 AuthCredentials* credentials) OVERRIDE; |
266 virtual bool OnCanGetCookies(const URLRequest& request, | 266 virtual bool OnCanGetCookies(const URLRequest& request, |
267 const CookieList& cookie_list) OVERRIDE; | 267 const CookieList& cookie_list) OVERRIDE; |
268 virtual bool OnCanSetCookie(const URLRequest& request, | 268 virtual bool OnCanSetCookie(const URLRequest& request, |
269 const std::string& cookie_line, | 269 const std::string& cookie_line, |
270 CookieOptions* options) OVERRIDE; | 270 CookieOptions* options) OVERRIDE; |
271 virtual bool OnCanAccessFile(const URLRequest& request, | 271 virtual bool OnCanAccessFile(const URLRequest& request, |
272 const base::FilePath& path) const OVERRIDE; | 272 const base::FilePath& path) const OVERRIDE; |
273 virtual bool OnCanThrottleRequest(const URLRequest& request) const OVERRIDE; | 273 virtual bool OnCanThrottleRequest( |
| 274 const URLRequest& request) const OVERRIDE; |
274 virtual int OnBeforeSocketStreamConnect( | 275 virtual int OnBeforeSocketStreamConnect( |
275 SocketStream* stream, | 276 SocketStream* stream, |
276 const CompletionCallback& callback) OVERRIDE; | 277 const CompletionCallback& callback) OVERRIDE; |
277 virtual void OnRequestWaitStateChange(const URLRequest& request, | 278 virtual void OnRequestWaitStateChange(const URLRequest& request, |
278 RequestWaitState state) OVERRIDE; | 279 RequestWaitState state) OVERRIDE; |
279 | 280 |
280 void InitRequestStatesIfNew(int request_id); | 281 void InitRequestStatesIfNew(int request_id); |
281 | 282 |
282 int last_error_; | 283 int last_error_; |
283 int error_count_; | 284 int error_count_; |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
343 NetworkDelegate* network_delegate) const OVERRIDE; | 344 NetworkDelegate* network_delegate) const OVERRIDE; |
344 void set_main_intercept_job(URLRequestJob* job); | 345 void set_main_intercept_job(URLRequestJob* job); |
345 | 346 |
346 private: | 347 private: |
347 mutable URLRequestJob* main_intercept_job_; | 348 mutable URLRequestJob* main_intercept_job_; |
348 }; | 349 }; |
349 | 350 |
350 } // namespace net | 351 } // namespace net |
351 | 352 |
352 #endif // NET_URL_REQUEST_URL_REQUEST_TEST_UTIL_H_ | 353 #endif // NET_URL_REQUEST_URL_REQUEST_TEST_UTIL_H_ |
OLD | NEW |