Roll src/third_party/WebKit f36d5e0:68b67cd (svn 193299:193303)
[chromium-blink-merge.git] / components / nacl / renderer / plugin / module_ppapi.h
blob5901b4791725287fc9e1bc7c8b8d9f2de70a2421
1 /*
2 * Copyright (c) 2013 The Chromium Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file.
5 */
7 #ifndef COMPONENTS_NACL_RENDERER_PLUGIN_MODULE_PPAPI_H_
8 #define COMPONENTS_NACL_RENDERER_PLUGIN_MODULE_PPAPI_H_
10 #include "components/nacl/renderer/ppb_nacl_private.h"
11 #include "ppapi/cpp/module.h"
13 namespace plugin {
15 class ModulePpapi : public pp::Module {
16 public:
17 ModulePpapi();
19 ~ModulePpapi() override;
21 bool Init() override;
23 pp::Instance* CreateInstance(PP_Instance pp_instance) override;
25 private:
26 bool init_was_successful_;
27 const PPB_NaCl_Private* private_interface_;
30 } // namespace plugin
33 namespace pp {
35 Module* CreateModule();
37 } // namespace pp
39 #endif // COMPONENTS_NACL_RENDERER_PLUGIN_MODULE_PPAPI_H_