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

Side by Side Diff: media/mojo/services/media_service_factory.h

Issue 2484953002: Eliminate quit closure argument to embedded service factories (Closed)
Patch Set: . Created 4 years, 1 month 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 | « media/mojo/services/media_service.cc ('k') | media/mojo/services/media_service_factory.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 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 MEDIA_MOJO_SERVICES_MEDIA_SERVICE_FACTORY_H_ 5 #ifndef MEDIA_MOJO_SERVICES_MEDIA_SERVICE_FACTORY_H_
6 #define MEDIA_MOJO_SERVICES_MEDIA_SERVICE_FACTORY_H_ 6 #define MEDIA_MOJO_SERVICES_MEDIA_SERVICE_FACTORY_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
11 #include "media/mojo/services/media_mojo_export.h" 11 #include "media/mojo/services/media_mojo_export.h"
12 #include "services/service_manager/public/cpp/service.h" 12 #include "services/service_manager/public/cpp/service.h"
13 13
14 namespace media { 14 namespace media {
15 15
16 // Creates a MediaService instance using the default MojoMediaClient on each 16 // Creates a MediaService instance using the default MojoMediaClient on each
17 // platform. Uses the TestMojoMediaClient if |enable_test_mojo_media_client| is 17 // platform. Uses the TestMojoMediaClient if |enable_test_mojo_media_client| is
18 // true. 18 // true.
19 std::unique_ptr<service_manager::Service> MEDIA_MOJO_EXPORT 19 std::unique_ptr<service_manager::Service> MEDIA_MOJO_EXPORT
20 CreateMediaService(const base::Closure& quit_closure); 20 CreateMediaService();
21 21
22 // Creates a MediaService instance using the TestMojoMediaClient. 22 // Creates a MediaService instance using the TestMojoMediaClient.
23 std::unique_ptr<service_manager::Service> MEDIA_MOJO_EXPORT 23 std::unique_ptr<service_manager::Service> MEDIA_MOJO_EXPORT
24 CreateMediaServiceForTesting(const base::Closure& quit_closure); 24 CreateMediaServiceForTesting();
25 25
26 } // namespace media 26 } // namespace media
27 27
28 #endif // MEDIA_MOJO_SERVICES_MEDIA_SERVICE_FACTORY_H_ 28 #endif // MEDIA_MOJO_SERVICES_MEDIA_SERVICE_FACTORY_H_
OLDNEW
« no previous file with comments | « media/mojo/services/media_service.cc ('k') | media/mojo/services/media_service_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698