OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef PPAPI_PROXY_INTERFACE_ID_H_ |
| 6 #define PPAPI_PROXY_INTERFACE_ID_H_ |
| 7 |
| 8 namespace pp { |
| 9 namespace proxy { |
| 10 |
| 11 // These numbers must be all small integers. They are used in a lookup table |
| 12 // to route messages to the appropriate message handler. |
| 13 enum InterfaceID { |
| 14 // Zero is reserved for control messages. |
| 15 INTERFACE_ID_PPB_CORE = 1, |
| 16 INTERFACE_ID_PPB_GRAPHICS_2D, |
| 17 INTERFACE_ID_PPB_IMAGE_DATA, |
| 18 INTERFACE_ID_PPB_INSTANCE, |
| 19 INTERFACE_ID_PPB_URL_LOADER, |
| 20 INTERFACE_ID_PPB_VAR, |
| 21 INTERFACE_ID_PPB_VAR_DEPRECATED, |
| 22 |
| 23 INTERFACE_ID_PPP_CLASS, |
| 24 INTERFACE_ID_PPP_INSTANCE, |
| 25 |
| 26 // Must be last to indicate the number of interface IDs. |
| 27 INTERFACE_ID_COUNT |
| 28 }; |
| 29 |
| 30 } // namespace proxy |
| 31 } // namespace pp |
| 32 |
| 33 #endif // PPAPI_PROXY_INTERFACE_ID_H_ |
OLD | NEW |