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

Side by Side Diff: ios/web/shell/shell_url_request_context_getter.h

Issue 1861593005: Convert //ios from scoped_ptr to std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase? Created 4 years, 8 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
« no previous file with comments | « ios/web/shell/shell_main_delegate.h ('k') | ios/web/shell/shell_url_request_context_getter.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_SHELL_SHELL_URL_REQUEST_CONTEXT_GETTER_H_ 5 #ifndef IOS_WEB_SHELL_SHELL_URL_REQUEST_CONTEXT_GETTER_H_
6 #define IOS_WEB_SHELL_SHELL_URL_REQUEST_CONTEXT_GETTER_H_ 6 #define IOS_WEB_SHELL_SHELL_URL_REQUEST_CONTEXT_GETTER_H_
7 7
8 #include <memory>
9
8 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
9 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
10 #include "base/macros.h" 12 #include "base/macros.h"
11 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
12 #include "base/memory/scoped_ptr.h"
13 #include "base/single_thread_task_runner.h" 14 #include "base/single_thread_task_runner.h"
14 #include "net/url_request/url_request_context_getter.h" 15 #include "net/url_request/url_request_context_getter.h"
15 16
16 namespace net { 17 namespace net {
17 class HostResolver; 18 class HostResolver;
18 class MappedHostResolver; 19 class MappedHostResolver;
19 class NetworkDelegate; 20 class NetworkDelegate;
20 class NetLog; 21 class NetLog;
21 class ProxyConfigService; 22 class ProxyConfigService;
22 class TransportSecurityPersister; 23 class TransportSecurityPersister;
(...skipping 17 matching lines...) Expand all
40 const override; 41 const override;
41 42
42 protected: 43 protected:
43 ~ShellURLRequestContextGetter() override; 44 ~ShellURLRequestContextGetter() override;
44 45
45 private: 46 private:
46 base::FilePath base_path_; 47 base::FilePath base_path_;
47 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner_; 48 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner_;
48 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner_; 49 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner_;
49 scoped_refptr<base::SingleThreadTaskRunner> cache_task_runner_; 50 scoped_refptr<base::SingleThreadTaskRunner> cache_task_runner_;
50 scoped_ptr<net::ProxyConfigService> proxy_config_service_; 51 std::unique_ptr<net::ProxyConfigService> proxy_config_service_;
51 scoped_ptr<net::NetworkDelegate> network_delegate_; 52 std::unique_ptr<net::NetworkDelegate> network_delegate_;
52 scoped_ptr<net::URLRequestContextStorage> storage_; 53 std::unique_ptr<net::URLRequestContextStorage> storage_;
53 scoped_ptr<net::URLRequestContext> url_request_context_; 54 std::unique_ptr<net::URLRequestContext> url_request_context_;
54 scoped_ptr<net::NetLog> net_log_; 55 std::unique_ptr<net::NetLog> net_log_;
55 scoped_ptr<net::TransportSecurityPersister> transport_security_persister_; 56 std::unique_ptr<net::TransportSecurityPersister>
57 transport_security_persister_;
56 58
57 DISALLOW_COPY_AND_ASSIGN(ShellURLRequestContextGetter); 59 DISALLOW_COPY_AND_ASSIGN(ShellURLRequestContextGetter);
58 }; 60 };
59 61
60 } // namespace web 62 } // namespace web
61 63
62 #endif // IOS_WEB_SHELL_SHELL_URL_REQUEST_CONTEXT_GETTER_H_ 64 #endif // IOS_WEB_SHELL_SHELL_URL_REQUEST_CONTEXT_GETTER_H_
OLDNEW
« no previous file with comments | « ios/web/shell/shell_main_delegate.h ('k') | ios/web/shell/shell_url_request_context_getter.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698