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

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

Issue 542473002: Uses ProxyConfigServiceLinux in the chromoting host to configure proxy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 | « net/proxy/proxy_config_service_mac.h ('k') | remoting/base/url_request_context_getter.cc » ('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 <string>
9
10 #include "base/basictypes.h" 8 #include "base/basictypes.h"
11 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
12 #include "base/message_loop/message_loop.h"
13 #include "net/proxy/proxy_config_service.h"
14 #include "net/url_request/url_request_context.h"
15 #include "net/url_request/url_request_context_getter.h" 10 #include "net/url_request/url_request_context_getter.h"
16 #include "net/url_request/url_request_context_storage.h"
17 11
18 namespace base { 12 namespace base {
19 class MessageLoopProxy; 13 class SingleThreadTaskRunner;
20 } // namespace base 14 } // namespace base
21 15
16 namespace net {
17 class ProxyConfigService;
18 } // namespace net
19
22 namespace remoting { 20 namespace remoting {
23 21
24 class URLRequestContextGetter : public net::URLRequestContextGetter { 22 class URLRequestContextGetter : public net::URLRequestContextGetter {
25 public: 23 public:
26 URLRequestContextGetter( 24 URLRequestContextGetter(
27 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner); 25 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner,
26 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner);
28 27
29 // Overridden from net::URLRequestContextGetter: 28 // Overridden from net::URLRequestContextGetter:
30 virtual net::URLRequestContext* GetURLRequestContext() OVERRIDE; 29 virtual net::URLRequestContext* GetURLRequestContext() OVERRIDE;
31 virtual scoped_refptr<base::SingleThreadTaskRunner> 30 virtual scoped_refptr<base::SingleThreadTaskRunner>
32 GetNetworkTaskRunner() const OVERRIDE; 31 GetNetworkTaskRunner() const OVERRIDE;
33 32
34 protected: 33 protected:
35 virtual ~URLRequestContextGetter(); 34 virtual ~URLRequestContextGetter();
36 35
37 private: 36 private:
38 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner_; 37 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner_;
39 scoped_ptr<net::ProxyConfigService> proxy_config_service_; 38 scoped_ptr<net::ProxyConfigService> proxy_config_service_;
40 scoped_ptr<net::URLRequestContext> url_request_context_; 39 scoped_ptr<net::URLRequestContext> url_request_context_;
41 40
42 DISALLOW_COPY_AND_ASSIGN(URLRequestContextGetter); 41 DISALLOW_COPY_AND_ASSIGN(URLRequestContextGetter);
43 }; 42 };
44 43
45 } // namespace remoting 44 } // namespace remoting
46 45
47 #endif // REMOTING_BASE_URL_REQUEST_CONTEXT_GETTER_H_ 46 #endif // REMOTING_BASE_URL_REQUEST_CONTEXT_GETTER_H_
OLDNEW
« no previous file with comments | « net/proxy/proxy_config_service_mac.h ('k') | remoting/base/url_request_context_getter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698