| OLD | NEW |
| 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 */ | |
| 5 | 4 |
| 6 #include "ppapi/c/pp_instance.h" | 5 #include "ppapi/c/pp_instance.h" |
| 7 #include "ppapi/c/pp_module.h" | 6 #include "ppapi/c/pp_module.h" |
| 8 | 7 |
| 9 #include "ppapi/cpp/instance.h" | 8 #include "ppapi/cpp/instance.h" |
| 10 #include "ppapi/cpp/module.h" | 9 #include "ppapi/cpp/module.h" |
| 11 | 10 |
| 12 #include "ppapi_simple/ps.h" | 11 #include "ppapi_simple/ps.h" |
| 13 | 12 |
| 14 static pp::Instance* s_Instance = NULL; | 13 static pp::Instance* s_Instance = NULL; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 42 // The browser keeps a singleton of this module. It calls the | 41 // The browser keeps a singleton of this module. It calls the |
| 43 // CreateInstance() method on the object you return to make instances. There | 42 // CreateInstance() method on the object you return to make instances. There |
| 44 // is one instance per <embed> tag on the page. This is the main binding | 43 // is one instance per <embed> tag on the page. This is the main binding |
| 45 // point for your NaCl module with the browser. | 44 // point for your NaCl module with the browser. |
| 46 Module* CreateModule() { | 45 Module* CreateModule() { |
| 47 return new PSModule(); | 46 return new PSModule(); |
| 48 } | 47 } |
| 49 | 48 |
| 50 } // namespace pp | 49 } // namespace pp |
| 51 | 50 |
| OLD | NEW |