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 #ifndef IOS_WEB_VIEW_INTERNAL_CRIWV_NETWORK_DELEGATE_H_ | 5 #ifndef IOS_WEB_VIEW_INTERNAL_WEB_VIEW_NETWORK_DELEGATE_H_ |
6 #define IOS_WEB_VIEW_INTERNAL_CRIWV_NETWORK_DELEGATE_H_ | 6 #define IOS_WEB_VIEW_INTERNAL_WEB_VIEW_NETWORK_DELEGATE_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "net/base/network_delegate_impl.h" | 9 #include "net/base/network_delegate_impl.h" |
10 | 10 |
11 namespace ios_web_view { | 11 namespace ios_web_view { |
12 | 12 |
13 // CWV-specific implementation of NetworkDelegate. | 13 // WebView implementation of NetworkDelegate. |
14 class CRIWVNetworkDelegate : public net::NetworkDelegateImpl { | 14 class WebViewNetworkDelegate : public net::NetworkDelegateImpl { |
15 public: | 15 public: |
16 CRIWVNetworkDelegate(); | 16 WebViewNetworkDelegate(); |
17 ~CRIWVNetworkDelegate() override; | 17 ~WebViewNetworkDelegate() override; |
18 | 18 |
19 private: | 19 private: |
20 // net::NetworkDelegate implementation. | 20 // net::NetworkDelegate implementation. |
21 int OnBeforeURLRequest(net::URLRequest* request, | 21 int OnBeforeURLRequest(net::URLRequest* request, |
22 const net::CompletionCallback& callback, | 22 const net::CompletionCallback& callback, |
23 GURL* new_url) override; | 23 GURL* new_url) override; |
24 int OnBeforeStartTransaction(net::URLRequest* request, | 24 int OnBeforeStartTransaction(net::URLRequest* request, |
25 const net::CompletionCallback& callback, | 25 const net::CompletionCallback& callback, |
26 net::HttpRequestHeaders* headers) override; | 26 net::HttpRequestHeaders* headers) override; |
27 void OnStartTransaction(net::URLRequest* request, | 27 void OnStartTransaction(net::URLRequest* request, |
(...skipping 18 matching lines...) Expand all Loading... |
46 const AuthCallback& callback, | 46 const AuthCallback& callback, |
47 net::AuthCredentials* credentials) override; | 47 net::AuthCredentials* credentials) override; |
48 bool OnCanGetCookies(const net::URLRequest& request, | 48 bool OnCanGetCookies(const net::URLRequest& request, |
49 const net::CookieList& cookie_list) override; | 49 const net::CookieList& cookie_list) override; |
50 bool OnCanSetCookie(const net::URLRequest& request, | 50 bool OnCanSetCookie(const net::URLRequest& request, |
51 const std::string& cookie_line, | 51 const std::string& cookie_line, |
52 net::CookieOptions* options) override; | 52 net::CookieOptions* options) override; |
53 bool OnCanAccessFile(const net::URLRequest& request, | 53 bool OnCanAccessFile(const net::URLRequest& request, |
54 const base::FilePath& path) const override; | 54 const base::FilePath& path) const override; |
55 | 55 |
56 DISALLOW_COPY_AND_ASSIGN(CRIWVNetworkDelegate); | 56 DISALLOW_COPY_AND_ASSIGN(WebViewNetworkDelegate); |
57 }; | 57 }; |
58 | 58 |
59 } // namespace ios_web_view | 59 } // namespace ios_web_view |
60 | 60 |
61 #endif // IOS_WEB_VIEW_INTERNAL_CRIWV_NETWORK_DELEGATE_H_ | 61 #endif // IOS_WEB_VIEW_INTERNAL_WEB_VIEW_NETWORK_DELEGATE_H_ |
OLD | NEW |