[Do not revert] Roll-back V8 to version 4.4.63.
[chromium-blink-merge.git] / native_client_sdk / src / examples / tutorial / load_progress / load_progress.cc
blobd1005c39cdb58e7d9233895d2b47d32b64233680
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 #include "ppapi/cpp/instance.h"
6 #include "ppapi/cpp/module.h"
8 class LoadProgressInstance : public pp::Instance {
9 public:
10 explicit LoadProgressInstance(PP_Instance instance)
11 : pp::Instance(instance) {}
12 virtual ~LoadProgressInstance() {}
15 class LoadProgressModule : public pp::Module {
16 public:
17 LoadProgressModule() : pp::Module() {}
18 virtual ~LoadProgressModule() {}
20 virtual pp::Instance* CreateInstance(PP_Instance instance) {
21 return new LoadProgressInstance(instance);
25 namespace pp {
26 Module* CreateModule() { return new LoadProgressModule(); }
27 } // namespace pp