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_BASE_CDM_PROMISE_ADAPTER_H_ | 5 #ifndef MEDIA_BASE_CDM_PROMISE_ADAPTER_H_ |
6 #define MEDIA_BASE_CDM_PROMISE_ADAPTER_H_ | 6 #define MEDIA_BASE_CDM_PROMISE_ADAPTER_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include "base/containers/scoped_ptr_hash_map.h" | 10 #include "base/containers/scoped_ptr_hash_map.h" |
9 #include "base/macros.h" | 11 #include "base/macros.h" |
10 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
11 #include "base/threading/thread_checker.h" | 13 #include "base/threading/thread_checker.h" |
12 #include "media/base/cdm_promise.h" | 14 #include "media/base/cdm_promise.h" |
13 #include "media/base/media_export.h" | 15 #include "media/base/media_export.h" |
14 | 16 |
15 namespace media { | 17 namespace media { |
16 | 18 |
17 // Helps convert CdmPromises to an integer identifier and vice versa. The | 19 // Helps convert CdmPromises to an integer identifier and vice versa. The |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 uint32_t next_promise_id_; | 53 uint32_t next_promise_id_; |
52 PromiseMap promises_; | 54 PromiseMap promises_; |
53 | 55 |
54 base::ThreadChecker thread_checker_; | 56 base::ThreadChecker thread_checker_; |
55 DISALLOW_COPY_AND_ASSIGN(CdmPromiseAdapter); | 57 DISALLOW_COPY_AND_ASSIGN(CdmPromiseAdapter); |
56 }; | 58 }; |
57 | 59 |
58 } // namespace media | 60 } // namespace media |
59 | 61 |
60 #endif // MEDIA_BASE_CDM_PROMISE_ADAPTER_H_ | 62 #endif // MEDIA_BASE_CDM_PROMISE_ADAPTER_H_ |
OLD | NEW |