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 12 matching lines...) Expand all Loading... |
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 const net::HttpResponseHeaders* original_response_headers, | 32 const net::HttpResponseHeaders* original_response_headers, |
33 scoped_refptr<net::HttpResponseHeaders>* override_response_headers) | 33 scoped_refptr<net::HttpResponseHeaders>* override_response_headers, |
34 OVERRIDE; | 34 GURL* allowed_unsafe_redirect_url) OVERRIDE; |
35 virtual void OnBeforeRedirect(net::URLRequest* request, | 35 virtual void OnBeforeRedirect(net::URLRequest* request, |
36 const GURL& new_location) OVERRIDE; | 36 const GURL& new_location) OVERRIDE; |
37 virtual void OnResponseStarted(net::URLRequest* request) OVERRIDE; | 37 virtual void OnResponseStarted(net::URLRequest* request) OVERRIDE; |
38 virtual void OnRawBytesRead(const net::URLRequest& request, | 38 virtual void OnRawBytesRead(const net::URLRequest& request, |
39 int bytes_read) OVERRIDE; | 39 int bytes_read) OVERRIDE; |
40 virtual void OnCompleted(net::URLRequest* request, bool started) OVERRIDE; | 40 virtual void OnCompleted(net::URLRequest* request, bool started) OVERRIDE; |
41 virtual void OnURLRequestDestroyed(net::URLRequest* request) OVERRIDE; | 41 virtual void OnURLRequestDestroyed(net::URLRequest* request) OVERRIDE; |
42 virtual void OnPACScriptError(int line_number, | 42 virtual void OnPACScriptError(int line_number, |
43 const base::string16& error) OVERRIDE; | 43 const base::string16& error) OVERRIDE; |
44 virtual net::NetworkDelegate::AuthRequiredResponse OnAuthRequired( | 44 virtual net::NetworkDelegate::AuthRequiredResponse OnAuthRequired( |
(...skipping 13 matching lines...) Expand all Loading... |
58 virtual int OnBeforeSocketStreamConnect( | 58 virtual int OnBeforeSocketStreamConnect( |
59 net::SocketStream* stream, | 59 net::SocketStream* stream, |
60 const net::CompletionCallback& callback) OVERRIDE; | 60 const net::CompletionCallback& callback) OVERRIDE; |
61 | 61 |
62 DISALLOW_COPY_AND_ASSIGN(AwNetworkDelegate); | 62 DISALLOW_COPY_AND_ASSIGN(AwNetworkDelegate); |
63 }; | 63 }; |
64 | 64 |
65 } // namespace android_webview | 65 } // namespace android_webview |
66 | 66 |
67 #endif // ANDROID_WEBVIEW_BROWSER_NET_AW_NETWORK_DELEGATE_H_ | 67 #endif // ANDROID_WEBVIEW_BROWSER_NET_AW_NETWORK_DELEGATE_H_ |
OLD | NEW |