Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Side by Side Diff: extensions/shell/browser/shell_browser_pepper_host_factory.h

Issue 437503004: Add NaCl support to app_shell (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: (nacl-init) rebase Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2014 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 EXTENSIONS_SHELL_BROWSER_SHELL_BROWSER_PEPPER_HOST_FACTORY_H_
6 #define EXTENSIONS_SHELL_BROWSER_SHELL_BROWSER_PEPPER_HOST_FACTORY_H_
7
8 #include "base/compiler_specific.h"
9 #include "base/macros.h"
10 #include "ppapi/host/host_factory.h"
11
12 namespace content {
13 class BrowserPpapiHost;
14 } // namespace content
15
16 namespace extensions {
17
18 // A simplified Pepper HostFactory that always replies that private browser
19 // APIs are available.
20 class ShellBrowserPepperHostFactory : public ppapi::host::HostFactory {
21 public:
22 // Non-owning pointer to the filter must outlive this class.
23 explicit ShellBrowserPepperHostFactory(content::BrowserPpapiHost* host);
24 virtual ~ShellBrowserPepperHostFactory();
25
26 // ppapi::host::HostFactory overrides:
27 virtual scoped_ptr<ppapi::host::ResourceHost> CreateResourceHost(
28 ppapi::host::PpapiHost* host,
29 const ppapi::proxy::ResourceMessageCallParams& params,
30 PP_Instance instance,
31 const IPC::Message& message) OVERRIDE;
32
33 private:
34 // Non-owning pointer.
35 content::BrowserPpapiHost* host_;
36
37 DISALLOW_COPY_AND_ASSIGN(ShellBrowserPepperHostFactory);
38 };
39
40 } // namespace extensions
41
42 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_BROWSER_PEPPER_HOST_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698