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

Side by Side Diff: chrome/service/service_process.h

Issue 1899083002: Convert //chrome from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . 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 | « chrome/service/service_main.cc ('k') | chrome/service/service_process.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 (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_SERVICE_PROCESS_H_ 5 #ifndef CHROME_SERVICE_SERVICE_PROCESS_H_
6 #define CHROME_SERVICE_SERVICE_PROCESS_H_ 6 #define CHROME_SERVICE_SERVICE_PROCESS_H_
7 7
8 #include <memory>
8 #include <string> 9 #include <string>
9 10
10 #include "base/macros.h" 11 #include "base/macros.h"
11 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
12 #include "base/memory/scoped_ptr.h"
13 #include "base/threading/thread.h" 13 #include "base/threading/thread.h"
14 #include "chrome/service/cloud_print/cloud_print_proxy.h" 14 #include "chrome/service/cloud_print/cloud_print_proxy.h"
15 #include "chrome/service/service_ipc_server.h" 15 #include "chrome/service/service_ipc_server.h"
16 16
17 class ServiceProcessPrefs; 17 class ServiceProcessPrefs;
18 class ServiceURLRequestContextGetter; 18 class ServiceURLRequestContextGetter;
19 class ServiceProcessState; 19 class ServiceProcessState;
20 20
21 namespace base { 21 namespace base {
22 class CommandLine; 22 class CommandLine;
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 // enabled in this process. 100 // enabled in this process.
101 void OnServiceEnabled(); 101 void OnServiceEnabled();
102 102
103 // Called exactly ONCE per process instance for each service that gets 103 // Called exactly ONCE per process instance for each service that gets
104 // disabled in this process (note that shutdown != disabled). 104 // disabled in this process (note that shutdown != disabled).
105 void OnServiceDisabled(); 105 void OnServiceDisabled();
106 106
107 // Terminate forces the service process to quit. 107 // Terminate forces the service process to quit.
108 void Terminate(); 108 void Terminate();
109 109
110 scoped_ptr<net::NetworkChangeNotifier> network_change_notifier_; 110 std::unique_ptr<net::NetworkChangeNotifier> network_change_notifier_;
111 scoped_ptr<base::Thread> io_thread_; 111 std::unique_ptr<base::Thread> io_thread_;
112 scoped_ptr<base::Thread> file_thread_; 112 std::unique_ptr<base::Thread> file_thread_;
113 scoped_refptr<base::SequencedWorkerPool> blocking_pool_; 113 scoped_refptr<base::SequencedWorkerPool> blocking_pool_;
114 scoped_ptr<cloud_print::CloudPrintProxy> cloud_print_proxy_; 114 std::unique_ptr<cloud_print::CloudPrintProxy> cloud_print_proxy_;
115 scoped_ptr<ServiceProcessPrefs> service_prefs_; 115 std::unique_ptr<ServiceProcessPrefs> service_prefs_;
116 scoped_ptr<ServiceIPCServer> ipc_server_; 116 std::unique_ptr<ServiceIPCServer> ipc_server_;
117 scoped_ptr<ServiceProcessState> service_process_state_; 117 std::unique_ptr<ServiceProcessState> service_process_state_;
118 118
119 // An event that will be signalled when we shutdown. 119 // An event that will be signalled when we shutdown.
120 base::WaitableEvent shutdown_event_; 120 base::WaitableEvent shutdown_event_;
121 121
122 // Pointer to the main message loop that host this object. 122 // Pointer to the main message loop that host this object.
123 base::MessageLoop* main_message_loop_; 123 base::MessageLoop* main_message_loop_;
124 124
125 // Count of currently enabled services in this process. 125 // Count of currently enabled services in this process.
126 int enabled_services_; 126 int enabled_services_;
127 127
128 // Speficies whether a product update is available. 128 // Speficies whether a product update is available.
129 bool update_available_; 129 bool update_available_;
130 130
131 scoped_refptr<ServiceURLRequestContextGetter> request_context_getter_; 131 scoped_refptr<ServiceURLRequestContextGetter> request_context_getter_;
132 132
133 DISALLOW_COPY_AND_ASSIGN(ServiceProcess); 133 DISALLOW_COPY_AND_ASSIGN(ServiceProcess);
134 }; 134 };
135 135
136 extern ServiceProcess* g_service_process; 136 extern ServiceProcess* g_service_process;
137 137
138 #endif // CHROME_SERVICE_SERVICE_PROCESS_H_ 138 #endif // CHROME_SERVICE_SERVICE_PROCESS_H_
OLDNEW
« no previous file with comments | « chrome/service/service_main.cc ('k') | chrome/service/service_process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698