| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_CONTEXT_H_ | 5 #ifndef MEDIA_MOJO_SERVICES_MOJO_CDM_SERVICE_CONTEXT_H_ |
| 6 #define MEDIA_MOJO_SERVICES_MOJO_CDM_SERVICE_CONTEXT_H_ | 6 #define MEDIA_MOJO_SERVICES_MOJO_CDM_SERVICE_CONTEXT_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| 11 | 11 |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
| 14 #include "media/base/cdm_context.h" | 14 #include "media/base/cdm_context.h" |
| 15 #include "media/base/media_export.h" |
| 15 | 16 |
| 16 namespace media { | 17 namespace media { |
| 17 | 18 |
| 18 class MojoCdmService; | 19 class MojoCdmService; |
| 19 | 20 |
| 20 // A class that creates, owns and manages all MojoCdmService instances. | 21 // A class that creates, owns and manages all MojoCdmService instances. |
| 21 class MojoCdmServiceContext : public CdmContextProvider { | 22 class MojoCdmServiceContext : public CdmContextProvider { |
| 22 public: | 23 public: |
| 23 MojoCdmServiceContext(); | 24 MojoCdmServiceContext(); |
| 24 ~MojoCdmServiceContext() override; | 25 ~MojoCdmServiceContext() override; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 44 | 45 |
| 45 // NOTE: Weak pointers must be invalidated before all other member variables. | 46 // NOTE: Weak pointers must be invalidated before all other member variables. |
| 46 base::WeakPtrFactory<MojoCdmServiceContext> weak_ptr_factory_; | 47 base::WeakPtrFactory<MojoCdmServiceContext> weak_ptr_factory_; |
| 47 | 48 |
| 48 DISALLOW_COPY_AND_ASSIGN(MojoCdmServiceContext); | 49 DISALLOW_COPY_AND_ASSIGN(MojoCdmServiceContext); |
| 49 }; | 50 }; |
| 50 | 51 |
| 51 } // namespace media | 52 } // namespace media |
| 52 | 53 |
| 53 #endif // MEDIA_MOJO_SERVICES_MOJO_CDM_SERVICE_CONTEXT_H_ | 54 #endif // MEDIA_MOJO_SERVICES_MOJO_CDM_SERVICE_CONTEXT_H_ |
| OLD | NEW |