OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_RENDERER_PEPPER_CONTENT_DECRYPTOR_DELEGATE_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_CONTENT_DECRYPTOR_DELEGATE_H_ |
6 #define CONTENT_RENDERER_PEPPER_CONTENT_DECRYPTOR_DELEGATE_H_ | 6 #define CONTENT_RENDERER_PEPPER_CONTENT_DECRYPTOR_DELEGATE_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
11 #include <map> | 11 #include <map> |
12 #include <queue> | 12 #include <queue> |
13 #include <string> | 13 #include <string> |
14 #include <vector> | 14 #include <vector> |
15 | 15 |
16 #include "base/callback_helpers.h" | 16 #include "base/callback_helpers.h" |
17 #include "base/compiler_specific.h" | 17 #include "base/compiler_specific.h" |
18 #include "base/macros.h" | 18 #include "base/macros.h" |
19 #include "base/memory/ref_counted.h" | 19 #include "base/memory/ref_counted.h" |
20 #include "base/memory/weak_ptr.h" | 20 #include "base/memory/weak_ptr.h" |
| 21 #include "media/base/audio_buffer.h" |
21 #include "media/base/cdm_promise.h" | 22 #include "media/base/cdm_promise.h" |
22 #include "media/base/cdm_promise_adapter.h" | 23 #include "media/base/cdm_promise_adapter.h" |
23 #include "media/base/cdm_session_tracker.h" | 24 #include "media/base/cdm_session_tracker.h" |
24 #include "media/base/channel_layout.h" | 25 #include "media/base/channel_layout.h" |
25 #include "media/base/content_decryption_module.h" | 26 #include "media/base/content_decryption_module.h" |
26 #include "media/base/decryptor.h" | 27 #include "media/base/decryptor.h" |
27 #include "media/base/sample_format.h" | 28 #include "media/base/sample_format.h" |
28 #include "ppapi/c/pp_time.h" | 29 #include "ppapi/c/pp_time.h" |
29 #include "ppapi/c/private/pp_content_decryptor.h" | 30 #include "ppapi/c/private/pp_content_decryptor.h" |
30 #include "ppapi/c/private/ppp_content_decryptor_private.h" | 31 #include "ppapi/c/private/ppp_content_decryptor_private.h" |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 | 237 |
237 // Keep track of audio parameters. | 238 // Keep track of audio parameters. |
238 int audio_samples_per_second_; | 239 int audio_samples_per_second_; |
239 int audio_channel_count_; | 240 int audio_channel_count_; |
240 media::ChannelLayout audio_channel_layout_; | 241 media::ChannelLayout audio_channel_layout_; |
241 | 242 |
242 media::CdmPromiseAdapter cdm_promise_adapter_; | 243 media::CdmPromiseAdapter cdm_promise_adapter_; |
243 | 244 |
244 media::CdmSessionTracker cdm_session_tracker_; | 245 media::CdmSessionTracker cdm_session_tracker_; |
245 | 246 |
| 247 scoped_refptr<media::AudioBufferMemoryPool> pool_; |
| 248 |
246 base::WeakPtr<ContentDecryptorDelegate> weak_this_; | 249 base::WeakPtr<ContentDecryptorDelegate> weak_this_; |
247 base::WeakPtrFactory<ContentDecryptorDelegate> weak_ptr_factory_; | 250 base::WeakPtrFactory<ContentDecryptorDelegate> weak_ptr_factory_; |
248 | 251 |
249 DISALLOW_COPY_AND_ASSIGN(ContentDecryptorDelegate); | 252 DISALLOW_COPY_AND_ASSIGN(ContentDecryptorDelegate); |
250 }; | 253 }; |
251 | 254 |
252 } // namespace content | 255 } // namespace content |
253 | 256 |
254 #endif // CONTENT_RENDERER_PEPPER_CONTENT_DECRYPTOR_DELEGATE_H_ | 257 #endif // CONTENT_RENDERER_PEPPER_CONTENT_DECRYPTOR_DELEGATE_H_ |
OLD | NEW |