| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_PEPPER_BROWSER_PPAPI_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_PEPPER_BROWSER_PPAPI_HOST_IMPL_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_PEPPER_BROWSER_PPAPI_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_PEPPER_BROWSER_PPAPI_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "content/browser/renderer_host/pepper/content_browser_pepper_host_facto
ry.h" | 10 #include "content/browser/renderer_host/pepper/content_browser_pepper_host_facto
ry.h" |
| 11 #include "content/public/browser/browser_ppapi_host.h" | 11 #include "content/public/browser/browser_ppapi_host.h" |
| 12 #include "ipc/ipc_listener.h" | 12 #include "ipc/ipc_channel_proxy.h" |
| 13 #include "ppapi/host/ppapi_host.h" | 13 #include "ppapi/host/ppapi_host.h" |
| 14 | 14 |
| 15 namespace IPC { | 15 namespace IPC { |
| 16 class Sender; | 16 class Sender; |
| 17 } | 17 } |
| 18 | 18 |
| 19 namespace content { | 19 namespace content { |
| 20 | 20 |
| 21 class BrowserPpapiHostImpl : public BrowserPpapiHost, public IPC::Listener { | 21 class BrowserPpapiHostImpl : public BrowserPpapiHost, |
| 22 public IPC::ChannelProxy::MessageFilter { |
| 22 public: | 23 public: |
| 23 BrowserPpapiHostImpl(IPC::Sender* sender, | 24 BrowserPpapiHostImpl(IPC::Sender* sender, |
| 24 const ppapi::PpapiPermissions& permissions); | 25 const ppapi::PpapiPermissions& permissions); |
| 25 virtual ~BrowserPpapiHostImpl(); | |
| 26 | 26 |
| 27 // IPC::Listener. | 27 // IPC::ChannelProxy::MessageFilter. |
| 28 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | 28 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
| 29 | 29 |
| 30 // BrowserPpapiHost. | 30 // BrowserPpapiHost. |
| 31 virtual ppapi::host::PpapiHost* GetPpapiHost() OVERRIDE; | 31 virtual ppapi::host::PpapiHost* GetPpapiHost() OVERRIDE; |
| 32 | 32 |
| 33 private: | 33 private: |
| 34 virtual ~BrowserPpapiHostImpl(); |
| 35 |
| 34 ContentBrowserPepperHostFactory host_factory_; | 36 ContentBrowserPepperHostFactory host_factory_; |
| 35 ppapi::host::PpapiHost ppapi_host_; | 37 ppapi::host::PpapiHost ppapi_host_; |
| 36 | 38 |
| 37 DISALLOW_COPY_AND_ASSIGN(BrowserPpapiHostImpl); | 39 DISALLOW_COPY_AND_ASSIGN(BrowserPpapiHostImpl); |
| 38 }; | 40 }; |
| 39 | 41 |
| 40 } // namespace content | 42 } // namespace content |
| 41 | 43 |
| 42 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_BROWSER_PPAPI_HOST_IMPL_H_ | 44 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_BROWSER_PPAPI_HOST_IMPL_H_ |
| OLD | NEW |