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

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

Issue 10168026: Delete FunctionGroupBase from Pepper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 | « ppapi/thunk/ppb_zoom_thunk.cc ('k') | webkit/plugins/ppapi/host_globals.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/host_globals.h
diff --git a/webkit/plugins/ppapi/host_globals.h b/webkit/plugins/ppapi/host_globals.h
index 226f91c43db91dded7cc92caa1cae60d235dccbd..fb46d705ac420bef990601737dd44b5a9ce470f3 100644
--- a/webkit/plugins/ppapi/host_globals.h
+++ b/webkit/plugins/ppapi/host_globals.h
@@ -38,9 +38,10 @@ class HostGlobals : public ::ppapi::PpapiGlobals {
virtual ::ppapi::VarTracker* GetVarTracker() OVERRIDE;
virtual ::ppapi::CallbackTracker* GetCallbackTrackerForInstance(
PP_Instance instance) OVERRIDE;
- virtual ::ppapi::FunctionGroupBase* GetFunctionAPI(
- PP_Instance inst,
- ::ppapi::ApiID id) OVERRIDE;
+ virtual ::ppapi::thunk::PPB_Instance_API* GetInstanceAPI(
+ PP_Instance instance) OVERRIDE;
+ virtual ::ppapi::thunk::ResourceCreationAPI* GetResourceCreationAPI(
+ PP_Instance instance) OVERRIDE;
virtual PP_Module GetModuleForInstance(PP_Instance instance) OVERRIDE;
virtual std::string GetCmdLine() OVERRIDE;
virtual void PreCacheFontForFlash(const void* logfontw) OVERRIDE;
@@ -93,16 +94,13 @@ class HostGlobals : public ::ppapi::PpapiGlobals {
// PpapiGlobals overrides.
virtual bool IsHostGlobals() const OVERRIDE;
- // Per-instance data we track.
- struct InstanceData;
-
WEBKIT_PLUGINS_EXPORT static HostGlobals* host_globals_;
::ppapi::ResourceTracker resource_tracker_;
HostVarTracker host_var_tracker_;
- // Tracks all live instances and their associated data.
- typedef std::map<PP_Instance, linked_ptr<InstanceData> > InstanceMap;
+ // Tracks all live instances and their associated object.
+ typedef std::map<PP_Instance, PluginInstance*> InstanceMap;
InstanceMap instance_map_;
// Tracks all live modules. The pointers are non-owning, the PluginModule
« no previous file with comments | « ppapi/thunk/ppb_zoom_thunk.cc ('k') | webkit/plugins/ppapi/host_globals.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698