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 3// found in the LICENSE file. 4 5#ifndef CHROME_RENDERER_PEPPER_PEPPER_FLASH_DRM_RENDERER_HOST_H_ 6#define CHROME_RENDERER_PEPPER_PEPPER_FLASH_DRM_RENDERER_HOST_H_ 7 8#include "base/basictypes.h" 9#include "base/compiler_specific.h" 10#include "ppapi/host/resource_host.h" 11 12namespace content { 13class RendererPpapiHost; 14} 15 16namespace chrome { 17 18// TODO(raymes): This is only needed until we move FileRef resources to the 19// browser. After that, get rid of this class altogether. 20class PepperFlashDRMRendererHost : public ppapi::host::ResourceHost { 21 public: 22 PepperFlashDRMRendererHost(content::RendererPpapiHost* host, 23 PP_Instance instance, 24 PP_Resource resource); 25 virtual ~PepperFlashDRMRendererHost(); 26 27 virtual int32_t OnResourceMessageReceived( 28 const IPC::Message& msg, 29 ppapi::host::HostMessageContext* context) OVERRIDE; 30 31 private: 32 int32_t OnGetVoucherFile(ppapi::host::HostMessageContext* context); 33 34 // Non-owning pointer. 35 content::RendererPpapiHost* renderer_ppapi_host_; 36 37 DISALLOW_COPY_AND_ASSIGN(PepperFlashDRMRendererHost); 38}; 39 40} // namespace chrome 41 42#endif // CHROME_RENDERER_PEPPER_PEPPER_FLASH_DRM_RENDERER_HOST_H_ 43