| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_PROXY_INTERFACE_ID_H_ | 5 #ifndef PPAPI_PROXY_INTERFACE_ID_H_ |
| 6 #define PPAPI_PROXY_INTERFACE_ID_H_ | 6 #define PPAPI_PROXY_INTERFACE_ID_H_ |
| 7 | 7 |
| 8 namespace pp { | 8 namespace pp { |
| 9 namespace proxy { | 9 namespace proxy { |
| 10 | 10 |
| 11 // These numbers must be all small integers. They are used in a lookup table | 11 // These numbers must be all small integers. They are used in a lookup table |
| 12 // to route messages to the appropriate message handler. | 12 // to route messages to the appropriate message handler. |
| 13 enum InterfaceID { | 13 enum InterfaceID { |
| 14 // Zero is reserved for control messages. | 14 // Zero is reserved for control messages. |
| 15 INTERFACE_ID_PPB_CHAR_SET = 1, | 15 INTERFACE_ID_PPB_BUFFER = 1, |
| 16 INTERFACE_ID_PPB_CHAR_SET, |
| 16 INTERFACE_ID_PPB_CORE, | 17 INTERFACE_ID_PPB_CORE, |
| 18 INTERFACE_ID_PPB_FLASH, |
| 17 INTERFACE_ID_PPB_FONT, | 19 INTERFACE_ID_PPB_FONT, |
| 18 INTERFACE_ID_PPB_GRAPHICS_2D, | 20 INTERFACE_ID_PPB_GRAPHICS_2D, |
| 19 INTERFACE_ID_PPB_IMAGE_DATA, | 21 INTERFACE_ID_PPB_IMAGE_DATA, |
| 20 INTERFACE_ID_PPB_INSTANCE, | 22 INTERFACE_ID_PPB_INSTANCE, |
| 23 INTERFACE_ID_PPB_PDF, |
| 21 INTERFACE_ID_PPB_TESTING, | 24 INTERFACE_ID_PPB_TESTING, |
| 22 INTERFACE_ID_PPB_URL_LOADER, | 25 INTERFACE_ID_PPB_URL_LOADER, |
| 23 INTERFACE_ID_PPB_URL_REQUEST_INFO, | 26 INTERFACE_ID_PPB_URL_REQUEST_INFO, |
| 24 INTERFACE_ID_PPB_URL_RESPONSE_INFO, | 27 INTERFACE_ID_PPB_URL_RESPONSE_INFO, |
| 25 INTERFACE_ID_PPB_VAR, | 28 INTERFACE_ID_PPB_VAR, |
| 26 INTERFACE_ID_PPB_VAR_DEPRECATED, | 29 INTERFACE_ID_PPB_VAR_DEPRECATED, |
| 27 | 30 |
| 28 INTERFACE_ID_PPP_CLASS, | 31 INTERFACE_ID_PPP_CLASS, |
| 29 INTERFACE_ID_PPP_INSTANCE, | 32 INTERFACE_ID_PPP_INSTANCE, |
| 30 | 33 |
| 31 // Must be last to indicate the number of interface IDs. | 34 // Must be last to indicate the number of interface IDs. |
| 32 INTERFACE_ID_COUNT | 35 INTERFACE_ID_COUNT |
| 33 }; | 36 }; |
| 34 | 37 |
| 35 } // namespace proxy | 38 } // namespace proxy |
| 36 } // namespace pp | 39 } // namespace pp |
| 37 | 40 |
| 38 #endif // PPAPI_PROXY_INTERFACE_ID_H_ | 41 #endif // PPAPI_PROXY_INTERFACE_ID_H_ |
| OLD | NEW |