Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(395)

Unified Diff: webkit/plugins/ppapi/host_globals.cc

Issue 8333004: Rename InterfaceID to ApiID and move the file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/plugins/ppapi/host_globals.h ('k') | webkit/plugins/ppapi/host_var_tracker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/host_globals.cc
diff --git a/webkit/plugins/ppapi/host_globals.cc b/webkit/plugins/ppapi/host_globals.cc
index b2048aa90a823b7ca8cc6ebdb783a5a9932a4022..a75357075f7d4850f59c55644378421e7a918bb6 100644
--- a/webkit/plugins/ppapi/host_globals.cc
+++ b/webkit/plugins/ppapi/host_globals.cc
@@ -8,7 +8,7 @@
#include "base/logging.h"
#include "base/rand_util.h"
-#include "ppapi/proxy/interface_id.h"
+#include "ppapi/shared_impl/api_id.h"
#include "ppapi/shared_impl/function_group_base.h"
#include "ppapi/shared_impl/id_assignment.h"
#include "webkit/plugins/ppapi/plugin_module.h"
@@ -34,7 +34,7 @@ struct HostGlobals::InstanceData {
// Lazily allocated function proxies for the different interfaces.
scoped_ptr< ::ppapi::FunctionGroupBase >
- function_proxies[::ppapi::proxy::INTERFACE_ID_COUNT];
+ function_proxies[::ppapi::API_ID_COUNT];
};
HostGlobals* HostGlobals::host_globals_ = NULL;
@@ -57,9 +57,8 @@ HostGlobals::~HostGlobals() {
return &host_var_tracker_;
}
-::ppapi::FunctionGroupBase* HostGlobals::GetFunctionAPI(
- PP_Instance pp_instance,
- ::ppapi::proxy::InterfaceID id) {
+::ppapi::FunctionGroupBase* HostGlobals::GetFunctionAPI(PP_Instance pp_instance,
+ ::ppapi::ApiID id) {
// Get the instance object. This also ensures that the instance data is in
// the map, since we need it below.
PluginInstance* instance = GetInstance(pp_instance);
@@ -68,7 +67,7 @@ HostGlobals::~HostGlobals() {
// The instance one is special, since it's just implemented by the instance
// object.
- if (id == ::ppapi::proxy::INTERFACE_ID_PPB_INSTANCE)
+ if (id == ::ppapi::API_ID_PPB_INSTANCE)
return instance;
scoped_ptr< ::ppapi::FunctionGroupBase >& proxy =
@@ -77,16 +76,16 @@ HostGlobals::~HostGlobals() {
return proxy.get();
switch (id) {
- case ::ppapi::proxy::INTERFACE_ID_PPB_CURSORCONTROL:
+ case ::ppapi::API_ID_PPB_CURSORCONTROL:
proxy.reset(new PPB_CursorControl_Impl(instance));
break;
- case ::ppapi::proxy::INTERFACE_ID_PPB_FONT:
+ case ::ppapi::API_ID_PPB_FONT:
proxy.reset(new PPB_Font_FunctionImpl(instance));
break;
- case ::ppapi::proxy::INTERFACE_ID_PPB_TEXT_INPUT:
+ case ::ppapi::API_ID_PPB_TEXT_INPUT:
proxy.reset(new PPB_TextInput_Impl(instance));
break;
- case ::ppapi::proxy::INTERFACE_ID_RESOURCE_CREATION:
+ case ::ppapi::API_ID_RESOURCE_CREATION:
proxy.reset(new ResourceCreationImpl(instance));
break;
default:
« no previous file with comments | « webkit/plugins/ppapi/host_globals.h ('k') | webkit/plugins/ppapi/host_var_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698