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

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

Issue 9006055: Move the tracked completion callback code into shared impl. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years 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
Index: webkit/plugins/ppapi/host_globals.cc
===================================================================
--- webkit/plugins/ppapi/host_globals.cc (revision 115831)
+++ webkit/plugins/ppapi/host_globals.cc (working copy)
@@ -58,6 +58,16 @@
return &host_var_tracker_;
}
+::ppapi::CallbackTracker* HostGlobals::GetCallbackTrackerForInstance(
+ PP_Instance instance) {
+ std::map<PP_Instance, linked_ptr<InstanceData> >::iterator found =
+ instance_map_.find(instance);
+ if (found == instance_map_.end())
+ return NULL;
+
+ return found->second->instance->module()->GetNewCallbackTracker();
+}
+
::ppapi::FunctionGroupBase* HostGlobals::GetFunctionAPI(PP_Instance pp_instance,
::ppapi::ApiID id) {
// Get the instance object. This also ensures that the instance data is in

Powered by Google App Engine
This is Rietveld 408576698