| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "ios/web/shell/shell_network_delegate.h" | 5 #include "ios/web/shell/shell_network_delegate.h" |
| 6 | 6 |
| 7 #include "net/base/net_errors.h" | 7 #include "net/base/net_errors.h" |
| 8 | 8 |
| 9 namespace web { | 9 namespace web { |
| 10 | 10 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 const net::HttpResponseHeaders* original_response_headers, | 38 const net::HttpResponseHeaders* original_response_headers, |
| 39 scoped_refptr<net::HttpResponseHeaders>* override_response_headers, | 39 scoped_refptr<net::HttpResponseHeaders>* override_response_headers, |
| 40 GURL* allowed_unsafe_redirect_url) { | 40 GURL* allowed_unsafe_redirect_url) { |
| 41 return net::OK; | 41 return net::OK; |
| 42 } | 42 } |
| 43 | 43 |
| 44 void ShellNetworkDelegate::OnBeforeRedirect(net::URLRequest* request, | 44 void ShellNetworkDelegate::OnBeforeRedirect(net::URLRequest* request, |
| 45 const GURL& new_location) { | 45 const GURL& new_location) { |
| 46 } | 46 } |
| 47 | 47 |
| 48 void ShellNetworkDelegate::OnResponseStarted(net::URLRequest* request) { | 48 void ShellNetworkDelegate::OnResponseStarted(net::URLRequest* request, |
| 49 } | 49 int net_error) {} |
| 50 | 50 |
| 51 void ShellNetworkDelegate::OnCompleted(net::URLRequest* request, bool started) { | 51 void ShellNetworkDelegate::OnCompleted(net::URLRequest* request, |
| 52 } | 52 bool started, |
| 53 int net_error) {} |
| 53 | 54 |
| 54 void ShellNetworkDelegate::OnURLRequestDestroyed(net::URLRequest* request) { | 55 void ShellNetworkDelegate::OnURLRequestDestroyed(net::URLRequest* request) { |
| 55 } | 56 } |
| 56 | 57 |
| 57 void ShellNetworkDelegate::OnPACScriptError(int line_number, | 58 void ShellNetworkDelegate::OnPACScriptError(int line_number, |
| 58 const base::string16& error) { | 59 const base::string16& error) { |
| 59 } | 60 } |
| 60 | 61 |
| 61 ShellNetworkDelegate::AuthRequiredResponse ShellNetworkDelegate::OnAuthRequired( | 62 ShellNetworkDelegate::AuthRequiredResponse ShellNetworkDelegate::OnAuthRequired( |
| 62 net::URLRequest* request, | 63 net::URLRequest* request, |
| (...skipping 13 matching lines...) Expand all Loading... |
| 76 net::CookieOptions* options) { | 77 net::CookieOptions* options) { |
| 77 return true; | 78 return true; |
| 78 } | 79 } |
| 79 | 80 |
| 80 bool ShellNetworkDelegate::OnCanAccessFile(const net::URLRequest& request, | 81 bool ShellNetworkDelegate::OnCanAccessFile(const net::URLRequest& request, |
| 81 const base::FilePath& path) const { | 82 const base::FilePath& path) const { |
| 82 return true; | 83 return true; |
| 83 } | 84 } |
| 84 | 85 |
| 85 } // namespace web | 86 } // namespace web |
| OLD | NEW |