| 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 "net/base/net_errors.h" | 8 #include "net/base/net_errors.h" |
| 9 #include "net/base/completion_callback.h" | 9 #include "net/base/completion_callback.h" |
| 10 #include "net/url_request/url_request.h" | 10 #include "net/url_request/url_request.h" |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 | 80 |
| 81 bool AwNetworkDelegate::OnCanSetCookie(const net::URLRequest& request, | 81 bool AwNetworkDelegate::OnCanSetCookie(const net::URLRequest& request, |
| 82 const std::string& cookie_line, | 82 const std::string& cookie_line, |
| 83 net::CookieOptions* options) { | 83 net::CookieOptions* options) { |
| 84 return AwCookieAccessPolicy::GetInstance()->OnCanSetCookie(request, | 84 return AwCookieAccessPolicy::GetInstance()->OnCanSetCookie(request, |
| 85 cookie_line, | 85 cookie_line, |
| 86 options); | 86 options); |
| 87 } | 87 } |
| 88 | 88 |
| 89 bool AwNetworkDelegate::OnCanAccessFile(const net::URLRequest& request, | 89 bool AwNetworkDelegate::OnCanAccessFile(const net::URLRequest& request, |
| 90 const FilePath& path) const { | 90 const base::FilePath& path) const { |
| 91 return true; | 91 return true; |
| 92 } | 92 } |
| 93 | 93 |
| 94 bool AwNetworkDelegate::OnCanThrottleRequest( | 94 bool AwNetworkDelegate::OnCanThrottleRequest( |
| 95 const net::URLRequest& request) const { | 95 const net::URLRequest& request) const { |
| 96 return false; | 96 return false; |
| 97 } | 97 } |
| 98 | 98 |
| 99 int AwNetworkDelegate::OnBeforeSocketStreamConnect( | 99 int AwNetworkDelegate::OnBeforeSocketStreamConnect( |
| 100 net::SocketStream* stream, | 100 net::SocketStream* stream, |
| 101 const net::CompletionCallback& callback) { | 101 const net::CompletionCallback& callback) { |
| 102 return net::OK; | 102 return net::OK; |
| 103 } | 103 } |
| 104 | 104 |
| 105 void AwNetworkDelegate::OnRequestWaitStateChange(const net::URLRequest& request, | 105 void AwNetworkDelegate::OnRequestWaitStateChange(const net::URLRequest& request, |
| 106 RequestWaitState state) { | 106 RequestWaitState state) { |
| 107 } | 107 } |
| 108 | 108 |
| 109 } // namespace android_webview | 109 } // namespace android_webview |
| OLD | NEW |