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 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 const AuthCallback& callback, | 318 const AuthCallback& callback, |
319 AuthCredentials* credentials) override; | 319 AuthCredentials* credentials) override; |
320 bool OnCanGetCookies(const URLRequest& request, | 320 bool OnCanGetCookies(const URLRequest& request, |
321 const CookieList& cookie_list) override; | 321 const CookieList& cookie_list) override; |
322 bool OnCanSetCookie(const URLRequest& request, | 322 bool OnCanSetCookie(const URLRequest& request, |
323 const std::string& cookie_line, | 323 const std::string& cookie_line, |
324 CookieOptions* options) override; | 324 CookieOptions* options) override; |
325 bool OnCanAccessFile(const URLRequest& request, | 325 bool OnCanAccessFile(const URLRequest& request, |
326 const base::FilePath& path) const override; | 326 const base::FilePath& path) const override; |
327 bool OnCanThrottleRequest(const URLRequest& request) const override; | 327 bool OnCanThrottleRequest(const URLRequest& request) const override; |
328 int OnBeforeSocketStreamConnect(SocketStream* stream, | |
329 const CompletionCallback& callback) override; | |
330 bool OnCancelURLRequestWithPolicyViolatingReferrerHeader( | 328 bool OnCancelURLRequestWithPolicyViolatingReferrerHeader( |
331 const URLRequest& request, | 329 const URLRequest& request, |
332 const GURL& target_url, | 330 const GURL& target_url, |
333 const GURL& referrer_url) const override; | 331 const GURL& referrer_url) const override; |
334 | 332 |
335 void InitRequestStatesIfNew(int request_id); | 333 void InitRequestStatesIfNew(int request_id); |
336 | 334 |
337 GURL redirect_on_headers_received_url_; | 335 GURL redirect_on_headers_received_url_; |
338 // URL marked as safe for redirection at the onHeadersReceived stage. | 336 // URL marked as safe for redirection at the onHeadersReceived stage. |
339 GURL allowed_unsafe_redirect_url_; | 337 GURL allowed_unsafe_redirect_url_; |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
413 NetworkDelegate* network_delegate) const override; | 411 NetworkDelegate* network_delegate) const override; |
414 void set_main_intercept_job(URLRequestJob* job); | 412 void set_main_intercept_job(URLRequestJob* job); |
415 | 413 |
416 private: | 414 private: |
417 mutable URLRequestJob* main_intercept_job_; | 415 mutable URLRequestJob* main_intercept_job_; |
418 }; | 416 }; |
419 | 417 |
420 } // namespace net | 418 } // namespace net |
421 | 419 |
422 #endif // NET_URL_REQUEST_URL_REQUEST_TEST_UTIL_H_ | 420 #endif // NET_URL_REQUEST_URL_REQUEST_TEST_UTIL_H_ |
OLD | NEW |