| 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 #include "webkit/plugins/ppapi/content_decryptor_delegate.h" | 5 #include "content/renderer/pepper/content_decryptor_delegate.h" |
| 6 | 6 |
| 7 #include "base/callback_helpers.h" | 7 #include "base/callback_helpers.h" |
| 8 #include "base/debug/trace_event.h" | 8 #include "base/debug/trace_event.h" |
| 9 #include "base/message_loop/message_loop_proxy.h" | 9 #include "base/message_loop/message_loop_proxy.h" |
| 10 #include "base/safe_numerics.h" | 10 #include "base/safe_numerics.h" |
| 11 #include "content/renderer/pepper/ppb_buffer_impl.h" |
| 11 #include "media/base/audio_buffer.h" | 12 #include "media/base/audio_buffer.h" |
| 12 #include "media/base/audio_decoder_config.h" | 13 #include "media/base/audio_decoder_config.h" |
| 13 #include "media/base/bind_to_loop.h" | 14 #include "media/base/bind_to_loop.h" |
| 14 #include "media/base/channel_layout.h" | 15 #include "media/base/channel_layout.h" |
| 15 #include "media/base/data_buffer.h" | 16 #include "media/base/data_buffer.h" |
| 16 #include "media/base/decoder_buffer.h" | 17 #include "media/base/decoder_buffer.h" |
| 17 #include "media/base/decrypt_config.h" | 18 #include "media/base/decrypt_config.h" |
| 18 #include "media/base/video_decoder_config.h" | 19 #include "media/base/video_decoder_config.h" |
| 19 #include "media/base/video_frame.h" | 20 #include "media/base/video_frame.h" |
| 20 #include "media/base/video_util.h" | 21 #include "media/base/video_util.h" |
| 21 #include "ppapi/shared_impl/scoped_pp_resource.h" | 22 #include "ppapi/shared_impl/scoped_pp_resource.h" |
| 22 #include "ppapi/shared_impl/var.h" | 23 #include "ppapi/shared_impl/var.h" |
| 23 #include "ppapi/shared_impl/var_tracker.h" | 24 #include "ppapi/shared_impl/var_tracker.h" |
| 24 #include "ppapi/thunk/enter.h" | 25 #include "ppapi/thunk/enter.h" |
| 25 #include "ppapi/thunk/ppb_buffer_api.h" | 26 #include "ppapi/thunk/ppb_buffer_api.h" |
| 26 #include "ui/gfx/rect.h" | 27 #include "ui/gfx/rect.h" |
| 27 #include "webkit/plugins/ppapi/ppb_buffer_impl.h" | |
| 28 | 28 |
| 29 using ppapi::ArrayBufferVar; | 29 using ppapi::ArrayBufferVar; |
| 30 using ppapi::PpapiGlobals; | 30 using ppapi::PpapiGlobals; |
| 31 using ppapi::ScopedPPResource; | 31 using ppapi::ScopedPPResource; |
| 32 using ppapi::StringVar; | 32 using ppapi::StringVar; |
| 33 using ppapi::thunk::EnterResourceNoLock; | 33 using ppapi::thunk::EnterResourceNoLock; |
| 34 using ppapi::thunk::PPB_Buffer_API; | 34 using ppapi::thunk::PPB_Buffer_API; |
| 35 | 35 |
| 36 namespace webkit { | 36 namespace webkit { |
| 37 namespace ppapi { | 37 namespace ppapi { |
| (...skipping 1001 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1039 | 1039 |
| 1040 cur += frame_size; | 1040 cur += frame_size; |
| 1041 bytes_left -= frame_size; | 1041 bytes_left -= frame_size; |
| 1042 } while (bytes_left > 0); | 1042 } while (bytes_left > 0); |
| 1043 | 1043 |
| 1044 return true; | 1044 return true; |
| 1045 } | 1045 } |
| 1046 | 1046 |
| 1047 } // namespace ppapi | 1047 } // namespace ppapi |
| 1048 } // namespace webkit | 1048 } // namespace webkit |
| OLD | NEW |