| 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 ANDROID_WEBVIEW_BROWSER_NET_AW_NETWORK_DELEGATE_H_ | 5 #ifndef ANDROID_WEBVIEW_BROWSER_NET_AW_NETWORK_DELEGATE_H_ |
| 6 #define ANDROID_WEBVIEW_BROWSER_NET_AW_NETWORK_DELEGATE_H_ | 6 #define ANDROID_WEBVIEW_BROWSER_NET_AW_NETWORK_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "net/base/network_delegate.h" | 9 #include "net/base/network_delegate.h" |
| 10 | 10 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 const net::CompletionCallback& callback, | 22 const net::CompletionCallback& callback, |
| 23 GURL* new_url) OVERRIDE; | 23 GURL* new_url) OVERRIDE; |
| 24 virtual int OnBeforeSendHeaders(net::URLRequest* request, | 24 virtual int OnBeforeSendHeaders(net::URLRequest* request, |
| 25 const net::CompletionCallback& callback, | 25 const net::CompletionCallback& callback, |
| 26 net::HttpRequestHeaders* headers) OVERRIDE; | 26 net::HttpRequestHeaders* headers) OVERRIDE; |
| 27 virtual void OnSendHeaders(net::URLRequest* request, | 27 virtual void OnSendHeaders(net::URLRequest* request, |
| 28 const net::HttpRequestHeaders& headers) OVERRIDE; | 28 const net::HttpRequestHeaders& headers) OVERRIDE; |
| 29 virtual int OnHeadersReceived( | 29 virtual int OnHeadersReceived( |
| 30 net::URLRequest* request, | 30 net::URLRequest* request, |
| 31 const net::CompletionCallback& callback, | 31 const net::CompletionCallback& callback, |
| 32 GURL* new_url, |
| 32 const net::HttpResponseHeaders* original_response_headers, | 33 const net::HttpResponseHeaders* original_response_headers, |
| 33 scoped_refptr<net::HttpResponseHeaders>* override_response_headers) | 34 scoped_refptr<net::HttpResponseHeaders>* override_response_headers) |
| 34 OVERRIDE; | 35 OVERRIDE; |
| 35 virtual void OnBeforeRedirect(net::URLRequest* request, | 36 virtual void OnBeforeRedirect(net::URLRequest* request, |
| 36 const GURL& new_location) OVERRIDE; | 37 const GURL& new_location) OVERRIDE; |
| 37 virtual void OnResponseStarted(net::URLRequest* request) OVERRIDE; | 38 virtual void OnResponseStarted(net::URLRequest* request) OVERRIDE; |
| 38 virtual void OnRawBytesRead(const net::URLRequest& request, | 39 virtual void OnRawBytesRead(const net::URLRequest& request, |
| 39 int bytes_read) OVERRIDE; | 40 int bytes_read) OVERRIDE; |
| 40 virtual void OnCompleted(net::URLRequest* request, bool started) OVERRIDE; | 41 virtual void OnCompleted(net::URLRequest* request, bool started) OVERRIDE; |
| 41 virtual void OnURLRequestDestroyed(net::URLRequest* request) OVERRIDE; | 42 virtual void OnURLRequestDestroyed(net::URLRequest* request) OVERRIDE; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 58 virtual int OnBeforeSocketStreamConnect( | 59 virtual int OnBeforeSocketStreamConnect( |
| 59 net::SocketStream* stream, | 60 net::SocketStream* stream, |
| 60 const net::CompletionCallback& callback) OVERRIDE; | 61 const net::CompletionCallback& callback) OVERRIDE; |
| 61 | 62 |
| 62 DISALLOW_COPY_AND_ASSIGN(AwNetworkDelegate); | 63 DISALLOW_COPY_AND_ASSIGN(AwNetworkDelegate); |
| 63 }; | 64 }; |
| 64 | 65 |
| 65 } // namespace android_webview | 66 } // namespace android_webview |
| 66 | 67 |
| 67 #endif // ANDROID_WEBVIEW_BROWSER_NET_AW_NETWORK_DELEGATE_H_ | 68 #endif // ANDROID_WEBVIEW_BROWSER_NET_AW_NETWORK_DELEGATE_H_ |
| OLD | NEW |