| 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_H_ | 5 #ifndef MEDIA_MOJO_SERVICES_MOJO_CDM_H_ |
| 6 #define MEDIA_MOJO_SERVICES_MOJO_CDM_H_ | 6 #define MEDIA_MOJO_SERVICES_MOJO_CDM_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
| 12 #include "media/base/cdm_context.h" | 12 #include "media/base/cdm_context.h" |
| 13 #include "media/base/cdm_initialized_promise.h" | 13 #include "media/base/cdm_initialized_promise.h" |
| 14 #include "media/base/media_keys.h" | 14 #include "media/base/media_keys.h" |
| 15 #include "media/mojo/interfaces/content_decryption_module.mojom.h" | 15 #include "media/mojo/interfaces/content_decryption_module.mojom.h" |
| 16 #include "media/mojo/services/mojo_type_trait.h" | 16 #include "media/mojo/services/mojo_type_trait.h" |
| 17 #include "third_party/mojo/src/mojo/public/cpp/bindings/binding.h" |
| 17 | 18 |
| 18 namespace mojo { | 19 namespace mojo { |
| 19 class ServiceProvider; | 20 class ServiceProvider; |
| 20 } | 21 } |
| 21 | 22 |
| 22 namespace media { | 23 namespace media { |
| 23 | 24 |
| 24 // A MediaKeys that proxies to a interfaces::ContentDecryptionModule. That | 25 // A MediaKeys that proxies to a interfaces::ContentDecryptionModule. That |
| 25 // interfaces::ContentDecryptionModule proxies back to the MojoCdm via the | 26 // interfaces::ContentDecryptionModule proxies back to the MojoCdm via the |
| 26 // interfaces::ContentDecryptionModuleClient interface. | 27 // interfaces::ContentDecryptionModuleClient interface. |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 SessionExpirationUpdateCB session_expiration_update_cb_; | 125 SessionExpirationUpdateCB session_expiration_update_cb_; |
| 125 | 126 |
| 126 base::WeakPtrFactory<MojoCdm> weak_factory_; | 127 base::WeakPtrFactory<MojoCdm> weak_factory_; |
| 127 | 128 |
| 128 DISALLOW_COPY_AND_ASSIGN(MojoCdm); | 129 DISALLOW_COPY_AND_ASSIGN(MojoCdm); |
| 129 }; | 130 }; |
| 130 | 131 |
| 131 } // namespace media | 132 } // namespace media |
| 132 | 133 |
| 133 #endif // MEDIA_MOJO_SERVICES_MOJO_CDM_H_ | 134 #endif // MEDIA_MOJO_SERVICES_MOJO_CDM_H_ |
| OLD | NEW |