| 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_CDM_SERVICE_H_ | 5 #ifndef MEDIA_MOJO_SERVICES_MOJO_CDM_SERVICE_H_ |
| 6 #define MEDIA_MOJO_SERVICES_MOJO_CDM_SERVICE_H_ | 6 #define MEDIA_MOJO_SERVICES_MOJO_CDM_SERVICE_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
| 12 #include "media/base/media_keys.h" | 12 #include "media/base/media_keys.h" |
| 13 #include "media/mojo/interfaces/content_decryption_module.mojom.h" | 13 #include "media/mojo/interfaces/content_decryption_module.mojom.h" |
| 14 #include "mojo/public/cpp/bindings/interface_impl.h" | 14 #include "third_party/mojo/src/mojo/public/cpp/bindings/interface_impl.h" |
| 15 | 15 |
| 16 namespace media { | 16 namespace media { |
| 17 | 17 |
| 18 // A mojo::ContentDecryptionModule implementation backed by a media::MediaKeys. | 18 // A mojo::ContentDecryptionModule implementation backed by a media::MediaKeys. |
| 19 class MojoCdmService | 19 class MojoCdmService |
| 20 : public mojo::InterfaceImpl<mojo::ContentDecryptionModule> { | 20 : public mojo::InterfaceImpl<mojo::ContentDecryptionModule> { |
| 21 public: | 21 public: |
| 22 MojoCdmService(const mojo::String& key_system); | 22 MojoCdmService(const mojo::String& key_system); |
| 23 ~MojoCdmService() final; | 23 ~MojoCdmService() final; |
| 24 | 24 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 | 70 |
| 71 base::WeakPtrFactory<MojoCdmService> weak_factory_; | 71 base::WeakPtrFactory<MojoCdmService> weak_factory_; |
| 72 base::WeakPtr<MojoCdmService> weak_this_; | 72 base::WeakPtr<MojoCdmService> weak_this_; |
| 73 | 73 |
| 74 DISALLOW_COPY_AND_ASSIGN(MojoCdmService); | 74 DISALLOW_COPY_AND_ASSIGN(MojoCdmService); |
| 75 }; | 75 }; |
| 76 | 76 |
| 77 } // namespace media | 77 } // namespace media |
| 78 | 78 |
| 79 #endif // MEDIA_MOJO_SERVICES_MOJO_CDM_SERVICE_H_ | 79 #endif // MEDIA_MOJO_SERVICES_MOJO_CDM_SERVICE_H_ |
| OLD | NEW |