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 <memory> | 10 #include <memory> |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 HttpRequestHeaders* headers) final; | 52 HttpRequestHeaders* headers) final; |
53 void OnStartTransaction(URLRequest* request, | 53 void OnStartTransaction(URLRequest* request, |
54 const HttpRequestHeaders& headers) final; | 54 const HttpRequestHeaders& headers) final; |
55 int OnHeadersReceived( | 55 int OnHeadersReceived( |
56 URLRequest* request, | 56 URLRequest* request, |
57 const CompletionCallback& callback, | 57 const CompletionCallback& callback, |
58 const HttpResponseHeaders* original_response_headers, | 58 const HttpResponseHeaders* original_response_headers, |
59 scoped_refptr<HttpResponseHeaders>* override_response_headers, | 59 scoped_refptr<HttpResponseHeaders>* override_response_headers, |
60 GURL* allowed_unsafe_redirect_url) final; | 60 GURL* allowed_unsafe_redirect_url) final; |
61 void OnBeforeRedirect(URLRequest* request, const GURL& new_location) final; | 61 void OnBeforeRedirect(URLRequest* request, const GURL& new_location) final; |
| 62 |
| 63 void OnResponseStarted(URLRequest* request, int net_error) final; |
| 64 // Deprecated. |
62 void OnResponseStarted(URLRequest* request) final; | 65 void OnResponseStarted(URLRequest* request) final; |
63 void OnNetworkBytesReceived(URLRequest* request, | 66 void OnNetworkBytesReceived(URLRequest* request, |
64 int64_t bytes_received) final; | 67 int64_t bytes_received) final; |
65 void OnNetworkBytesSent(URLRequest* request, int64_t bytes_sent) final; | 68 void OnNetworkBytesSent(URLRequest* request, int64_t bytes_sent) final; |
| 69 void OnCompleted(URLRequest* request, bool started, int net_error) final; |
| 70 // Deprecated. |
66 void OnCompleted(URLRequest* request, bool started) final; | 71 void OnCompleted(URLRequest* request, bool started) final; |
67 void OnURLRequestDestroyed(URLRequest* request) final; | 72 void OnURLRequestDestroyed(URLRequest* request) final; |
68 void OnPACScriptError(int line_number, const base::string16& error) final; | 73 void OnPACScriptError(int line_number, const base::string16& error) final; |
69 AuthRequiredResponse OnAuthRequired(URLRequest* request, | 74 AuthRequiredResponse OnAuthRequired(URLRequest* request, |
70 const AuthChallengeInfo& auth_info, | 75 const AuthChallengeInfo& auth_info, |
71 const AuthCallback& callback, | 76 const AuthCallback& callback, |
72 AuthCredentials* credentials) final; | 77 AuthCredentials* credentials) final; |
73 bool OnCanGetCookies(const URLRequest& request, | 78 bool OnCanGetCookies(const URLRequest& request, |
74 const CookieList& cookie_list) final; | 79 const CookieList& cookie_list) final; |
75 bool OnCanSetCookie(const URLRequest& request, | 80 bool OnCanSetCookie(const URLRequest& request, |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 const GURL& target_url, | 162 const GURL& target_url, |
158 const GURL& referrer_url) const; | 163 const GURL& referrer_url) const; |
159 | 164 |
160 private: | 165 private: |
161 std::unique_ptr<NetworkDelegate> nested_network_delegate_; | 166 std::unique_ptr<NetworkDelegate> nested_network_delegate_; |
162 }; | 167 }; |
163 | 168 |
164 } // namespace net | 169 } // namespace net |
165 | 170 |
166 #endif // NET_BASE_LAYERED_NETWORK_DELEGATE_H_ | 171 #endif // NET_BASE_LAYERED_NETWORK_DELEGATE_H_ |
OLD | NEW |