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

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

Issue 20987009: Rename PepperPluginDelegateImpl to PepperHelperImpl after getting rid of the PluginDelegate interfa… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 5 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/pepper_browser_connection.cc ('k') | content/renderer/pepper/pepper_helper_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/pepper_file_io_host.cc
===================================================================
--- content/renderer/pepper/pepper_file_io_host.cc (revision 214411)
+++ content/renderer/pepper/pepper_file_io_host.cc (working copy)
@@ -16,7 +16,7 @@
#include "content/public/common/content_client.h"
#include "content/public/renderer/content_renderer_client.h"
#include "content/renderer/pepper/host_globals.h"
-#include "content/renderer/pepper/pepper_plugin_delegate_impl.h"
+#include "content/renderer/pepper/pepper_helper_impl.h"
#include "content/renderer/pepper/pepper_plugin_instance_impl.h"
#include "content/renderer/pepper/ppb_file_ref_impl.h"
#include "content/renderer/pepper/quota_file_io.h"
@@ -229,12 +229,11 @@
base::Bind(&DidOpenFileSystemURL, callback),
base::Bind(&DidFailOpenFileSystemURL, callback));
} else {
- PepperPluginDelegateImpl* plugin_delegate =
- static_cast<PepperPluginInstanceImpl*>(
- PepperPluginInstance::Get(pp_instance()))->delegate();
- if (file_system_type_ != PP_FILESYSTEMTYPE_EXTERNAL || !plugin_delegate)
+ PepperHelperImpl* helper = static_cast<PepperPluginInstanceImpl*>(
+ PepperPluginInstance::Get(pp_instance()))->helper();
+ if (file_system_type_ != PP_FILESYSTEMTYPE_EXTERNAL || !helper)
return PP_ERROR_FAILED;
- if (!plugin_delegate->AsyncOpenFile(
+ if (!helper->AsyncOpenFile(
file_ref->GetSystemPath(), flags,
base::Bind(&PepperFileIOHost::ExecutePlatformOpenFileCallback,
weak_factory_.GetWeakPtr(),
« no previous file with comments | « content/renderer/pepper/pepper_browser_connection.cc ('k') | content/renderer/pepper/pepper_helper_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698