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_PEPPER_CONTENT_BROWSER_PEPPER_HOST_FACTORY_H_ | 5 #ifndef CONTENT_BROWSER_PEPPER_CONTENT_BROWSER_PEPPER_HOST_FACTORY_H_ |
6 #define CONTENT_BROWSER_PEPPER_CONTENT_BROWSER_PEPPER_HOST_FACTORY_H_ | 6 #define CONTENT_BROWSER_PEPPER_CONTENT_BROWSER_PEPPER_HOST_FACTORY_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "ppapi/host/host_factory.h" | 9 #include "ppapi/host/host_factory.h" |
10 | 10 |
11 class PepperMessageFilter; | 11 namespace content { |
12 | 12 |
13 namespace content { | 13 class BrowserPpapiHostImpl; |
14 | 14 |
15 class ContentBrowserPepperHostFactory : public ppapi::host::HostFactory { | 15 class ContentBrowserPepperHostFactory : public ppapi::host::HostFactory { |
16 public: | 16 public: |
17 // Non-owning pointer to the filter must outlive this class. | 17 // Non-owning pointer to the filter must outlive this class. |
18 explicit ContentBrowserPepperHostFactory(PepperMessageFilter* filter); | 18 explicit ContentBrowserPepperHostFactory(BrowserPpapiHostImpl* host); |
19 virtual ~ContentBrowserPepperHostFactory(); | 19 virtual ~ContentBrowserPepperHostFactory(); |
20 | 20 |
21 virtual scoped_ptr<ppapi::host::ResourceHost> CreateResourceHost( | 21 virtual scoped_ptr<ppapi::host::ResourceHost> CreateResourceHost( |
22 ppapi::host::PpapiHost* host, | 22 ppapi::host::PpapiHost* host, |
23 const ppapi::proxy::ResourceMessageCallParams& params, | 23 const ppapi::proxy::ResourceMessageCallParams& params, |
24 PP_Instance instance, | 24 PP_Instance instance, |
25 const IPC::Message& message) OVERRIDE; | 25 const IPC::Message& message) OVERRIDE; |
26 | 26 |
27 private: | 27 private: |
28 // Non-owning pointer. | 28 // Non-owning pointer. |
29 PepperMessageFilter* filter_; | 29 BrowserPpapiHostImpl* host_; |
30 | 30 |
31 DISALLOW_COPY_AND_ASSIGN(ContentBrowserPepperHostFactory); | 31 DISALLOW_COPY_AND_ASSIGN(ContentBrowserPepperHostFactory); |
32 }; | 32 }; |
33 | 33 |
34 } // namespace content | 34 } // namespace content |
35 | 35 |
36 #endif // CONTENT_BROWSER_PEPPER_CONTENT_BROWSER_PEPPER_HOST_FACTORY_H_ | 36 #endif // CONTENT_BROWSER_PEPPER_CONTENT_BROWSER_PEPPER_HOST_FACTORY_H_ |
OLD | NEW |