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

Side by Side Diff: chrome/browser/service_process/service_process_control.h

Issue 1308823002: Move Singleton and related structs to namespace base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ToT Created 5 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
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_BROWSER_SERVICE_PROCESS_SERVICE_PROCESS_CONTROL_H_ 5 #ifndef CHROME_BROWSER_SERVICE_PROCESS_SERVICE_PROCESS_CONTROL_H_
6 #define CHROME_BROWSER_SERVICE_PROCESS_SERVICE_PROCESS_CONTROL_H_ 6 #define CHROME_BROWSER_SERVICE_PROCESS_SERVICE_PROCESS_CONTROL_H_
7 7
8 #include <queue> 8 #include <queue>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 uint32 retry_count_; 169 uint32 retry_count_;
170 base::Process process_; 170 base::Process process_;
171 }; 171 };
172 172
173 friend class MockServiceProcessControl; 173 friend class MockServiceProcessControl;
174 friend class CloudPrintProxyPolicyStartupTest; 174 friend class CloudPrintProxyPolicyStartupTest;
175 175
176 ServiceProcessControl(); 176 ServiceProcessControl();
177 ~ServiceProcessControl() override; 177 ~ServiceProcessControl() override;
178 178
179 friend struct DefaultSingletonTraits<ServiceProcessControl>; 179 friend struct base::DefaultSingletonTraits<ServiceProcessControl>;
180 180
181 typedef std::vector<base::Closure> TaskList; 181 typedef std::vector<base::Closure> TaskList;
182 182
183 // Message handlers 183 // Message handlers
184 void OnCloudPrintProxyInfo( 184 void OnCloudPrintProxyInfo(
185 const cloud_print::CloudPrintProxyInfo& proxy_info); 185 const cloud_print::CloudPrintProxyInfo& proxy_info);
186 void OnHistograms(const std::vector<std::string>& pickled_histograms); 186 void OnHistograms(const std::vector<std::string>& pickled_histograms);
187 void OnPrinters(const std::vector<std::string>& printers); 187 void OnPrinters(const std::vector<std::string>& printers);
188 188
189 // Runs callback provided in |GetHistograms()|. 189 // Runs callback provided in |GetHistograms()|.
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 // the service process. 226 // the service process.
227 base::Closure histograms_callback_; 227 base::Closure histograms_callback_;
228 228
229 content::NotificationRegistrar registrar_; 229 content::NotificationRegistrar registrar_;
230 230
231 // Callback that gets invoked if service didn't reply in time. 231 // Callback that gets invoked if service didn't reply in time.
232 base::CancelableClosure histograms_timeout_callback_; 232 base::CancelableClosure histograms_timeout_callback_;
233 }; 233 };
234 234
235 #endif // CHROME_BROWSER_SERVICE_PROCESS_SERVICE_PROCESS_CONTROL_H_ 235 #endif // CHROME_BROWSER_SERVICE_PROCESS_SERVICE_PROCESS_CONTROL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698