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 #include "media/mojo/services/mojo_cdm_service.h" | 5 #include "media/mojo/services/mojo_cdm_service.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/lazy_instance.h" | 11 #include "base/lazy_instance.h" |
| 12 #include "base/macros.h" |
12 #include "base/synchronization/lock.h" | 13 #include "base/synchronization/lock.h" |
13 #include "media/base/cdm_config.h" | 14 #include "media/base/cdm_config.h" |
14 #include "media/base/cdm_context.h" | 15 #include "media/base/cdm_context.h" |
15 #include "media/base/cdm_factory.h" | 16 #include "media/base/cdm_factory.h" |
16 #include "media/base/cdm_key_information.h" | 17 #include "media/base/cdm_key_information.h" |
17 #include "media/base/key_systems.h" | 18 #include "media/base/key_systems.h" |
18 #include "media/mojo/services/media_type_converters.h" | 19 #include "media/mojo/services/media_type_converters.h" |
19 #include "media/mojo/services/mojo_cdm_service_context.h" | 20 #include "media/mojo/services/mojo_cdm_service_context.h" |
20 #include "mojo/common/common_type_converters.h" | 21 #include "mojo/common/common_type_converters.h" |
21 #include "mojo/common/url_type_converters.h" | 22 #include "mojo/common/url_type_converters.h" |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 | 275 |
275 void MojoCdmService::OnDecryptorConnectionError() { | 276 void MojoCdmService::OnDecryptorConnectionError() { |
276 DVLOG(2) << __FUNCTION__; | 277 DVLOG(2) << __FUNCTION__; |
277 | 278 |
278 // MojoDecryptorService has lost connectivity to it's client, so it can be | 279 // MojoDecryptorService has lost connectivity to it's client, so it can be |
279 // freed. | 280 // freed. |
280 decryptor_.reset(); | 281 decryptor_.reset(); |
281 } | 282 } |
282 | 283 |
283 } // namespace media | 284 } // namespace media |
OLD | NEW |