OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "ios/web_view/internal/web_view_network_delegate.h" |
| 6 |
| 7 #include "net/base/net_errors.h" |
| 8 |
| 9 namespace ios_web_view { |
| 10 |
| 11 WebViewNetworkDelegate::WebViewNetworkDelegate() {} |
| 12 |
| 13 WebViewNetworkDelegate::~WebViewNetworkDelegate() = default; |
| 14 |
| 15 int WebViewNetworkDelegate::OnBeforeURLRequest( |
| 16 net::URLRequest* request, |
| 17 const net::CompletionCallback& callback, |
| 18 GURL* new_url) { |
| 19 return net::OK; |
| 20 } |
| 21 |
| 22 int WebViewNetworkDelegate::OnBeforeStartTransaction( |
| 23 net::URLRequest* request, |
| 24 const net::CompletionCallback& callback, |
| 25 net::HttpRequestHeaders* headers) { |
| 26 return net::OK; |
| 27 } |
| 28 |
| 29 void WebViewNetworkDelegate::OnStartTransaction( |
| 30 net::URLRequest* request, |
| 31 const net::HttpRequestHeaders& headers) {} |
| 32 |
| 33 int WebViewNetworkDelegate::OnHeadersReceived( |
| 34 net::URLRequest* request, |
| 35 const net::CompletionCallback& callback, |
| 36 const net::HttpResponseHeaders* original_response_headers, |
| 37 scoped_refptr<net::HttpResponseHeaders>* override_response_headers, |
| 38 GURL* allowed_unsafe_redirect_url) { |
| 39 return net::OK; |
| 40 } |
| 41 |
| 42 void WebViewNetworkDelegate::OnBeforeRedirect(net::URLRequest* request, |
| 43 const GURL& new_location) {} |
| 44 |
| 45 void WebViewNetworkDelegate::OnResponseStarted(net::URLRequest* request) {} |
| 46 |
| 47 void WebViewNetworkDelegate::OnNetworkBytesReceived(net::URLRequest* request, |
| 48 int64_t bytes_received) {} |
| 49 |
| 50 void WebViewNetworkDelegate::OnCompleted(net::URLRequest* request, |
| 51 bool started) {} |
| 52 |
| 53 void WebViewNetworkDelegate::OnURLRequestDestroyed(net::URLRequest* request) {} |
| 54 |
| 55 void WebViewNetworkDelegate::OnPACScriptError(int line_number, |
| 56 const base::string16& error) {} |
| 57 |
| 58 WebViewNetworkDelegate::AuthRequiredResponse |
| 59 WebViewNetworkDelegate::OnAuthRequired(net::URLRequest* request, |
| 60 const net::AuthChallengeInfo& auth_info, |
| 61 const AuthCallback& callback, |
| 62 net::AuthCredentials* credentials) { |
| 63 return AUTH_REQUIRED_RESPONSE_NO_ACTION; |
| 64 } |
| 65 |
| 66 bool WebViewNetworkDelegate::OnCanGetCookies( |
| 67 const net::URLRequest& request, |
| 68 const net::CookieList& cookie_list) { |
| 69 return true; |
| 70 } |
| 71 |
| 72 bool WebViewNetworkDelegate::OnCanSetCookie(const net::URLRequest& request, |
| 73 const std::string& cookie_line, |
| 74 net::CookieOptions* options) { |
| 75 return true; |
| 76 } |
| 77 |
| 78 bool WebViewNetworkDelegate::OnCanAccessFile(const net::URLRequest& request, |
| 79 const base::FilePath& path) const { |
| 80 return true; |
| 81 } |
| 82 |
| 83 } // namespace ios_web_view |
OLD | NEW |