Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | |
|
bartfab (slow)
2015/05/18 09:57:41
Nit: s/(c) //
emaxx
2015/05/18 15:06:30
Done.
| |
| 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 "ppapi/cpp/instance.h" | |
| 6 #include "ppapi/cpp/module.h" | |
| 7 | |
| 8 namespace { | |
| 9 | |
| 10 class Module : public pp::Module { | |
| 11 public: | |
| 12 virtual pp::Instance* CreateInstance(PP_Instance instance) { | |
| 13 return new pp::Instance(instance); | |
| 14 } | |
| 15 }; | |
| 16 | |
| 17 } // namespace | |
| 18 | |
| 19 namespace pp { | |
| 20 | |
| 21 Module* CreateModule() { | |
| 22 return new ::Module(); | |
| 23 } | |
| 24 | |
| 25 } // namespace pp | |
| OLD | NEW |