| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 ProxyInfo* result) final; | 49 ProxyInfo* result) final; |
| 50 void OnProxyFallback(const ProxyServer& bad_proxy, int net_error) final; | 50 void OnProxyFallback(const ProxyServer& bad_proxy, int net_error) final; |
| 51 int OnBeforeSendHeaders(URLRequest* request, | 51 int OnBeforeSendHeaders(URLRequest* request, |
| 52 const CompletionCallback& callback, | 52 const CompletionCallback& callback, |
| 53 HttpRequestHeaders* headers) final; | 53 HttpRequestHeaders* headers) final; |
| 54 void OnBeforeSendProxyHeaders(URLRequest* request, | 54 void OnBeforeSendProxyHeaders(URLRequest* request, |
| 55 const ProxyInfo& proxy_info, | 55 const ProxyInfo& proxy_info, |
| 56 HttpRequestHeaders* headers) final; | 56 HttpRequestHeaders* headers) final; |
| 57 void OnSendHeaders(URLRequest* request, | 57 void OnSendHeaders(URLRequest* request, |
| 58 const HttpRequestHeaders& headers) final; | 58 const HttpRequestHeaders& headers) final; |
| 59 void OnNetworkBytesSent(const URLRequest& request, int64_t bytes_sent) final; |
| 59 int OnHeadersReceived( | 60 int OnHeadersReceived( |
| 60 URLRequest* request, | 61 URLRequest* request, |
| 61 const CompletionCallback& callback, | 62 const CompletionCallback& callback, |
| 62 const HttpResponseHeaders* original_response_headers, | 63 const HttpResponseHeaders* original_response_headers, |
| 63 scoped_refptr<HttpResponseHeaders>* override_response_headers, | 64 scoped_refptr<HttpResponseHeaders>* override_response_headers, |
| 64 GURL* allowed_unsafe_redirect_url) final; | 65 GURL* allowed_unsafe_redirect_url) final; |
| 65 void OnBeforeRedirect(URLRequest* request, const GURL& new_location) final; | 66 void OnBeforeRedirect(URLRequest* request, const GURL& new_location) final; |
| 66 void OnResponseStarted(URLRequest* request) final; | 67 void OnResponseStarted(URLRequest* request) final; |
| 67 void OnNetworkBytesReceived(const URLRequest& request, | 68 void OnNetworkBytesReceived(const URLRequest& request, |
| 68 int64_t bytes_received) final; | 69 int64_t bytes_received) final; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 const CompletionCallback& callback, | 107 const CompletionCallback& callback, |
| 107 HttpRequestHeaders* headers); | 108 HttpRequestHeaders* headers); |
| 108 | 109 |
| 109 virtual void OnBeforeSendProxyHeadersInternal(URLRequest* request, | 110 virtual void OnBeforeSendProxyHeadersInternal(URLRequest* request, |
| 110 const ProxyInfo& proxy_info, | 111 const ProxyInfo& proxy_info, |
| 111 HttpRequestHeaders* headers); | 112 HttpRequestHeaders* headers); |
| 112 | 113 |
| 113 virtual void OnSendHeadersInternal(URLRequest* request, | 114 virtual void OnSendHeadersInternal(URLRequest* request, |
| 114 const HttpRequestHeaders& headers); | 115 const HttpRequestHeaders& headers); |
| 115 | 116 |
| 117 virtual void OnNetworkBytesSentInternal(const URLRequest& request, |
| 118 int64_t bytes_sent); |
| 119 |
| 116 virtual void OnHeadersReceivedInternal( | 120 virtual void OnHeadersReceivedInternal( |
| 117 URLRequest* request, | 121 URLRequest* request, |
| 118 const CompletionCallback& callback, | 122 const CompletionCallback& callback, |
| 119 const HttpResponseHeaders* original_response_headers, | 123 const HttpResponseHeaders* original_response_headers, |
| 120 scoped_refptr<HttpResponseHeaders>* override_response_headers, | 124 scoped_refptr<HttpResponseHeaders>* override_response_headers, |
| 121 GURL* allowed_unsafe_redirect_url); | 125 GURL* allowed_unsafe_redirect_url); |
| 122 | 126 |
| 123 virtual void OnBeforeRedirectInternal(URLRequest* request, | 127 virtual void OnBeforeRedirectInternal(URLRequest* request, |
| 124 const GURL& new_location); | 128 const GURL& new_location); |
| 125 | 129 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 const GURL& target_url, | 165 const GURL& target_url, |
| 162 const GURL& referrer_url) const; | 166 const GURL& referrer_url) const; |
| 163 | 167 |
| 164 private: | 168 private: |
| 165 scoped_ptr<NetworkDelegate> nested_network_delegate_; | 169 scoped_ptr<NetworkDelegate> nested_network_delegate_; |
| 166 }; | 170 }; |
| 167 | 171 |
| 168 } // namespace net | 172 } // namespace net |
| 169 | 173 |
| 170 #endif // NET_BASE_LAYERED_NETWORK_DELEGATE_H_ | 174 #endif // NET_BASE_LAYERED_NETWORK_DELEGATE_H_ |
| OLD | NEW |