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 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 const AuthChallengeInfo& auth_info, | 333 const AuthChallengeInfo& auth_info, |
334 const AuthCallback& callback, | 334 const AuthCallback& callback, |
335 AuthCredentials* credentials) override; | 335 AuthCredentials* credentials) override; |
336 bool OnCanGetCookies(const URLRequest& request, | 336 bool OnCanGetCookies(const URLRequest& request, |
337 const CookieList& cookie_list) override; | 337 const CookieList& cookie_list) override; |
338 bool OnCanSetCookie(const URLRequest& request, | 338 bool OnCanSetCookie(const URLRequest& request, |
339 const std::string& cookie_line, | 339 const std::string& cookie_line, |
340 CookieOptions* options) override; | 340 CookieOptions* options) override; |
341 bool OnCanAccessFile(const URLRequest& request, | 341 bool OnCanAccessFile(const URLRequest& request, |
342 const base::FilePath& path) const override; | 342 const base::FilePath& path) const override; |
343 bool OnFirstPartyOnlyCookieExperimentEnabled() const override; | 343 bool OnExperimentalFeaturesEnabled() const override; |
344 bool OnCancelURLRequestWithPolicyViolatingReferrerHeader( | 344 bool OnCancelURLRequestWithPolicyViolatingReferrerHeader( |
345 const URLRequest& request, | 345 const URLRequest& request, |
346 const GURL& target_url, | 346 const GURL& target_url, |
347 const GURL& referrer_url) const override; | 347 const GURL& referrer_url) const override; |
348 | 348 |
349 void InitRequestStatesIfNew(int request_id); | 349 void InitRequestStatesIfNew(int request_id); |
350 | 350 |
351 GURL redirect_on_headers_received_url_; | 351 GURL redirect_on_headers_received_url_; |
352 // URL marked as safe for redirection at the onHeadersReceived stage. | 352 // URL marked as safe for redirection at the onHeadersReceived stage. |
353 GURL allowed_unsafe_redirect_url_; | 353 GURL allowed_unsafe_redirect_url_; |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
404 NetworkDelegate* network_delegate) const override; | 404 NetworkDelegate* network_delegate) const override; |
405 void set_main_intercept_job(URLRequestJob* job); | 405 void set_main_intercept_job(URLRequestJob* job); |
406 | 406 |
407 private: | 407 private: |
408 mutable URLRequestJob* main_intercept_job_; | 408 mutable URLRequestJob* main_intercept_job_; |
409 }; | 409 }; |
410 | 410 |
411 } // namespace net | 411 } // namespace net |
412 | 412 |
413 #endif // NET_URL_REQUEST_URL_REQUEST_TEST_UTIL_H_ | 413 #endif // NET_URL_REQUEST_URL_REQUEST_TEST_UTIL_H_ |
OLD | NEW |