| Index: chrome/browser/renderer_host/pepper/pepper_flash_drm_host.cc
|
| diff --git a/chrome/browser/renderer_host/pepper/pepper_flash_drm_host.cc b/chrome/browser/renderer_host/pepper/pepper_flash_drm_host.cc
|
| index c7f47e573b420379fc071050332b8c8744482ebd..76622b89e6b8b397c09d959b276ec846bc007d5a 100644
|
| --- a/chrome/browser/renderer_host/pepper/pepper_flash_drm_host.cc
|
| +++ b/chrome/browser/renderer_host/pepper/pepper_flash_drm_host.cc
|
| @@ -144,6 +144,8 @@ int32_t PepperFlashDRMHost::OnResourceMessageReceived(
|
| OnHostMsgGetDeviceID)
|
| PPAPI_DISPATCH_HOST_RESOURCE_CALL_0(PpapiHostMsg_FlashDRM_GetHmonitor,
|
| OnHostMsgGetHmonitor)
|
| + PPAPI_DISPATCH_HOST_RESOURCE_CALL_0(PpapiHostMsg_FlashDRM_MonitorIsExternal,
|
| + OnHostMsgMonitorIsExternal)
|
| IPC_END_MESSAGE_MAP()
|
| return PP_ERROR_FAILED;
|
| }
|
| @@ -169,6 +171,19 @@ int32_t PepperFlashDRMHost::OnHostMsgGetHmonitor(
|
| }
|
| }
|
|
|
| +int32_t PepperFlashDRMHost::OnHostMsgMonitorIsExternal(
|
| + ppapi::host::HostMessageContext* context) {
|
| + int64_t monitor_id = monitor_finder_->GetMonitor();
|
| + if (monitor_id) {
|
| + // TODO() get information about whether monitor is external.
|
| + context->reply_msg =
|
| + PpapiPluginMsg_FlashDRM_MonitorIsExternalReply(PP_FALSE);
|
| + return PP_OK;
|
| + } else {
|
| + return PP_ERROR_FAILED;
|
| + }
|
| +}
|
| +
|
| void PepperFlashDRMHost::GotDeviceID(
|
| ppapi::host::ReplyMessageContext reply_context,
|
| const std::string& id,
|
|
|