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

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

Issue 1901583005: Revert of Pass task runners to AudioManager constructor. (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 | « media/cast/test/receiver.cc ('k') | media/mojo/services/mojo_media_application.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_MOJO_MEDIA_APPLICATION_H_ 5 #ifndef MEDIA_MOJO_SERVICES_MOJO_MEDIA_APPLICATION_H_
6 #define MEDIA_MOJO_SERVICES_MOJO_MEDIA_APPLICATION_H_ 6 #define MEDIA_MOJO_SERVICES_MOJO_MEDIA_APPLICATION_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 18 matching lines...) Expand all
29 explicit MojoMediaApplication( 29 explicit MojoMediaApplication(
30 std::unique_ptr<MojoMediaClient> mojo_media_client); 30 std::unique_ptr<MojoMediaClient> mojo_media_client);
31 ~MojoMediaApplication() final; 31 ~MojoMediaApplication() final;
32 32
33 private: 33 private:
34 // shell::ShellClient implementation. 34 // shell::ShellClient implementation.
35 void Initialize(shell::Connector* connector, 35 void Initialize(shell::Connector* connector,
36 const shell::Identity& identity, 36 const shell::Identity& identity,
37 uint32_t id) final; 37 uint32_t id) final;
38 bool AcceptConnection(shell::Connection* connection) final; 38 bool AcceptConnection(shell::Connection* connection) final;
39 bool ShellConnectionLost() final;
40 39
41 // shell::InterfaceFactory<interfaces::ServiceFactory> implementation. 40 // shell::InterfaceFactory<interfaces::ServiceFactory> implementation.
42 void Create(shell::Connection* connection, 41 void Create(shell::Connection* connection,
43 mojo::InterfaceRequest<interfaces::ServiceFactory> request) final; 42 mojo::InterfaceRequest<interfaces::ServiceFactory> request) final;
44 43
45 // Note: Since each instance runs on a different thread, do not share a common 44 // Note: Since each instance runs on a different thread, do not share a common
46 // MojoMediaClient with other instances to avoid threading issues. Hence using 45 // MojoMediaClient with other instances to avoid threading issues. Hence using
47 // a unique_ptr here. 46 // a unique_ptr here.
48 std::unique_ptr<MojoMediaClient> mojo_media_client_; 47 std::unique_ptr<MojoMediaClient> mojo_media_client_;
49 48
50 shell::Connector* connector_; 49 shell::Connector* connector_;
51 scoped_refptr<MediaLog> media_log_; 50 scoped_refptr<MediaLog> media_log_;
52 shell::MessageLoopRefFactory ref_factory_; 51 shell::MessageLoopRefFactory ref_factory_;
53 }; 52 };
54 53
55 } // namespace media 54 } // namespace media
56 55
57 #endif // MEDIA_MOJO_SERVICES_MOJO_MEDIA_APPLICATION_H_ 56 #endif // MEDIA_MOJO_SERVICES_MOJO_MEDIA_APPLICATION_H_
OLDNEW
« no previous file with comments | « media/cast/test/receiver.cc ('k') | media/mojo/services/mojo_media_application.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698