This source file includes following definitions.
- CreateInstance
- CreateModule
#include "ppapi/cpp/instance.h"
#include "ppapi/cpp/module.h"
class LoadProgressInstance : public pp::Instance {
public:
explicit LoadProgressInstance(PP_Instance instance)
: pp::Instance(instance) {}
virtual ~LoadProgressInstance() {}
};
class LoadProgressModule : public pp::Module {
public:
LoadProgressModule() : pp::Module() {}
virtual ~LoadProgressModule() {}
virtual pp::Instance* CreateInstance(PP_Instance instance) {
return new LoadProgressInstance(instance);
}
};
namespace pp {
Module* CreateModule() { return new LoadProgressModule(); }
}