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

Side by Side Diff: remoting/host/url_request_context.h

Issue 10106013: Chromoting: stopping the service if the host ID is permanently not recognized by the could. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Exiting host cleanly + CR feedback. Created 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_HOST_URL_REQUEST_CONTEXT_H_ 5 #ifndef REMOTING_HOST_URL_REQUEST_CONTEXT_H_
6 #define REMOTING_HOST_URL_REQUEST_CONTEXT_H_ 6 #define REMOTING_HOST_URL_REQUEST_CONTEXT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/message_loop.h" 12 #include "base/message_loop.h"
13 #include "net/proxy/proxy_config_service.h" 13 #include "net/proxy/proxy_config_service.h"
14 #include "net/url_request/url_request_context.h" 14 #include "net/url_request/url_request_context.h"
15 #include "net/url_request/url_request_context_getter.h" 15 #include "net/url_request/url_request_context_getter.h"
16 #include "net/url_request/url_request_context_storage.h" 16 #include "net/url_request/url_request_context_storage.h"
17 17
18 namespace base { 18 namespace base {
19 class MessageLoopProxy; 19 class MessageLoopProxy;
20 } // namespace base 20 } // namespace base
21 21
22 namespace remoting { 22 namespace remoting {
23 23
24 // Subclass of net::URLRequestContext which can be used to store extra 24 // Subclass of net::URLRequestContext which can be used to store extra
25 // information for requests. This subclass is meant to be used in the 25 // information for requests. This subclass is meant to be used in the
26 // remoting Me2Me host process where the profile is not available. 26 // remoting Me2Me host process where the profile is not available.
27 class URLRequestContext : public net::URLRequestContext { 27 class URLRequestContext : public net::URLRequestContext {
28 public: 28 public:
29 explicit URLRequestContext(net::ProxyConfigService* net_proxy_config_service); 29 explicit URLRequestContext(
30 scoped_ptr<net::ProxyConfigService> proxy_config_service);
30 31
31 private: 32 private:
32 virtual ~URLRequestContext(); 33 virtual ~URLRequestContext();
33 34
34 net::URLRequestContextStorage storage_; 35 net::URLRequestContextStorage storage_;
35 36
36 DISALLOW_COPY_AND_ASSIGN(URLRequestContext); 37 DISALLOW_COPY_AND_ASSIGN(URLRequestContext);
37 }; 38 };
38 39
39 class URLRequestContextGetter : public net::URLRequestContextGetter { 40 class URLRequestContextGetter : public net::URLRequestContextGetter {
(...skipping 13 matching lines...) Expand all
53 scoped_refptr<net::URLRequestContext> url_request_context_; 54 scoped_refptr<net::URLRequestContext> url_request_context_;
54 scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy_; 55 scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy_;
55 scoped_ptr<net::ProxyConfigService> proxy_config_service_; 56 scoped_ptr<net::ProxyConfigService> proxy_config_service_;
56 57
57 DISALLOW_COPY_AND_ASSIGN(URLRequestContextGetter); 58 DISALLOW_COPY_AND_ASSIGN(URLRequestContextGetter);
58 }; 59 };
59 60
60 } // namespace remoting 61 } // namespace remoting
61 62
62 #endif // CHROME_SERVICE_NET_SERVICE_URL_REQUEST_CONTEXT_H_ 63 #endif // CHROME_SERVICE_NET_SERVICE_URL_REQUEST_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698