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_BROWSER_RENDERER_HOST_PEPPER_BROWSER_PPAPI_HOST_IMPL_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_PEPPER_BROWSER_PPAPI_HOST_IMPL_H_ |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" |
| 10 #include "content/browser/renderer_host/pepper/content_browser_pepper_host_facto
ry.h" |
| 11 #include "content/public/browser/browser_ppapi_host.h" |
| 12 #include "ipc/ipc_listener.h" |
| 13 #include "ppapi/host/ppapi_host.h" |
| 14 |
| 15 namespace IPC { |
| 16 class Sender; |
| 17 } |
| 18 |
| 19 namespace content { |
| 20 |
| 21 class BrowserPpapiHostImpl : public BrowserPpapiHost, public IPC::Listener { |
| 22 public: |
| 23 BrowserPpapiHostImpl(IPC::Sender* sender, |
| 24 const ppapi::PpapiPermissions& permissions); |
| 25 virtual ~BrowserPpapiHostImpl(); |
| 26 |
| 27 // IPC::Listener. |
| 28 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
| 29 |
| 30 // BrowserPpapiHost. |
| 31 virtual ppapi::host::PpapiHost* GetPpapiHost() OVERRIDE; |
| 32 |
| 33 private: |
| 34 ContentBrowserPepperHostFactory host_factory_; |
| 35 ppapi::host::PpapiHost ppapi_host_; |
| 36 |
| 37 DISALLOW_COPY_AND_ASSIGN(BrowserPpapiHostImpl); |
| 38 }; |
| 39 |
| 40 } // namespace content |
| 41 |
| 42 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_BROWSER_PPAPI_HOST_IMPL_H_ |
OLD | NEW |