OLD | NEW |
(Empty) | |
| 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 CONTENT_RENDERER_PEPPER_PEPPER_FLASH_RENDERER_HOST_H_ |
| 6 #define CONTENT_RENDERER_PEPPER_PEPPER_FLASH_RENDERER_HOST_H_ |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 #include "ppapi/host/host_message_context.h" |
| 10 #include "ppapi/host/resource_host.h" |
| 11 |
| 12 namespace content { |
| 13 |
| 14 class RendererPpapiHost; |
| 15 |
| 16 class PepperFlashRendererHost : public ppapi::host::ResourceHost { |
| 17 public: |
| 18 PepperFlashRendererHost(RendererPpapiHost* host, |
| 19 PP_Instance instance, |
| 20 PP_Resource resource); |
| 21 virtual ~PepperFlashRendererHost(); |
| 22 |
| 23 // ppapi::host::ResourceHost override. |
| 24 virtual int32_t OnResourceMessageReceived( |
| 25 const IPC::Message& msg, |
| 26 ppapi::host::HostMessageContext* context) OVERRIDE; |
| 27 |
| 28 private: |
| 29 int32_t OnMsgGetProxyForURL(ppapi::host::HostMessageContext* host_context, |
| 30 const std::string& url); |
| 31 |
| 32 DISALLOW_COPY_AND_ASSIGN(PepperFlashRendererHost); |
| 33 }; |
| 34 |
| 35 } // namespace content |
| 36 |
| 37 #endif // CONTENT_RENDERER_PEPPER_PEPPER_FLASH_RENDERER_HOST_H_ |
OLD | NEW |