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 | 4 |
5 #ifndef PPAPI_SHARED_IMPL_SINGLETON_RESOURCE_ID_H_ | 5 #ifndef PPAPI_SHARED_IMPL_SINGLETON_RESOURCE_ID_H_ |
6 #define PPAPI_SHARED_IMPL_SINGLETON_RESOURCE_ID_H_ | 6 #define PPAPI_SHARED_IMPL_SINGLETON_RESOURCE_ID_H_ |
7 | 7 |
8 namespace ppapi { | 8 namespace ppapi { |
9 | 9 |
10 // These IDs are used to access singleton resource objects using | 10 // These IDs are used to access singleton resource objects using |
11 // PPB_Instance_API.GetSingletonResource. | 11 // PPB_Instance_API.GetSingletonResource. |
12 enum SingletonResourceID { | 12 enum SingletonResourceID { |
| 13 // TODO(raymes): The broker resource isn't really a singleton. This is only |
| 14 // a hack until PPB_Broker trusted has been fully refactored to the new |
| 15 // resource model. |
| 16 BROKER_SINGLETON_ID, |
13 FLASH_CLIPBOARD_SINGLETON_ID, | 17 FLASH_CLIPBOARD_SINGLETON_ID, |
14 FLASH_FILE_SINGLETON_ID, | 18 FLASH_FILE_SINGLETON_ID, |
15 FLASH_FULLSCREEN_SINGLETON_ID, | 19 FLASH_FULLSCREEN_SINGLETON_ID, |
16 FLASH_SINGLETON_ID, | 20 FLASH_SINGLETON_ID, |
17 GAMEPAD_SINGLETON_ID, | 21 GAMEPAD_SINGLETON_ID, |
18 }; | 22 }; |
19 | 23 |
20 } // namespace ppapi | 24 } // namespace ppapi |
21 | 25 |
22 #endif // PPAPI_SHARED_IMPL_SINGLETON_RESOURCE_ID_H_ | 26 #endif // PPAPI_SHARED_IMPL_SINGLETON_RESOURCE_ID_H_ |
OLD | NEW |