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( | 273 virtual bool OnCanThrottleRequest(const URLRequest& request) const OVERRIDE; |
274 const URLRequest& request) const OVERRIDE; | |
275 virtual int OnBeforeSocketStreamConnect( | 274 virtual int OnBeforeSocketStreamConnect( |
276 SocketStream* stream, | 275 SocketStream* stream, |
277 const CompletionCallback& callback) OVERRIDE; | 276 const CompletionCallback& callback) OVERRIDE; |
278 virtual void OnRequestWaitStateChange(const URLRequest& request, | 277 virtual void OnRequestWaitStateChange(const URLRequest& request, |
279 RequestWaitState state) OVERRIDE; | 278 RequestWaitState state) OVERRIDE; |
280 | 279 |
281 void InitRequestStatesIfNew(int request_id); | 280 void InitRequestStatesIfNew(int request_id); |
282 | 281 |
283 int last_error_; | 282 int last_error_; |
284 int error_count_; | 283 int error_count_; |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 NetworkDelegate* network_delegate) const OVERRIDE; | 343 NetworkDelegate* network_delegate) const OVERRIDE; |
345 void set_main_intercept_job(URLRequestJob* job); | 344 void set_main_intercept_job(URLRequestJob* job); |
346 | 345 |
347 private: | 346 private: |
348 mutable URLRequestJob* main_intercept_job_; | 347 mutable URLRequestJob* main_intercept_job_; |
349 }; | 348 }; |
350 | 349 |
351 } // namespace net | 350 } // namespace net |
352 | 351 |
353 #endif // NET_URL_REQUEST_URL_REQUEST_TEST_UTIL_H_ | 352 #endif // NET_URL_REQUEST_URL_REQUEST_TEST_UTIL_H_ |
OLD | NEW |