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

Unified Diff: content/renderer/pepper/ppb_broker_impl.cc

Issue 20777009: A few more cleanups to the pepper code. Dispatch IPCs in the sockets implementations directly by ha… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix browsertest Created 7 years, 4 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 | « content/renderer/pepper/ppb_audio_impl.cc ('k') | content/renderer/pepper/ppb_buffer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/ppb_broker_impl.cc
===================================================================
--- content/renderer/pepper/ppb_broker_impl.cc (revision 215615)
+++ content/renderer/pepper/ppb_broker_impl.cc (working copy)
@@ -6,11 +6,11 @@
#include "base/logging.h"
#include "content/renderer/pepper/common.h"
+#include "content/renderer/pepper/host_globals.h"
#include "content/renderer/pepper/pepper_broker.h"
#include "content/renderer/pepper/pepper_helper_impl.h"
#include "content/renderer/pepper/pepper_plugin_instance_impl.h"
#include "content/renderer/pepper/plugin_module.h"
-#include "content/renderer/pepper/resource_helper.h"
#include "ppapi/c/pp_errors.h"
#include "ppapi/shared_impl/platform_file.h"
#include "third_party/WebKit/public/web/WebDocument.h"
@@ -56,7 +56,7 @@
}
PepperPluginInstanceImpl* plugin_instance =
- ResourceHelper::GetPluginInstance(this);
+ HostGlobals::Get()->GetInstance(pp_instance());
if (!plugin_instance)
return PP_ERROR_FAILED;
@@ -84,7 +84,7 @@
GURL PPB_Broker_Impl::GetDocumentUrl() {
PepperPluginInstanceImpl* plugin_instance =
- ResourceHelper::GetPluginInstance(this);
+ HostGlobals::Get()->GetInstance(pp_instance());
return plugin_instance->container()->element().document().url();
}
« no previous file with comments | « content/renderer/pepper/ppb_audio_impl.cc ('k') | content/renderer/pepper/ppb_buffer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698