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 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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& path) const override; |
360 bool OnAreExperimentalCookieFeaturesEnabled() const override; | 360 bool OnAreExperimentalCookieFeaturesEnabled() const override; |
361 bool OnAreStrictSecureCookiesEnabled() const override; | |
362 bool OnCancelURLRequestWithPolicyViolatingReferrerHeader( | 361 bool OnCancelURLRequestWithPolicyViolatingReferrerHeader( |
363 const URLRequest& request, | 362 const URLRequest& request, |
364 const GURL& target_url, | 363 const GURL& target_url, |
365 const GURL& referrer_url) const override; | 364 const GURL& referrer_url) const override; |
366 | 365 |
367 void InitRequestStatesIfNew(int request_id); | 366 void InitRequestStatesIfNew(int request_id); |
368 | 367 |
369 GURL redirect_on_headers_received_url_; | 368 GURL redirect_on_headers_received_url_; |
370 // URL marked as safe for redirection at the onHeadersReceived stage. | 369 // URL marked as safe for redirection at the onHeadersReceived stage. |
371 GURL allowed_unsafe_redirect_url_; | 370 GURL allowed_unsafe_redirect_url_; |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
424 NetworkDelegate* network_delegate) const override; | 423 NetworkDelegate* network_delegate) const override; |
425 void set_main_intercept_job(std::unique_ptr<URLRequestJob> job); | 424 void set_main_intercept_job(std::unique_ptr<URLRequestJob> job); |
426 | 425 |
427 private: | 426 private: |
428 mutable std::unique_ptr<URLRequestJob> main_intercept_job_; | 427 mutable std::unique_ptr<URLRequestJob> main_intercept_job_; |
429 }; | 428 }; |
430 | 429 |
431 } // namespace net | 430 } // namespace net |
432 | 431 |
433 #endif // NET_URL_REQUEST_URL_REQUEST_TEST_UTIL_H_ | 432 #endif // NET_URL_REQUEST_URL_REQUEST_TEST_UTIL_H_ |
OLD | NEW |