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

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

Issue 1968833002: media: Make media mojo services a component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix gn style Created 4 years, 7 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 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_CLIENT_H_ 5 #ifndef MEDIA_MOJO_SERVICES_MOJO_MEDIA_CLIENT_H_
6 #define MEDIA_MOJO_SERVICES_MOJO_MEDIA_CLIENT_H_ 6 #define MEDIA_MOJO_SERVICES_MOJO_MEDIA_CLIENT_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "media/base/audio_decoder.h" 10 #include "media/base/audio_decoder.h"
11 #include "media/base/audio_renderer_sink.h" 11 #include "media/base/audio_renderer_sink.h"
12 #include "media/base/cdm_factory.h" 12 #include "media/base/cdm_factory.h"
13 #include "media/base/media_log.h" 13 #include "media/base/media_log.h"
14 #include "media/base/renderer_factory.h" 14 #include "media/base/renderer_factory.h"
15 #include "media/base/video_renderer_sink.h" 15 #include "media/base/video_renderer_sink.h"
16 #include "media/mojo/services/media_mojo_export.h"
16 17
17 namespace base { 18 namespace base {
18 class SingleThreadTaskRunner; 19 class SingleThreadTaskRunner;
19 } 20 }
20 21
21 namespace shell { 22 namespace shell {
22 namespace mojom { 23 namespace mojom {
23 class InterfaceProvider; 24 class InterfaceProvider;
24 } 25 }
25 } 26 }
26 27
27 namespace media { 28 namespace media {
28 29
29 class MojoMediaClient { 30 class MEDIA_MOJO_EXPORT MojoMediaClient {
30 public: 31 public:
31 virtual ~MojoMediaClient(); 32 virtual ~MojoMediaClient();
32 33
33 // Called exactly once before any other method. 34 // Called exactly once before any other method.
34 virtual void Initialize(); 35 virtual void Initialize();
35 // Called before the host application is scheduled to quit. 36 // Called before the host application is scheduled to quit.
36 // The application message loop is still valid at this point, so all clean 37 // The application message loop is still valid at this point, so all clean
37 // up tasks requiring the message loop must be completed before returning. 38 // up tasks requiring the message loop must be completed before returning.
38 virtual void WillQuit(); 39 virtual void WillQuit();
39 40
(...skipping 19 matching lines...) Expand all
59 virtual std::unique_ptr<CdmFactory> CreateCdmFactory( 60 virtual std::unique_ptr<CdmFactory> CreateCdmFactory(
60 shell::mojom::InterfaceProvider* interface_provider); 61 shell::mojom::InterfaceProvider* interface_provider);
61 62
62 protected: 63 protected:
63 MojoMediaClient(); 64 MojoMediaClient();
64 }; 65 };
65 66
66 } // namespace media 67 } // namespace media
67 68
68 #endif // MEDIA_MOJO_SERVICES_MOJO_MEDIA_CLIENT_H_ 69 #endif // MEDIA_MOJO_SERVICES_MOJO_MEDIA_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698