| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ppapi/cpp/instance.h" | 5 #include "ppapi/cpp/instance.h" |
| 6 #include "ppapi/cpp/module.h" | 6 #include "ppapi/cpp/module.h" |
| 7 | 7 |
| 8 namespace { | 8 namespace { |
| 9 | 9 |
| 10 class Module : public pp::Module { | 10 class Module : public pp::Module { |
| 11 public: | 11 public: |
| 12 virtual pp::Instance* CreateInstance(PP_Instance instance) { | 12 virtual pp::Instance* CreateInstance(PP_Instance instance) { |
| 13 return new pp::Instance(instance); | 13 return new pp::Instance(instance); |
| 14 } | 14 } |
| 15 }; | 15 }; |
| 16 | 16 |
| 17 } // namespace | 17 } // namespace |
| 18 | 18 |
| 19 namespace pp { | 19 namespace pp { |
| 20 | 20 |
| 21 Module* CreateModule() { | 21 Module* CreateModule() { |
| 22 return new ::Module(); | 22 return new ::Module(); |
| 23 } | 23 } |
| 24 | 24 |
| 25 } // namespace pp | 25 } // namespace pp |
| OLD | NEW |