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" | |
16 | 15 |
17 namespace media { | 16 namespace media { |
18 | 17 |
19 class MojoCdmService; | 18 class MojoCdmService; |
20 | 19 |
21 // A class that creates, owns and manages all MojoCdmService instances. | 20 // A class that creates, owns and manages all MojoCdmService instances. |
22 class MojoCdmServiceContext : public CdmContextProvider { | 21 class MojoCdmServiceContext : public CdmContextProvider { |
23 public: | 22 public: |
24 MojoCdmServiceContext(); | 23 MojoCdmServiceContext(); |
25 ~MojoCdmServiceContext() override; | 24 ~MojoCdmServiceContext() override; |
(...skipping 19 matching lines...) Expand all Loading... |
45 | 44 |
46 // NOTE: Weak pointers must be invalidated before all other member variables. | 45 // NOTE: Weak pointers must be invalidated before all other member variables. |
47 base::WeakPtrFactory<MojoCdmServiceContext> weak_ptr_factory_; | 46 base::WeakPtrFactory<MojoCdmServiceContext> weak_ptr_factory_; |
48 | 47 |
49 DISALLOW_COPY_AND_ASSIGN(MojoCdmServiceContext); | 48 DISALLOW_COPY_AND_ASSIGN(MojoCdmServiceContext); |
50 }; | 49 }; |
51 | 50 |
52 } // namespace media | 51 } // namespace media |
53 | 52 |
54 #endif // MEDIA_MOJO_SERVICES_MOJO_CDM_SERVICE_CONTEXT_H_ | 53 #endif // MEDIA_MOJO_SERVICES_MOJO_CDM_SERVICE_CONTEXT_H_ |
OLD | NEW |