Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(450)

Side by Side Diff: ios/web_view/internal/web_view_url_request_context_getter.h

Issue 2715043002: Replace prefix of ios/web_view C++ classes. (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_URL_REQUEST_CONTEXT_GETTER_H_ 5 #ifndef IOS_WEB_VIEW_INTERNAL_WEB_VIEW_URL_REQUEST_CONTEXT_GETTER_H_
6 #define IOS_WEB_VIEW_INTERNAL_CRIWV_URL_REQUEST_CONTEXT_GETTER_H_ 6 #define IOS_WEB_VIEW_INTERNAL_WEB_VIEW_URL_REQUEST_CONTEXT_GETTER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/single_thread_task_runner.h" 12 #include "base/single_thread_task_runner.h"
13 #include "net/url_request/url_request_context_getter.h" 13 #include "net/url_request/url_request_context_getter.h"
14 14
15 namespace net { 15 namespace net {
16 class NetworkDelegate; 16 class NetworkDelegate;
17 class NetLog; 17 class NetLog;
18 class ProxyConfigService; 18 class ProxyConfigService;
19 class TransportSecurityPersister; 19 class TransportSecurityPersister;
20 class URLRequestContext; 20 class URLRequestContext;
21 class URLRequestContextStorage; 21 class URLRequestContextStorage;
22 } 22 }
23 23
24 namespace ios_web_view { 24 namespace ios_web_view {
25 25
26 // CWV-specific implementation of URLRequestContextGetter. 26 // CWV-specific implementation of URLRequestContextGetter.
Eugene But (OOO till 7-30) 2017/02/25 01:29:28 s/CWV-specific/WebView
michaeldo 2017/02/25 07:41:12 Done.
27 class CRIWVURLRequestContextGetter : public net::URLRequestContextGetter { 27 class WebViewURLRequestContextGetter : public net::URLRequestContextGetter {
28 public: 28 public:
29 CRIWVURLRequestContextGetter( 29 WebViewURLRequestContextGetter(
30 const base::FilePath& base_path, 30 const base::FilePath& base_path,
31 const scoped_refptr<base::SingleThreadTaskRunner>& network_task_runner, 31 const scoped_refptr<base::SingleThreadTaskRunner>& network_task_runner,
32 const scoped_refptr<base::SingleThreadTaskRunner>& file_task_runner, 32 const scoped_refptr<base::SingleThreadTaskRunner>& file_task_runner,
33 const scoped_refptr<base::SingleThreadTaskRunner>& cache_task_runner); 33 const scoped_refptr<base::SingleThreadTaskRunner>& cache_task_runner);
34 34
35 // net::URLRequestContextGetter implementation. 35 // net::URLRequestContextGetter implementation.
36 net::URLRequestContext* GetURLRequestContext() override; 36 net::URLRequestContext* GetURLRequestContext() override;
37 scoped_refptr<base::SingleThreadTaskRunner> GetNetworkTaskRunner() 37 scoped_refptr<base::SingleThreadTaskRunner> GetNetworkTaskRunner()
38 const override; 38 const override;
39 39
40 protected: 40 protected:
41 ~CRIWVURLRequestContextGetter() override; 41 ~WebViewURLRequestContextGetter() override;
42 42
43 private: 43 private:
44 base::FilePath base_path_; 44 base::FilePath base_path_;
45 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner_; 45 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner_;
46 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner_; 46 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner_;
47 scoped_refptr<base::SingleThreadTaskRunner> cache_task_runner_; 47 scoped_refptr<base::SingleThreadTaskRunner> cache_task_runner_;
48 std::unique_ptr<net::ProxyConfigService> proxy_config_service_; 48 std::unique_ptr<net::ProxyConfigService> proxy_config_service_;
49 std::unique_ptr<net::NetworkDelegate> network_delegate_; 49 std::unique_ptr<net::NetworkDelegate> network_delegate_;
50 std::unique_ptr<net::URLRequestContextStorage> storage_; 50 std::unique_ptr<net::URLRequestContextStorage> storage_;
51 std::unique_ptr<net::URLRequestContext> url_request_context_; 51 std::unique_ptr<net::URLRequestContext> url_request_context_;
52 std::unique_ptr<net::NetLog> net_log_; 52 std::unique_ptr<net::NetLog> net_log_;
53 std::unique_ptr<net::TransportSecurityPersister> 53 std::unique_ptr<net::TransportSecurityPersister>
54 transport_security_persister_; 54 transport_security_persister_;
55 55
56 DISALLOW_COPY_AND_ASSIGN(CRIWVURLRequestContextGetter); 56 DISALLOW_COPY_AND_ASSIGN(WebViewURLRequestContextGetter);
57 }; 57 };
58 58
59 } // namespace ios_web_view 59 } // namespace ios_web_view
60 60
61 #endif // IOS_WEB_VIEW_INTERNAL_CRIWV_URL_REQUEST_CONTEXT_GETTER_H_ 61 #endif // IOS_WEB_VIEW_INTERNAL_WEB_VIEW_URL_REQUEST_CONTEXT_GETTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698