1 // Copyright 2012 The Chromium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "components/nacl/renderer/plugin/module_ppapi.h" 6 #include "components/nacl/renderer/plugin/plugin.h" 7 8 namespace plugin { 9 ModulePpapi()10ModulePpapi::ModulePpapi() : pp::Module() { 11 } 12 ~ModulePpapi()13ModulePpapi::~ModulePpapi() { 14 } 15 Init()16bool ModulePpapi::Init() { 17 return true; 18 } 19 CreateInstance(PP_Instance pp_instance)20pp::Instance* ModulePpapi::CreateInstance(PP_Instance pp_instance) { 21 return new Plugin(pp_instance); 22 } 23 24 } // namespace plugin 25 26 27 namespace pp { 28 CreateModule()29Module* CreateModule() { 30 return new plugin::ModulePpapi(); 31 } 32 33 } // namespace pp 34