| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_BASE_LAYERED_NETWORK_DELEGATE_H_ | 5 #ifndef NET_BASE_LAYERED_NETWORK_DELEGATE_H_ |
| 6 #define NET_BASE_LAYERED_NETWORK_DELEGATE_H_ | 6 #define NET_BASE_LAYERED_NETWORK_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 const CompletionCallback& callback, | 61 const CompletionCallback& callback, |
| 62 const HttpResponseHeaders* original_response_headers, | 62 const HttpResponseHeaders* original_response_headers, |
| 63 scoped_refptr<HttpResponseHeaders>* override_response_headers, | 63 scoped_refptr<HttpResponseHeaders>* override_response_headers, |
| 64 GURL* allowed_unsafe_redirect_url) final; | 64 GURL* allowed_unsafe_redirect_url) final; |
| 65 void OnBeforeRedirect(URLRequest* request, const GURL& new_location) final; | 65 void OnBeforeRedirect(URLRequest* request, const GURL& new_location) final; |
| 66 void OnResponseStarted(URLRequest* request) final; | 66 void OnResponseStarted(URLRequest* request) final; |
| 67 void OnNetworkBytesReceived(const URLRequest& request, | 67 void OnNetworkBytesReceived(const URLRequest& request, |
| 68 int64_t bytes_received) final; | 68 int64_t bytes_received) final; |
| 69 void OnCompleted(URLRequest* request, bool started) final; | 69 void OnCompleted(URLRequest* request, bool started) final; |
| 70 void OnURLRequestDestroyed(URLRequest* request) final; | 70 void OnURLRequestDestroyed(URLRequest* request) final; |
| 71 void OnURLRequestJobOrphaned(URLRequest* request) final; |
| 71 void OnPACScriptError(int line_number, const base::string16& error) final; | 72 void OnPACScriptError(int line_number, const base::string16& error) final; |
| 72 AuthRequiredResponse OnAuthRequired(URLRequest* request, | 73 AuthRequiredResponse OnAuthRequired(URLRequest* request, |
| 73 const AuthChallengeInfo& auth_info, | 74 const AuthChallengeInfo& auth_info, |
| 74 const AuthCallback& callback, | 75 const AuthCallback& callback, |
| 75 AuthCredentials* credentials) final; | 76 AuthCredentials* credentials) final; |
| 76 bool OnCanGetCookies(const URLRequest& request, | 77 bool OnCanGetCookies(const URLRequest& request, |
| 77 const CookieList& cookie_list) final; | 78 const CookieList& cookie_list) final; |
| 78 bool OnCanSetCookie(const URLRequest& request, | 79 bool OnCanSetCookie(const URLRequest& request, |
| 79 const std::string& cookie_line, | 80 const std::string& cookie_line, |
| 80 CookieOptions* options) final; | 81 CookieOptions* options) final; |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 const GURL& target_url, | 161 const GURL& target_url, |
| 161 const GURL& referrer_url) const; | 162 const GURL& referrer_url) const; |
| 162 | 163 |
| 163 private: | 164 private: |
| 164 scoped_ptr<NetworkDelegate> nested_network_delegate_; | 165 scoped_ptr<NetworkDelegate> nested_network_delegate_; |
| 165 }; | 166 }; |
| 166 | 167 |
| 167 } // namespace net | 168 } // namespace net |
| 168 | 169 |
| 169 #endif // NET_BASE_LAYERED_NETWORK_DELEGATE_H_ | 170 #endif // NET_BASE_LAYERED_NETWORK_DELEGATE_H_ |
| OLD | NEW |