summaryrefslogtreecommitdiffstats
path: root/webkit/plugins/ppapi/ppapi_plugin_instance.cc
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/plugins/ppapi/ppapi_plugin_instance.cc')
-rw-r--r--webkit/plugins/ppapi/ppapi_plugin_instance.cc15
1 files changed, 6 insertions, 9 deletions
diff --git a/webkit/plugins/ppapi/ppapi_plugin_instance.cc b/webkit/plugins/ppapi/ppapi_plugin_instance.cc
index 6e3be13..5ec687d 100644
--- a/webkit/plugins/ppapi/ppapi_plugin_instance.cc
+++ b/webkit/plugins/ppapi/ppapi_plugin_instance.cc
@@ -62,7 +62,6 @@
#include "webkit/plugins/ppapi/common.h"
#include "webkit/plugins/ppapi/event_conversion.h"
#include "webkit/plugins/ppapi/fullscreen_container.h"
-#include "webkit/plugins/ppapi/host_globals.h"
#include "webkit/plugins/ppapi/message_channel.h"
#include "webkit/plugins/ppapi/npapi_glue.h"
#include "webkit/plugins/ppapi/plugin_delegate.h"
@@ -103,7 +102,6 @@
using base::StringPrintf;
using ppapi::InputEventImpl;
-using ppapi::PpapiGlobals;
using ppapi::StringVar;
using ppapi::thunk::EnterResourceNoLock;
using ppapi::thunk::PPB_Buffer_API;
@@ -244,8 +242,7 @@ void RectToPPRect(const gfx::Rect& input, PP_Rect* output) {
// unchanged.
bool SecurityOriginForInstance(PP_Instance instance_id,
WebKit::WebSecurityOrigin* security_origin) {
- PluginInstance* instance =
- HostGlobals::Get()->host_resource_tracker()->GetInstance(instance_id);
+ PluginInstance* instance = ResourceTracker::Get()->GetInstance(instance_id);
if (!instance)
return false;
@@ -309,7 +306,7 @@ PluginInstance::PluginInstance(
text_input_caret_bounds_(0, 0, 0, 0),
text_input_caret_set_(false),
lock_mouse_callback_(PP_BlockUntilComplete()) {
- pp_instance_ = HostGlobals::Get()->host_resource_tracker()->AddInstance(this);
+ pp_instance_ = ResourceTracker::Get()->AddInstance(this);
memset(&current_print_settings_, 0, sizeof(current_print_settings_));
DCHECK(delegate);
@@ -338,7 +335,7 @@ PluginInstance::~PluginInstance() {
delegate_->InstanceDeleted(this);
module_->InstanceDeleted(this);
- HostGlobals::Get()->host_resource_tracker()->InstanceDeleted(pp_instance_);
+ ResourceTracker::Get()->InstanceDeleted(pp_instance_);
}
// NOTE: Any of these methods that calls into the plugin needs to take into
@@ -426,7 +423,7 @@ void PluginInstance::CommitBackingTexture() {
void PluginInstance::InstanceCrashed() {
// Force free all resources and vars.
- HostGlobals::Get()->host_resource_tracker()->InstanceCrashed(pp_instance());
+ ResourceTracker::Get()->InstanceCrashed(pp_instance());
// Free any associated graphics.
SetFullscreen(false, false);
@@ -873,7 +870,7 @@ string16 PluginInstance::GetSelectedText(bool html) {
if (string)
selection = UTF8ToUTF16(string->value());
// Release the ref the plugin transfered to us.
- HostGlobals::Get()->GetVarTracker()->ReleaseVar(rv);
+ ResourceTracker::Get()->GetVarTracker()->ReleaseVar(rv);
return selection;
}
@@ -892,7 +889,7 @@ string16 PluginInstance::GetLinkAtPosition(const gfx::Point& point) {
if (string)
link = UTF8ToUTF16(string->value());
// Release the ref the plugin transfered to us.
- PpapiGlobals::Get()->GetVarTracker()->ReleaseVar(rv);
+ ResourceTracker::Get()->GetVarTracker()->ReleaseVar(rv);
return link;
}