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_H_ | 5 #ifndef PPAPI_CPP_MODULE_H_ |
6 #define PPAPI_CPP_MODULE_H_ | 6 #define PPAPI_CPP_MODULE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "ppapi/c/pp_instance.h" | 11 #include "ppapi/c/pp_instance.h" |
12 #include "ppapi/c/pp_module.h" | 12 #include "ppapi/c/pp_module.h" |
13 #include "ppapi/c/pp_stdint.h" | 13 #include "ppapi/c/pp_stdint.h" |
14 #include "ppapi/c/ppb.h" | 14 #include "ppapi/c/ppb.h" |
15 #include "ppapi/c/ppb_core.h" | 15 #include "ppapi/c/ppb_core.h" |
16 #include "ppapi/cpp/core.h" | 16 #include "ppapi/cpp/core.h" |
17 | 17 |
18 | |
19 /// @file | |
20 /// This file defines a Module object which uniquely identifies the module | |
dmichael (off chromium)
2011/08/03 15:50:49
Maybe keep it simple:
'This file defines the Modul
jond
2011/08/03 20:15:08
Done.
| |
21 /// or .nexe. | |
18 namespace pp { | 22 namespace pp { |
19 | 23 |
20 class Instance; | 24 class Instance; |
21 | 25 |
22 class Module { | 26 class Module { |
23 public: | 27 public: |
24 typedef std::map<PP_Instance, Instance*> InstanceMap; | 28 typedef std::map<PP_Instance, Instance*> InstanceMap; |
25 | 29 |
26 // You may not call any other PP functions from the constructor, put them | 30 // You may not call any other PP functions from the constructor, put them |
27 // in Init instead. Various things will not be set up until the constructor | 31 // in Init instead. Various things will not be set up until the constructor |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
118 | 122 |
119 // All additional interfaces this plugin can handle as registered by | 123 // All additional interfaces this plugin can handle as registered by |
120 // AddPluginInterface. | 124 // AddPluginInterface. |
121 typedef std::map<std::string, const void*> InterfaceMap; | 125 typedef std::map<std::string, const void*> InterfaceMap; |
122 InterfaceMap additional_interfaces_; | 126 InterfaceMap additional_interfaces_; |
123 }; | 127 }; |
124 | 128 |
125 } // namespace pp | 129 } // namespace pp |
126 | 130 |
127 #endif // PPAPI_CPP_MODULE_H_ | 131 #endif // PPAPI_CPP_MODULE_H_ |
OLD | NEW |