OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "webkit/renderer/media/crypto/ppapi_decryptor.h" | 5 #include "webkit/renderer/media/crypto/ppapi_decryptor.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/callback_helpers.h" | 10 #include "base/callback_helpers.h" |
11 #include "base/location.h" | 11 #include "base/location.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/message_loop.h" | 13 #include "base/message_loop.h" |
14 #include "base/message_loop_proxy.h" | 14 #include "base/message_loop/message_loop_proxy.h" |
15 #include "media/base/audio_decoder_config.h" | 15 #include "media/base/audio_decoder_config.h" |
16 #include "media/base/data_buffer.h" | 16 #include "media/base/data_buffer.h" |
17 #include "media/base/decoder_buffer.h" | 17 #include "media/base/decoder_buffer.h" |
18 #include "media/base/video_decoder_config.h" | 18 #include "media/base/video_decoder_config.h" |
19 #include "media/base/video_frame.h" | 19 #include "media/base/video_frame.h" |
20 #include "webkit/plugins/ppapi/content_decryptor_delegate.h" | 20 #include "webkit/plugins/ppapi/content_decryptor_delegate.h" |
21 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" | 21 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" |
22 #include "webkit/renderer/media/crypto/key_systems.h" | 22 #include "webkit/renderer/media/crypto/key_systems.h" |
23 | 23 |
24 namespace webkit_media { | 24 namespace webkit_media { |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 const std::string& session_id, | 286 const std::string& session_id, |
287 const std::string& type, | 287 const std::string& type, |
288 scoped_ptr<uint8[]> init_data, | 288 scoped_ptr<uint8[]> init_data, |
289 int init_data_size) { | 289 int init_data_size) { |
290 DCHECK(render_loop_proxy_->BelongsToCurrentThread()); | 290 DCHECK(render_loop_proxy_->BelongsToCurrentThread()); |
291 need_key_cb_.Run(key_system, session_id, type, | 291 need_key_cb_.Run(key_system, session_id, type, |
292 init_data.Pass(), init_data_size); | 292 init_data.Pass(), init_data_size); |
293 } | 293 } |
294 | 294 |
295 } // namespace webkit_media | 295 } // namespace webkit_media |
OLD | NEW |