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 <stdint.h> | 8 #include <stdint.h> |
9 #include <stdlib.h> | 9 #include <stdlib.h> |
10 | 10 |
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
349 URLRequest* request, | 349 URLRequest* request, |
350 const AuthChallengeInfo& auth_info, | 350 const AuthChallengeInfo& auth_info, |
351 const AuthCallback& callback, | 351 const AuthCallback& callback, |
352 AuthCredentials* credentials) override; | 352 AuthCredentials* credentials) override; |
353 bool OnCanGetCookies(const URLRequest& request, | 353 bool OnCanGetCookies(const URLRequest& request, |
354 const CookieList& cookie_list) override; | 354 const CookieList& cookie_list) override; |
355 bool OnCanSetCookie(const URLRequest& request, | 355 bool OnCanSetCookie(const URLRequest& request, |
356 const std::string& cookie_line, | 356 const std::string& cookie_line, |
357 CookieOptions* options) override; | 357 CookieOptions* options) override; |
358 bool OnCanAccessFile(const URLRequest& request, | 358 bool OnCanAccessFile(const URLRequest& request, |
359 const base::FilePath& path) const override; | 359 const base::FilePath& original_path, |
| 360 const base::FilePath& absolute_path) const override; |
360 bool OnAreExperimentalCookieFeaturesEnabled() const override; | 361 bool OnAreExperimentalCookieFeaturesEnabled() const override; |
361 bool OnCancelURLRequestWithPolicyViolatingReferrerHeader( | 362 bool OnCancelURLRequestWithPolicyViolatingReferrerHeader( |
362 const URLRequest& request, | 363 const URLRequest& request, |
363 const GURL& target_url, | 364 const GURL& target_url, |
364 const GURL& referrer_url) const override; | 365 const GURL& referrer_url) const override; |
365 | 366 |
366 void InitRequestStatesIfNew(int request_id); | 367 void InitRequestStatesIfNew(int request_id); |
367 | 368 |
368 GURL redirect_on_headers_received_url_; | 369 GURL redirect_on_headers_received_url_; |
369 // URL marked as safe for redirection at the onHeadersReceived stage. | 370 // URL marked as safe for redirection at the onHeadersReceived stage. |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
423 NetworkDelegate* network_delegate) const override; | 424 NetworkDelegate* network_delegate) const override; |
424 void set_main_intercept_job(std::unique_ptr<URLRequestJob> job); | 425 void set_main_intercept_job(std::unique_ptr<URLRequestJob> job); |
425 | 426 |
426 private: | 427 private: |
427 mutable std::unique_ptr<URLRequestJob> main_intercept_job_; | 428 mutable std::unique_ptr<URLRequestJob> main_intercept_job_; |
428 }; | 429 }; |
429 | 430 |
430 } // namespace net | 431 } // namespace net |
431 | 432 |
432 #endif // NET_URL_REQUEST_URL_REQUEST_TEST_UTIL_H_ | 433 #endif // NET_URL_REQUEST_URL_REQUEST_TEST_UTIL_H_ |
OLD | NEW |