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 #include "android_webview/browser/net/aw_network_delegate.h" | 5 #include "android_webview/browser/net/aw_network_delegate.h" |
6 | 6 |
7 #include "android_webview/browser/aw_cookie_access_policy.h" | 7 #include "android_webview/browser/aw_cookie_access_policy.h" |
8 #include "base/android/build_info.h" | 8 #include "base/android/build_info.h" |
9 #include "net/base/net_errors.h" | 9 #include "net/base/net_errors.h" |
10 #include "net/base/completion_callback.h" | 10 #include "net/base/completion_callback.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 } | 38 } |
39 | 39 |
40 void AwNetworkDelegate::OnSendHeaders(net::URLRequest* request, | 40 void AwNetworkDelegate::OnSendHeaders(net::URLRequest* request, |
41 const net::HttpRequestHeaders& headers) { | 41 const net::HttpRequestHeaders& headers) { |
42 } | 42 } |
43 | 43 |
44 int AwNetworkDelegate::OnHeadersReceived( | 44 int AwNetworkDelegate::OnHeadersReceived( |
45 net::URLRequest* request, | 45 net::URLRequest* request, |
46 const net::CompletionCallback& callback, | 46 const net::CompletionCallback& callback, |
47 const net::HttpResponseHeaders* original_response_headers, | 47 const net::HttpResponseHeaders* original_response_headers, |
48 scoped_refptr<net::HttpResponseHeaders>* override_response_headers) { | 48 scoped_refptr<net::HttpResponseHeaders>* override_response_headers, |
| 49 GURL* allowed_unsafe_redirect_url) { |
49 return net::OK; | 50 return net::OK; |
50 } | 51 } |
51 | 52 |
52 void AwNetworkDelegate::OnBeforeRedirect(net::URLRequest* request, | 53 void AwNetworkDelegate::OnBeforeRedirect(net::URLRequest* request, |
53 const GURL& new_location) { | 54 const GURL& new_location) { |
54 } | 55 } |
55 | 56 |
56 void AwNetworkDelegate::OnResponseStarted(net::URLRequest* request) { | 57 void AwNetworkDelegate::OnResponseStarted(net::URLRequest* request) { |
57 } | 58 } |
58 | 59 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 return false; | 103 return false; |
103 } | 104 } |
104 | 105 |
105 int AwNetworkDelegate::OnBeforeSocketStreamConnect( | 106 int AwNetworkDelegate::OnBeforeSocketStreamConnect( |
106 net::SocketStream* stream, | 107 net::SocketStream* stream, |
107 const net::CompletionCallback& callback) { | 108 const net::CompletionCallback& callback) { |
108 return net::OK; | 109 return net::OK; |
109 } | 110 } |
110 | 111 |
111 } // namespace android_webview | 112 } // namespace android_webview |
OLD | NEW |