| 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/media/crypto/proxy_decryptor.h" | 5 #include "webkit/media/crypto/proxy_decryptor.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/callback_helpers.h" | 8 #include "base/callback_helpers.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "media/crypto/aes_decryptor.h" | 10 #include "media/crypto/aes_decryptor.h" |
| 11 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h" | 11 #include "third_party/WebKit/public/platform/WebString.h" |
| 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
| 13 #include "webkit/media/crypto/key_systems.h" | 13 #include "webkit/media/crypto/key_systems.h" |
| 14 #include "webkit/media/crypto/ppapi_decryptor.h" | 14 #include "webkit/media/crypto/ppapi_decryptor.h" |
| 15 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" | 15 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" |
| 16 #include "webkit/plugins/ppapi/ppapi_webplugin_impl.h" | 16 #include "webkit/plugins/ppapi/ppapi_webplugin_impl.h" |
| 17 // TODO(xhwang): Put this include after "ppapi_plugin_instance.h" for definition | 17 // TODO(xhwang): Put this include after "ppapi_plugin_instance.h" for definition |
| 18 // of "uint8_t", which WebMediaPlayer.h uses without including a header for it. | 18 // of "uint8_t", which WebMediaPlayer.h uses without including a header for it. |
| 19 // See: https://bugs.webkit.org/show_bug.cgi?id=92031 | 19 // See: https://bugs.webkit.org/show_bug.cgi?id=92031 |
| 20 // Fix include order here when the bug is fixed. | 20 // Fix include order here when the bug is fixed. |
| 21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayerClient.
h" | 21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayerClient.
h" |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 void ProxyDecryptor::NeedKey(const std::string& key_system, | 216 void ProxyDecryptor::NeedKey(const std::string& key_system, |
| 217 const std::string& session_id, | 217 const std::string& session_id, |
| 218 const std::string& type, | 218 const std::string& type, |
| 219 scoped_ptr<uint8[]> init_data, | 219 scoped_ptr<uint8[]> init_data, |
| 220 int init_data_size) { | 220 int init_data_size) { |
| 221 need_key_cb_.Run(key_system, session_id, type, | 221 need_key_cb_.Run(key_system, session_id, type, |
| 222 init_data.Pass(), init_data_size); | 222 init_data.Pass(), init_data_size); |
| 223 } | 223 } |
| 224 | 224 |
| 225 } // namespace webkit_media | 225 } // namespace webkit_media |
| OLD | NEW |