| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <stdlib.h> | 9 #include <stdlib.h> |
| 10 | 10 |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 int bytes_read) OVERRIDE; | 233 int bytes_read) OVERRIDE; |
| 234 virtual void OnCompleted(net::URLRequest* request, bool started) OVERRIDE; | 234 virtual void OnCompleted(net::URLRequest* request, bool started) OVERRIDE; |
| 235 virtual void OnURLRequestDestroyed(net::URLRequest* request) OVERRIDE; | 235 virtual void OnURLRequestDestroyed(net::URLRequest* request) OVERRIDE; |
| 236 virtual void OnPACScriptError(int line_number, | 236 virtual void OnPACScriptError(int line_number, |
| 237 const string16& error) OVERRIDE; | 237 const string16& error) OVERRIDE; |
| 238 virtual net::NetworkDelegate::AuthRequiredResponse OnAuthRequired( | 238 virtual net::NetworkDelegate::AuthRequiredResponse OnAuthRequired( |
| 239 net::URLRequest* request, | 239 net::URLRequest* request, |
| 240 const net::AuthChallengeInfo& auth_info, | 240 const net::AuthChallengeInfo& auth_info, |
| 241 const AuthCallback& callback, | 241 const AuthCallback& callback, |
| 242 net::AuthCredentials* credentials) OVERRIDE; | 242 net::AuthCredentials* credentials) OVERRIDE; |
| 243 virtual bool CanGetCookies(const net::URLRequest* request, | 243 virtual bool OnCanGetCookies(const net::URLRequest& request, |
| 244 const net::CookieList& cookie_list) OVERRIDE; | 244 const net::CookieList& cookie_list) OVERRIDE; |
| 245 virtual bool CanSetCookie(const net::URLRequest* request, | 245 virtual bool OnCanSetCookie(const net::URLRequest& request, |
| 246 const std::string& cookie_line, | 246 const std::string& cookie_line, |
| 247 net::CookieOptions* options) OVERRIDE; | 247 net::CookieOptions* options) OVERRIDE; |
| 248 virtual bool OnCanAccessFile(const net::URLRequest& request, |
| 249 const FilePath& path) const OVERRIDE; |
| 248 | 250 |
| 249 void InitRequestStatesIfNew(int request_id); | 251 void InitRequestStatesIfNew(int request_id); |
| 250 | 252 |
| 251 int last_error_; | 253 int last_error_; |
| 252 int error_count_; | 254 int error_count_; |
| 253 int created_requests_; | 255 int created_requests_; |
| 254 int destroyed_requests_; | 256 int destroyed_requests_; |
| 255 int completed_requests_; | 257 int completed_requests_; |
| 256 int cookie_options_bit_mask_; | 258 int cookie_options_bit_mask_; |
| 257 int blocked_get_cookies_count_; | 259 int blocked_get_cookies_count_; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 288 | 290 |
| 289 private: | 291 private: |
| 290 static std::string value_; | 292 static std::string value_; |
| 291 const std::string old_value_; | 293 const std::string old_value_; |
| 292 const std::string new_value_; | 294 const std::string new_value_; |
| 293 | 295 |
| 294 DISALLOW_COPY_AND_ASSIGN(ScopedCustomUrlRequestTestHttpHost); | 296 DISALLOW_COPY_AND_ASSIGN(ScopedCustomUrlRequestTestHttpHost); |
| 295 }; | 297 }; |
| 296 | 298 |
| 297 #endif // NET_URL_REQUEST_URL_REQUEST_TEST_UTIL_H_ | 299 #endif // NET_URL_REQUEST_URL_REQUEST_TEST_UTIL_H_ |
| OLD | NEW |