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 void OnResponseStarted(URLRequest* request) final; | 62 |
63 void OnResponseStarted(URLRequest* request, int net_error) final; | |
battre
2016/09/29 13:07:29
Shouldn't this be "net::Error net_error" (also in
| |
63 void OnNetworkBytesReceived(URLRequest* request, | 64 void OnNetworkBytesReceived(URLRequest* request, |
64 int64_t bytes_received) final; | 65 int64_t bytes_received) final; |
65 void OnNetworkBytesSent(URLRequest* request, int64_t bytes_sent) final; | 66 void OnNetworkBytesSent(URLRequest* request, int64_t bytes_sent) final; |
66 void OnCompleted(URLRequest* request, bool started) final; | 67 void OnCompleted(URLRequest* request, bool started, int net_error) final; |
67 void OnURLRequestDestroyed(URLRequest* request) final; | 68 void OnURLRequestDestroyed(URLRequest* request) final; |
68 void OnPACScriptError(int line_number, const base::string16& error) final; | 69 void OnPACScriptError(int line_number, const base::string16& error) final; |
69 AuthRequiredResponse OnAuthRequired(URLRequest* request, | 70 AuthRequiredResponse OnAuthRequired(URLRequest* request, |
70 const AuthChallengeInfo& auth_info, | 71 const AuthChallengeInfo& auth_info, |
71 const AuthCallback& callback, | 72 const AuthCallback& callback, |
72 AuthCredentials* credentials) final; | 73 AuthCredentials* credentials) final; |
73 bool OnCanGetCookies(const URLRequest& request, | 74 bool OnCanGetCookies(const URLRequest& request, |
74 const CookieList& cookie_list) final; | 75 const CookieList& cookie_list) final; |
75 bool OnCanSetCookie(const URLRequest& request, | 76 bool OnCanSetCookie(const URLRequest& request, |
76 const std::string& cookie_line, | 77 const std::string& cookie_line, |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
157 const GURL& target_url, | 158 const GURL& target_url, |
158 const GURL& referrer_url) const; | 159 const GURL& referrer_url) const; |
159 | 160 |
160 private: | 161 private: |
161 std::unique_ptr<NetworkDelegate> nested_network_delegate_; | 162 std::unique_ptr<NetworkDelegate> nested_network_delegate_; |
162 }; | 163 }; |
163 | 164 |
164 } // namespace net | 165 } // namespace net |
165 | 166 |
166 #endif // NET_BASE_LAYERED_NETWORK_DELEGATE_H_ | 167 #endif // NET_BASE_LAYERED_NETWORK_DELEGATE_H_ |
OLD | NEW |