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

Side by Side Diff: chrome/service/net/service_url_request_context.h

Issue 11419224: Add missing (and remove superfluous) 'explicit' from constructors. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + remove non-straightforward changes Created 7 years, 11 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 CHROME_SERVICE_NET_SERVICE_URL_REQUEST_CONTEXT_H_ 5 #ifndef CHROME_SERVICE_NET_SERVICE_URL_REQUEST_CONTEXT_H_
6 #define CHROME_SERVICE_NET_SERVICE_URL_REQUEST_CONTEXT_H_ 6 #define CHROME_SERVICE_NET_SERVICE_URL_REQUEST_CONTEXT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 17 matching lines...) Expand all
28 class ProxyConfigService; 28 class ProxyConfigService;
29 } 29 }
30 30
31 // Subclass of net::URLRequestContext which can be used to store extra 31 // Subclass of net::URLRequestContext which can be used to store extra
32 // information for requests. This subclass is meant to be used in the service 32 // information for requests. This subclass is meant to be used in the service
33 // process where the profile is not available. 33 // process where the profile is not available.
34 // 34 //
35 class ServiceURLRequestContext : public net::URLRequestContext { 35 class ServiceURLRequestContext : public net::URLRequestContext {
36 public: 36 public:
37 // This context takes ownership of |net_proxy_config_service|. 37 // This context takes ownership of |net_proxy_config_service|.
38 explicit ServiceURLRequestContext( 38 ServiceURLRequestContext(
39 const std::string& user_agent, 39 const std::string& user_agent,
40 net::ProxyConfigService* net_proxy_config_service); 40 net::ProxyConfigService* net_proxy_config_service);
41 41
42 virtual ~ServiceURLRequestContext(); 42 virtual ~ServiceURLRequestContext();
43 43
44 private: 44 private:
45 net::URLRequestContextStorage storage_; 45 net::URLRequestContextStorage storage_;
46 }; 46 };
47 47
48 class ServiceURLRequestContextGetter : public net::URLRequestContextGetter { 48 class ServiceURLRequestContextGetter : public net::URLRequestContextGetter {
(...skipping 14 matching lines...) Expand all
63 ServiceURLRequestContextGetter(); 63 ServiceURLRequestContextGetter();
64 virtual ~ServiceURLRequestContextGetter(); 64 virtual ~ServiceURLRequestContextGetter();
65 65
66 std::string user_agent_; 66 std::string user_agent_;
67 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner_; 67 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner_;
68 scoped_ptr<net::ProxyConfigService> proxy_config_service_; 68 scoped_ptr<net::ProxyConfigService> proxy_config_service_;
69 scoped_ptr<net::URLRequestContext> url_request_context_; 69 scoped_ptr<net::URLRequestContext> url_request_context_;
70 }; 70 };
71 71
72 #endif // CHROME_SERVICE_NET_SERVICE_URL_REQUEST_CONTEXT_H_ 72 #endif // CHROME_SERVICE_NET_SERVICE_URL_REQUEST_CONTEXT_H_
OLDNEW
« no previous file with comments | « chrome/service/cloud_print/cloud_print_url_fetcher_unittest.cc ('k') | content/app/content_main_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698