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

Side by Side Diff: services/service_manager/public/cpp/standalone_service/standalone_service.h

Issue 2643853005: chromeos: Initial support for crash reporting for chrome --mash (Closed)
Patch Set: sadrul comments Created 3 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 SERVICES_SERVICE_MANAGER_PUBLIC_CPP_STANDALONE_SERVICE_STANDALONE_SERVIC E_H_
6 #define SERVICES_SERVICE_MANAGER_PUBLIC_CPP_STANDALONE_SERVICE_STANDALONE_SERVIC E_H_
7
5 #include "base/callback.h" 8 #include "base/callback.h"
6 #include "services/service_manager/public/interfaces/service.mojom.h" 9 #include "services/service_manager/public/interfaces/service.mojom.h"
7 10
8 namespace service_manager { 11 namespace service_manager {
9 12
10 using StandaloneServiceCallback = base::Callback<void(mojom::ServiceRequest)>; 13 using StandaloneServiceCallback = base::Callback<void(mojom::ServiceRequest)>;
11 14
12 // Runs a standalone service in the current process. This takes care of setting 15 // Runs a standalone service in the current process. This takes care of setting
13 // up a boilerplate environment, including initializing //base objects, Mojo 16 // up a boilerplate environment, including initializing //base objects, Mojo
14 // IPC, running a MessageLoop, and establishing a connection to the Service 17 // IPC, running a MessageLoop, and establishing a connection to the Service
15 // Manager via canonical command-line arguments. 18 // Manager via canonical command-line arguments. Starts the sandbox on Linux.
16 // 19 //
17 // Once a Service request is obtained, |callback| is invoked with it. This call 20 // Once a Service request is obtained, |callback| is invoked with it. This call
18 // blocks until |callback| returns. 21 // blocks until |callback| returns.
19 // 22 //
20 // NOTE: A typical service should also link against the main() defined in 23 // NOTE: A typical service should also link against the main() defined in
21 // main.cc (next to this header) and thus have no need to call this function 24 // main.cc (next to this header) and thus have no need to call this function
22 // directly. 25 // directly.
23 void RunStandaloneService(const StandaloneServiceCallback& callback); 26 void RunStandaloneService(const StandaloneServiceCallback& callback);
24 27
25 } // namespace service_manager 28 } // namespace service_manager
29
30 #endif // SERVICES_SERVICE_MANAGER_PUBLIC_CPP_STANDALONE_SERVICE_STANDALONE_SER VICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698