| 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/cdm_promise.h" | 21 #include "media/base/cdm_promise.h" |
| 22 #include "media/base/cdm_promise_adapter.h" | 22 #include "media/base/cdm_promise_adapter.h" |
| 23 #include "media/base/cdm_session_tracker.h" |
| 23 #include "media/base/channel_layout.h" | 24 #include "media/base/channel_layout.h" |
| 24 #include "media/base/decryptor.h" | 25 #include "media/base/decryptor.h" |
| 25 #include "media/base/media_keys.h" | 26 #include "media/base/media_keys.h" |
| 26 #include "media/base/sample_format.h" | 27 #include "media/base/sample_format.h" |
| 27 #include "ppapi/c/pp_time.h" | 28 #include "ppapi/c/pp_time.h" |
| 28 #include "ppapi/c/private/pp_content_decryptor.h" | 29 #include "ppapi/c/private/pp_content_decryptor.h" |
| 29 #include "ppapi/c/private/ppp_content_decryptor_private.h" | 30 #include "ppapi/c/private/ppp_content_decryptor_private.h" |
| 30 #include "ui/gfx/geometry/size.h" | 31 #include "ui/gfx/geometry/size.h" |
| 31 | 32 |
| 32 namespace media { | 33 namespace media { |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 | 234 |
| 234 std::queue<uint32_t> free_buffers_; | 235 std::queue<uint32_t> free_buffers_; |
| 235 | 236 |
| 236 // Keep track of audio parameters. | 237 // Keep track of audio parameters. |
| 237 int audio_samples_per_second_; | 238 int audio_samples_per_second_; |
| 238 int audio_channel_count_; | 239 int audio_channel_count_; |
| 239 media::ChannelLayout audio_channel_layout_; | 240 media::ChannelLayout audio_channel_layout_; |
| 240 | 241 |
| 241 media::CdmPromiseAdapter cdm_promise_adapter_; | 242 media::CdmPromiseAdapter cdm_promise_adapter_; |
| 242 | 243 |
| 244 media::CdmSessionTracker cdm_session_tracker_; |
| 245 |
| 243 base::WeakPtr<ContentDecryptorDelegate> weak_this_; | 246 base::WeakPtr<ContentDecryptorDelegate> weak_this_; |
| 244 base::WeakPtrFactory<ContentDecryptorDelegate> weak_ptr_factory_; | 247 base::WeakPtrFactory<ContentDecryptorDelegate> weak_ptr_factory_; |
| 245 | 248 |
| 246 DISALLOW_COPY_AND_ASSIGN(ContentDecryptorDelegate); | 249 DISALLOW_COPY_AND_ASSIGN(ContentDecryptorDelegate); |
| 247 }; | 250 }; |
| 248 | 251 |
| 249 } // namespace content | 252 } // namespace content |
| 250 | 253 |
| 251 #endif // CONTENT_RENDERER_PEPPER_CONTENT_DECRYPTOR_DELEGATE_H_ | 254 #endif // CONTENT_RENDERER_PEPPER_CONTENT_DECRYPTOR_DELEGATE_H_ |
| OLD | NEW |