| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #ifndef PPAPI_CPP_MODULE_EMBEDDER_H_ | 5 #ifndef PPAPI_CPP_MODULE_EMBEDDER_H_ |
| 6 #define PPAPI_CPP_MODULE_EMBEDDER_H_ | 6 #define PPAPI_CPP_MODULE_EMBEDDER_H_ |
| 7 | 7 |
| 8 /// @file |
| 9 /// This file defines the APIs for creating a Module object. |
| 8 namespace pp { | 10 namespace pp { |
| 9 | 11 |
| 10 class Module; | 12 class Module; |
| 11 // Implemented by the embedder. | 13 |
| 12 // | 14 /// This function creates the <code>pp::Module</code> object associated with |
| 13 // Creates the pp::Module object associated with this plugin. Returns the | 15 /// this module. |
| 14 // module if it was successfully created, or NULL on failure. Upon failure, | 16 /// |
| 15 // the plugin will be unloaded. | 17 /// <strong>Note: </strong>NaCl module developers must implement this function. |
| 18 /// |
| 19 /// @return Returns the module if it was successfully created, or NULL on |
| 20 /// failure. Upon failure, the module will be unloaded. |
| 16 pp::Module* CreateModule(); | 21 pp::Module* CreateModule(); |
| 17 | 22 |
| 18 } // namespace pp | 23 } // namespace pp |
| 19 | 24 |
| 20 #endif // PPAPI_CPP_MODULE_EMBEDDER_H_ | 25 #endif // PPAPI_CPP_MODULE_EMBEDDER_H_ |
| OLD | NEW |