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

Unified Diff: ppapi/proxy/ppb_var_deprecated_proxy.cc

Issue 6282007: First pass at making the proxy handle multiple renderers. This associates the... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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/proxy/ppb_url_response_info_proxy.cc ('k') | ppapi/proxy/ppp_instance_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/ppb_var_deprecated_proxy.cc
===================================================================
--- ppapi/proxy/ppb_var_deprecated_proxy.cc (revision 71973)
+++ ppapi/proxy/ppb_var_deprecated_proxy.cc (working copy)
@@ -23,24 +23,24 @@
// PPP_Var_Deprecated plugin ---------------------------------------------------
void AddRefVar(PP_Var var) {
- PluginDispatcher::Get()->plugin_var_tracker()->AddRef(var);
+ PluginVarTracker::GetInstance()->AddRef(var);
}
void ReleaseVar(PP_Var var) {
- PluginDispatcher::Get()->plugin_var_tracker()->Release(var);
+ PluginVarTracker::GetInstance()->Release(var);
}
PP_Var VarFromUtf8(PP_Module module, const char* data, uint32_t len) {
PP_Var ret;
ret.type = PP_VARTYPE_STRING;
- ret.value.as_id = PluginDispatcher::Get()->plugin_var_tracker()->MakeString(
+ ret.value.as_id = PluginVarTracker::GetInstance()->MakeString(
data, len);
return ret;
}
const char* VarToUtf8(PP_Var var, uint32_t* len) {
const std::string* str =
- PluginDispatcher::Get()->plugin_var_tracker()->GetExistingString(var);
+ PluginVarTracker::GetInstance()->GetExistingString(var);
if (str) {
*len = static_cast<uint32_t>(str->size());
return str->c_str();
« no previous file with comments | « ppapi/proxy/ppb_url_response_info_proxy.cc ('k') | ppapi/proxy/ppp_instance_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698