| 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 22d9401e47e1aa7b145629a11943d3c9521aad79..99d76a1f6d3f9570591640477e202c0c7c3f24d4 100644
|
| --- a/chrome/browser/renderer_host/pepper/pepper_flash_drm_host.cc
|
| +++ b/chrome/browser/renderer_host/pepper/pepper_flash_drm_host.cc
|
| @@ -145,6 +145,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;
|
| }
|
| @@ -170,6 +172,19 @@ int32_t PepperFlashDRMHost::OnHostMsgGetHmonitor(
|
| }
|
| }
|
|
|
| +int32_t PepperFlashDRMHost::OnHostMsgMonitorIsExternal(
|
| + ppapi::host::HostMessageContext* context) {
|
| + int64_t monitor_id = monitor_finder_->GetMonitor();
|
| + if (monitor_id) {
|
| + // TODO(bbudge) 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,
|
|
|