diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-20 23:09:28 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-20 23:09:28 +0000 |
commit | ac4b54de7f49f4f0910b952888eb44fc55737195 (patch) | |
tree | 00fc8b7d9bb51ca71ee34d3befb20be85acc2a3c /ppapi/shared_impl/api_id.h | |
parent | d365a681dce7dca73ecbd682529a98b5505e9cdb (diff) | |
download | chromium_src-ac4b54de7f49f4f0910b952888eb44fc55737195.zip chromium_src-ac4b54de7f49f4f0910b952888eb44fc55737195.tar.gz chromium_src-ac4b54de7f49f4f0910b952888eb44fc55737195.tar.bz2 |
Rename InterfaceID to ApiID and move the file.
This was originally in the proxy and had a 1:1 correspondence with an
interface. Then we reused this for other stuff and then merged some interfaces
into larger APIs (ppapi/thunk/*_api.h) so the name was no longer accurate.
It was wrong to be in the proxy directory since directories at a "lower level"
than the proxy (ppapi/shared_impl and webkit/plugins/ppapi) depended on it.
This renames to ApiID (I avoided APIID since it looks like a define) which is
the proper description of the class, and moved it to shared_impl. This fixes
the deps since there are no longer any bad dependencies on the proxy directory.
TEST=it compiles
BUG=none
Review URL: http://codereview.chromium.org/8333004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106619 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/shared_impl/api_id.h')
-rw-r--r-- | ppapi/shared_impl/api_id.h | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/ppapi/shared_impl/api_id.h b/ppapi/shared_impl/api_id.h new file mode 100644 index 0000000..54a93d8 --- /dev/null +++ b/ppapi/shared_impl/api_id.h @@ -0,0 +1,67 @@ +// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef PPAPI_SHARED_IMPL_API_ID_H_ +#define PPAPI_SHARED_IMPL_API_ID_H_ + +namespace ppapi { + +// These numbers must be all small integers. They are used in a lookup table +// to route messages to the appropriate message handler. +enum ApiID { + // Zero is reserved for control messages. + API_ID_NONE = 0, + API_ID_PPB_AUDIO = 1, + API_ID_PPB_AUDIO_CONFIG, + API_ID_PPB_BROKER, + API_ID_PPB_BUFFER, + API_ID_PPB_CONTEXT_3D, + API_ID_PPB_CORE, + API_ID_PPB_CURSORCONTROL, + API_ID_PPB_FILE_CHOOSER, + API_ID_PPB_FILE_REF, + API_ID_PPB_FILE_SYSTEM, + API_ID_PPB_FLASH, + API_ID_PPB_FLASH_CLIPBOARD, + API_ID_PPB_FLASH_FILE_FILEREF, + API_ID_PPB_FLASH_FILE_MODULELOCAL, + API_ID_PPB_FLASH_MENU, + API_ID_PPB_FLASH_NETCONNECTOR, + API_ID_PPB_FLASH_TCPSOCKET, + API_ID_PPB_FLASH_UDPSOCKET, + API_ID_PPB_FONT, + API_ID_PPB_GRAPHICS_2D, + API_ID_PPB_GRAPHICS_3D, + API_ID_PPB_INSTANCE, + API_ID_PPB_INSTANCE_PRIVATE, + API_ID_PPB_OPENGLES2, + API_ID_PPB_PDF, + API_ID_PPB_SURFACE_3D, + API_ID_PPB_TESTING, + API_ID_PPB_TEXT_INPUT, + API_ID_PPB_URL_LOADER, + API_ID_PPB_URL_RESPONSE_INFO, + API_ID_PPB_VAR_DEPRECATED, + API_ID_PPB_VIDEO_CAPTURE_DEV, + API_ID_PPB_VIDEO_DECODER_DEV, + + API_ID_PPP_CLASS, + API_ID_PPP_GRAPHICS_3D, + API_ID_PPP_INPUT_EVENT, + API_ID_PPP_INSTANCE, + API_ID_PPP_INSTANCE_PRIVATE, + API_ID_PPP_MESSAGING, + API_ID_PPP_MOUSE_LOCK, + API_ID_PPP_VIDEO_CAPTURE_DEV, + API_ID_PPP_VIDEO_DECODER_DEV, + + API_ID_RESOURCE_CREATION, + + // Must be last to indicate the number of interface IDs. + API_ID_COUNT +}; + +} // namespace ppapi + +#endif // PPAPI_SHARED_IMPL_API_ID_H_ |