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