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

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

Issue 8344025: Add a new globals object for PPAPI tracking information. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' 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/ppb_flash_file_impl.cc ('k') | webkit/plugins/ppapi/ppb_proxy_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/ppb_flash_impl.cc
===================================================================
--- webkit/plugins/ppapi/ppb_flash_impl.cc (revision 106515)
+++ webkit/plugins/ppapi/ppb_flash_impl.cc (working copy)
@@ -14,6 +14,7 @@
#include "ppapi/shared_impl/var.h"
#include "ppapi/thunk/enter.h"
#include "webkit/plugins/ppapi/common.h"
+#include "webkit/plugins/ppapi/host_globals.h"
#include "webkit/plugins/ppapi/plugin_delegate.h"
#include "webkit/plugins/ppapi/plugin_module.h"
#include "webkit/plugins/ppapi/ppapi_plugin_instance.h"
@@ -32,14 +33,16 @@
namespace {
void SetInstanceAlwaysOnTop(PP_Instance pp_instance, PP_Bool on_top) {
- PluginInstance* instance = ResourceTracker::Get()->GetInstance(pp_instance);
+ PluginInstance* instance =
+ HostGlobals::Get()->host_resource_tracker()->GetInstance(pp_instance);
if (!instance)
return;
instance->set_always_on_top(PPBoolToBool(on_top));
}
PP_Var GetProxyForURL(PP_Instance pp_instance, const char* url) {
- PluginInstance* instance = ResourceTracker::Get()->GetInstance(pp_instance);
+ PluginInstance* instance =
+ HostGlobals::Get()->host_resource_tracker()->GetInstance(pp_instance);
if (!instance)
return PP_MakeUndefined();
@@ -83,7 +86,8 @@
}
double GetLocalTimeZoneOffset(PP_Instance pp_instance, PP_Time t) {
- PluginInstance* instance = ResourceTracker::Get()->GetInstance(pp_instance);
+ PluginInstance* instance =
+ HostGlobals::Get()->host_resource_tracker()->GetInstance(pp_instance);
if (!instance)
return 0.0;
@@ -101,7 +105,8 @@
}
PP_Var GetCommandLineArgs(PP_Module pp_module) {
- PluginModule* module = ResourceTracker::Get()->GetModule(pp_module);
+ PluginModule* module =
+ HostGlobals::Get()->host_resource_tracker()->GetModule(pp_module);
if (!module)
return PP_MakeUndefined();
Property changes on: webkit/plugins/ppapi/ppb_flash_impl.cc
___________________________________________________________________
Deleted: svn:mergeinfo
Reverse-merged /branches/chrome_webkit_merge_branch/src/webkit/plugins/ppapi/ppb_flash_impl.cc:r3734-4217,4606-5108,5177-5263
« no previous file with comments | « webkit/plugins/ppapi/ppb_flash_file_impl.cc ('k') | webkit/plugins/ppapi/ppb_proxy_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698