| OLD | NEW |
| 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> |
| 11 | 11 |
| 12 #include "base/callback.h" | 12 #include "base/callback.h" |
| 13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 14 #include "media/mojo/interfaces/service_factory.mojom.h" | 14 #include "media/mojo/interfaces/service_factory.mojom.h" |
| 15 #include "media/mojo/services/media_mojo_export.h" |
| 15 #include "services/shell/public/cpp/interface_factory.h" | 16 #include "services/shell/public/cpp/interface_factory.h" |
| 16 #include "services/shell/public/cpp/shell_client.h" | 17 #include "services/shell/public/cpp/shell_client.h" |
| 17 #include "services/shell/public/cpp/shell_connection_ref.h" | 18 #include "services/shell/public/cpp/shell_connection_ref.h" |
| 18 #include "url/gurl.h" | 19 #include "url/gurl.h" |
| 19 | 20 |
| 20 namespace media { | 21 namespace media { |
| 21 | 22 |
| 22 class MediaLog; | 23 class MediaLog; |
| 23 class MojoMediaClient; | 24 class MojoMediaClient; |
| 24 | 25 |
| 25 class MojoMediaApplication | 26 class MEDIA_MOJO_EXPORT MojoMediaApplication |
| 26 : public shell::ShellClient, | 27 : public shell::ShellClient, |
| 27 public shell::InterfaceFactory<interfaces::ServiceFactory> { | 28 public shell::InterfaceFactory<interfaces::ServiceFactory> { |
| 28 public: | 29 public: |
| 29 MojoMediaApplication(std::unique_ptr<MojoMediaClient> mojo_media_client, | 30 MojoMediaApplication(std::unique_ptr<MojoMediaClient> mojo_media_client, |
| 30 const base::Closure& quit_closure); | 31 const base::Closure& quit_closure); |
| 31 ~MojoMediaApplication() final; | 32 ~MojoMediaApplication() final; |
| 32 | 33 |
| 33 private: | 34 private: |
| 34 // shell::ShellClient implementation. | 35 // shell::ShellClient implementation. |
| 35 void Initialize(shell::Connector* connector, | 36 void Initialize(shell::Connector* connector, |
| (...skipping 12 matching lines...) Expand all Loading... |
| 48 std::unique_ptr<MojoMediaClient> mojo_media_client_; | 49 std::unique_ptr<MojoMediaClient> mojo_media_client_; |
| 49 | 50 |
| 50 shell::Connector* connector_; | 51 shell::Connector* connector_; |
| 51 scoped_refptr<MediaLog> media_log_; | 52 scoped_refptr<MediaLog> media_log_; |
| 52 shell::ShellConnectionRefFactory ref_factory_; | 53 shell::ShellConnectionRefFactory ref_factory_; |
| 53 }; | 54 }; |
| 54 | 55 |
| 55 } // namespace media | 56 } // namespace media |
| 56 | 57 |
| 57 #endif // MEDIA_MOJO_SERVICES_MOJO_MEDIA_APPLICATION_H_ | 58 #endif // MEDIA_MOJO_SERVICES_MOJO_MEDIA_APPLICATION_H_ |
| OLD | NEW |