| 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 <cstring> | 5 #include <cstring> |
| 6 #include <map> | 6 #include <map> |
| 7 #include <string> | 7 #include <string> |
| 8 #include <utility> | 8 #include <utility> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "ppapi/c/pp_errors.h" | 13 #include "ppapi/c/pp_errors.h" |
| 14 #include "ppapi/c/pp_stdint.h" | 14 #include "ppapi/c/pp_stdint.h" |
| 15 #include "ppapi/c/private/pp_content_decryptor.h" | 15 #include "ppapi/c/private/pp_content_decryptor.h" |
| 16 #include "ppapi/cpp/completion_callback.h" | 16 #include "ppapi/cpp/completion_callback.h" |
| 17 #include "ppapi/cpp/core.h" | 17 #include "ppapi/cpp/core.h" |
| 18 #include "ppapi/cpp/instance.h" | 18 #include "ppapi/cpp/instance.h" |
| 19 #include "ppapi/cpp/logging.h" | 19 #include "ppapi/cpp/logging.h" |
| 20 #include "ppapi/cpp/module.h" | 20 #include "ppapi/cpp/module.h" |
| 21 #include "ppapi/cpp/pass_ref.h" | 21 #include "ppapi/cpp/pass_ref.h" |
| 22 #include "ppapi/cpp/resource.h" | 22 #include "ppapi/cpp/resource.h" |
| 23 #include "ppapi/cpp/var.h" | 23 #include "ppapi/cpp/var.h" |
| 24 #include "ppapi/cpp/var_array_buffer.h" | 24 #include "ppapi/cpp/var_array_buffer.h" |
| 25 #include "ppapi/cpp/dev/buffer_dev.h" | 25 #include "ppapi/cpp/dev/buffer_dev.h" |
| 26 #include "ppapi/cpp/private/content_decryptor_private.h" | 26 #include "ppapi/cpp/private/content_decryptor_private.h" |
| 27 #include "ppapi/utility/completion_callback_factory.h" | 27 #include "ppapi/utility/completion_callback_factory.h" |
| 28 #include "webkit/media/crypto/ppapi/content_decryption_module.h" | 28 #include "webkit/media/crypto/ppapi/cdm/content_decryption_module.h" |
| 29 #include "webkit/media/crypto/ppapi/linked_ptr.h" | 29 #include "webkit/media/crypto/ppapi/linked_ptr.h" |
| 30 | 30 |
| 31 namespace { | 31 namespace { |
| 32 | 32 |
| 33 bool IsMainThread() { | 33 bool IsMainThread() { |
| 34 return pp::Module::Get()->core()->IsMainThread(); | 34 return pp::Module::Get()->core()->IsMainThread(); |
| 35 } | 35 } |
| 36 | 36 |
| 37 // Posts a task to run |cb| on the main thread. The task is posted even if the | 37 // Posts a task to run |cb| on the main thread. The task is posted even if the |
| 38 // current thread is the main thread. | 38 // current thread is the main thread. |
| (...skipping 1048 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1087 } // namespace webkit_media | 1087 } // namespace webkit_media |
| 1088 | 1088 |
| 1089 namespace pp { | 1089 namespace pp { |
| 1090 | 1090 |
| 1091 // Factory function for your specialization of the Module object. | 1091 // Factory function for your specialization of the Module object. |
| 1092 Module* CreateModule() { | 1092 Module* CreateModule() { |
| 1093 return new webkit_media::CdmWrapperModule(); | 1093 return new webkit_media::CdmWrapperModule(); |
| 1094 } | 1094 } |
| 1095 | 1095 |
| 1096 } // namespace pp | 1096 } // namespace pp |
| OLD | NEW |