| 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 PPAPI_PROXY_FLASH_DRM_RESOURCE_H_ | 5 #ifndef PPAPI_PROXY_FLASH_DRM_RESOURCE_H_ |
| 6 #define PPAPI_PROXY_FLASH_DRM_RESOURCE_H_ | 6 #define PPAPI_PROXY_FLASH_DRM_RESOURCE_H_ |
| 7 | 7 |
| 8 #include "ppapi/proxy/plugin_resource.h" | 8 #include "ppapi/proxy/plugin_resource.h" |
| 9 #include "ppapi/proxy/ppapi_proxy_export.h" | 9 #include "ppapi/proxy/ppapi_proxy_export.h" |
| 10 #include "ppapi/shared_impl/tracked_callback.h" | 10 #include "ppapi/shared_impl/tracked_callback.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 // Resource override. | 28 // Resource override. |
| 29 virtual thunk::PPB_Flash_DRM_API* AsPPB_Flash_DRM_API() OVERRIDE; | 29 virtual thunk::PPB_Flash_DRM_API* AsPPB_Flash_DRM_API() OVERRIDE; |
| 30 | 30 |
| 31 // PPB_Flash_DRM_API implementation. | 31 // PPB_Flash_DRM_API implementation. |
| 32 virtual int32_t GetDeviceID(PP_Var* id, | 32 virtual int32_t GetDeviceID(PP_Var* id, |
| 33 scoped_refptr<TrackedCallback> callback) OVERRIDE; | 33 scoped_refptr<TrackedCallback> callback) OVERRIDE; |
| 34 virtual PP_Bool GetHmonitor(int64_t* hmonitor) OVERRIDE; | 34 virtual PP_Bool GetHmonitor(int64_t* hmonitor) OVERRIDE; |
| 35 virtual int32_t GetVoucherFile( | 35 virtual int32_t GetVoucherFile( |
| 36 PP_Resource* file_ref, | 36 PP_Resource* file_ref, |
| 37 scoped_refptr<TrackedCallback> callback) OVERRIDE; | 37 scoped_refptr<TrackedCallback> callback) OVERRIDE; |
| 38 virtual int32_t MonitorIsExternal( |
| 39 PP_Bool* is_external, |
| 40 scoped_refptr<TrackedCallback> callback) OVERRIDE; |
| 38 | 41 |
| 39 private: | 42 private: |
| 40 void OnPluginMsgGetDeviceIDReply(PP_Var* dest, | 43 void OnPluginMsgGetDeviceIDReply(PP_Var* dest, |
| 41 scoped_refptr<TrackedCallback> callback, | 44 scoped_refptr<TrackedCallback> callback, |
| 42 const ResourceMessageReplyParams& params, | 45 const ResourceMessageReplyParams& params, |
| 43 const std::string& id); | 46 const std::string& id); |
| 44 void OnPluginMsgGetVoucherFileReply(PP_Resource* dest, | 47 void OnPluginMsgGetVoucherFileReply(PP_Resource* dest, |
| 45 scoped_refptr<TrackedCallback> callback, | 48 scoped_refptr<TrackedCallback> callback, |
| 46 const ResourceMessageReplyParams& params, | 49 const ResourceMessageReplyParams& params, |
| 47 const FileRefCreateInfo& file_info); | 50 const FileRefCreateInfo& file_info); |
| 51 void OnPluginMsgMonitorIsExternalReply( |
| 52 PP_Bool* dest, |
| 53 scoped_refptr<TrackedCallback> callback, |
| 54 const ResourceMessageReplyParams& params, |
| 55 PP_Bool is_external); |
| 48 | 56 |
| 49 DISALLOW_COPY_AND_ASSIGN(FlashDRMResource); | 57 DISALLOW_COPY_AND_ASSIGN(FlashDRMResource); |
| 50 }; | 58 }; |
| 51 | 59 |
| 52 } // namespace proxy | 60 } // namespace proxy |
| 53 } // namespace ppapi | 61 } // namespace ppapi |
| 54 | 62 |
| 55 #endif // PPAPI_PROXY_FLASH_DRM_RESOURCE_H_ | 63 #endif // PPAPI_PROXY_FLASH_DRM_RESOURCE_H_ |
| OLD | NEW |