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.
5 #ifndef CHROME_BROWSER_RENDERER_HOST_PEPPER_CHROME_BROWSER_PEPPER_HOST_FACTORY_H_
6 #define CHROME_BROWSER_RENDERER_HOST_PEPPER_CHROME_BROWSER_PEPPER_HOST_FACTORY_H_
8 #include "base/macros.h"
9 #include "ppapi/host/host_factory.h"
12 class BrowserPpapiHost
;
13 } // namespace content
15 class ChromeBrowserPepperHostFactory
: public ppapi::host::HostFactory
{
17 // Non-owning pointer to the filter must outlive this class.
18 explicit ChromeBrowserPepperHostFactory(content::BrowserPpapiHost
* host
);
19 ~ChromeBrowserPepperHostFactory() override
;
21 scoped_ptr
<ppapi::host::ResourceHost
> CreateResourceHost(
22 ppapi::host::PpapiHost
* host
,
25 const IPC::Message
& message
) override
;
28 // Non-owning pointer.
29 content::BrowserPpapiHost
* host_
;
31 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserPepperHostFactory
);
34 #endif // CHROME_BROWSER_RENDERER_HOST_PEPPER_CHROME_BROWSER_PEPPER_HOST_FACTORY_H_