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 CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ |
6 #define CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ | 6 #define CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 private: | 193 private: |
194 friend class ChromeNetworkDelegateTest; | 194 friend class ChromeNetworkDelegateTest; |
195 | 195 |
196 // NetworkDelegate implementation. | 196 // NetworkDelegate implementation. |
197 virtual int OnBeforeURLRequest(net::URLRequest* request, | 197 virtual int OnBeforeURLRequest(net::URLRequest* request, |
198 const net::CompletionCallback& callback, | 198 const net::CompletionCallback& callback, |
199 GURL* new_url) OVERRIDE; | 199 GURL* new_url) OVERRIDE; |
200 virtual void OnResolveProxy( | 200 virtual void OnResolveProxy( |
201 const GURL& url, int load_flags, net::ProxyInfo* result) OVERRIDE; | 201 const GURL& url, int load_flags, net::ProxyInfo* result) OVERRIDE; |
202 virtual void OnProxyFallback(const net::ProxyServer& bad_proxy, | 202 virtual void OnProxyFallback(const net::ProxyServer& bad_proxy, |
203 int net_error, | 203 int net_error) OVERRIDE; |
204 bool did_fallback) OVERRIDE; | |
205 virtual int OnBeforeSendHeaders(net::URLRequest* request, | 204 virtual int OnBeforeSendHeaders(net::URLRequest* request, |
206 const net::CompletionCallback& callback, | 205 const net::CompletionCallback& callback, |
207 net::HttpRequestHeaders* headers) OVERRIDE; | 206 net::HttpRequestHeaders* headers) OVERRIDE; |
208 virtual void OnBeforeSendProxyHeaders( | 207 virtual void OnBeforeSendProxyHeaders( |
209 net::URLRequest* request, | 208 net::URLRequest* request, |
210 const net::ProxyInfo& proxy_info, | 209 const net::ProxyInfo& proxy_info, |
211 net::HttpRequestHeaders* headers) OVERRIDE; | 210 net::HttpRequestHeaders* headers) OVERRIDE; |
212 virtual void OnSendHeaders(net::URLRequest* request, | 211 virtual void OnSendHeaders(net::URLRequest* request, |
213 const net::HttpRequestHeaders& headers) OVERRIDE; | 212 const net::HttpRequestHeaders& headers) OVERRIDE; |
214 virtual int OnHeadersReceived( | 213 virtual int OnHeadersReceived( |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 data_reduction_proxy_usage_stats_; | 303 data_reduction_proxy_usage_stats_; |
305 data_reduction_proxy::DataReductionProxyAuthRequestHandler* | 304 data_reduction_proxy::DataReductionProxyAuthRequestHandler* |
306 data_reduction_proxy_auth_request_handler_; | 305 data_reduction_proxy_auth_request_handler_; |
307 | 306 |
308 OnResolveProxyHandler on_resolve_proxy_handler_; | 307 OnResolveProxyHandler on_resolve_proxy_handler_; |
309 | 308 |
310 DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate); | 309 DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate); |
311 }; | 310 }; |
312 | 311 |
313 #endif // CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ | 312 #endif // CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ |
OLD | NEW |