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

Side by Side Diff: remoting/base/url_request_context_getter.h

Issue 1864213002: Convert //remoting to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mac IWYU 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 | « remoting/base/url_request.h ('k') | remoting/base/vlog_net_log.h » ('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 REMOTING_BASE_URL_REQUEST_CONTEXT_GETTER_H_ 5 #ifndef REMOTING_BASE_URL_REQUEST_CONTEXT_GETTER_H_
6 #define REMOTING_BASE_URL_REQUEST_CONTEXT_GETTER_H_ 6 #define REMOTING_BASE_URL_REQUEST_CONTEXT_GETTER_H_
7 7
8 #include <memory>
9
8 #include "base/macros.h" 10 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "net/url_request/url_request_context_getter.h" 11 #include "net/url_request/url_request_context_getter.h"
11 12
12 namespace base { 13 namespace base {
13 class SingleThreadTaskRunner; 14 class SingleThreadTaskRunner;
14 } // namespace base 15 } // namespace base
15 16
16 namespace net { 17 namespace net {
17 class NetLog; 18 class NetLog;
18 class ProxyConfigService; 19 class ProxyConfigService;
19 } // namespace net 20 } // namespace net
(...skipping 10 matching lines...) Expand all
30 net::URLRequestContext* GetURLRequestContext() override; 31 net::URLRequestContext* GetURLRequestContext() override;
31 scoped_refptr<base::SingleThreadTaskRunner> GetNetworkTaskRunner() 32 scoped_refptr<base::SingleThreadTaskRunner> GetNetworkTaskRunner()
32 const override; 33 const override;
33 34
34 protected: 35 protected:
35 ~URLRequestContextGetter() override; 36 ~URLRequestContextGetter() override;
36 37
37 private: 38 private:
38 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner_; 39 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner_;
39 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner_; 40 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner_;
40 scoped_ptr<net::ProxyConfigService> proxy_config_service_; 41 std::unique_ptr<net::ProxyConfigService> proxy_config_service_;
41 scoped_ptr<net::NetLog> net_log_; 42 std::unique_ptr<net::NetLog> net_log_;
42 scoped_ptr<net::URLRequestContext> url_request_context_; 43 std::unique_ptr<net::URLRequestContext> url_request_context_;
43 44
44 DISALLOW_COPY_AND_ASSIGN(URLRequestContextGetter); 45 DISALLOW_COPY_AND_ASSIGN(URLRequestContextGetter);
45 }; 46 };
46 47
47 } // namespace remoting 48 } // namespace remoting
48 49
49 #endif // REMOTING_BASE_URL_REQUEST_CONTEXT_GETTER_H_ 50 #endif // REMOTING_BASE_URL_REQUEST_CONTEXT_GETTER_H_
OLDNEW
« no previous file with comments | « remoting/base/url_request.h ('k') | remoting/base/vlog_net_log.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698