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/proxy/ppb_file_chooser_proxy.cc | |
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/proxy/ppb_file_chooser_proxy.cc')
-rw-r--r-- | ppapi/proxy/ppb_file_chooser_proxy.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ppapi/proxy/ppb_file_chooser_proxy.cc b/ppapi/proxy/ppb_file_chooser_proxy.cc index 1e55af6..734fb14 100644 --- a/ppapi/proxy/ppb_file_chooser_proxy.cc +++ b/ppapi/proxy/ppb_file_chooser_proxy.cc @@ -124,7 +124,7 @@ int32_t FileChooser::Show(bool require_user_gesture, current_show_callback_ = callback; PluginDispatcher::GetForResource(this)->Send( new PpapiHostMsg_PPBFileChooser_Show( - INTERFACE_ID_PPB_FILE_CHOOSER, + API_ID_PPB_FILE_CHOOSER, host_resource(), save_as, suggested_file_name ? suggested_file_name : "", @@ -173,7 +173,7 @@ const InterfaceProxy::Info* PPB_FileChooser_Proxy::GetTrustedInfo() { static const Info info = { thunk::GetPPB_FileChooser_Trusted_Thunk(), PPB_FILECHOOSER_TRUSTED_INTERFACE, - INTERFACE_ID_NONE, // FILE_CHOOSER is the canonical one. + API_ID_NONE, // FILE_CHOOSER is the canonical one. false, &CreateFileChooserProxy }; @@ -191,7 +191,7 @@ PP_Resource PPB_FileChooser_Proxy::CreateProxyResource( HostResource result; dispatcher->Send(new PpapiHostMsg_PPBFileChooser_Create( - INTERFACE_ID_PPB_FILE_CHOOSER, instance, + API_ID_PPB_FILE_CHOOSER, instance, mode, accept_mime_types ? accept_mime_types : "", &result)); @@ -268,7 +268,7 @@ void PPB_FileChooser_Proxy::OnShowCallback(int32_t result, std::vector<PPB_FileRef_CreateInfo> files; if (enter.succeeded() && result == PP_OK) { PPB_FileRef_Proxy* file_ref_proxy = static_cast<PPB_FileRef_Proxy*>( - dispatcher()->GetInterfaceProxy(INTERFACE_ID_PPB_FILE_REF)); + dispatcher()->GetInterfaceProxy(API_ID_PPB_FILE_REF)); // Convert the returned files to the serialized info. while (PP_Resource cur_file_resource = @@ -280,7 +280,7 @@ void PPB_FileChooser_Proxy::OnShowCallback(int32_t result, } dispatcher()->Send(new PpapiMsg_PPBFileChooser_ChooseComplete( - INTERFACE_ID_PPB_FILE_CHOOSER, chooser, result, files)); + API_ID_PPB_FILE_CHOOSER, chooser, result, files)); } } // namespace proxy |