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

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

Issue 21966004: Pepper: Move FileRef to the "new" resource proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes for dmichael 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
Index: content/renderer/pepper/pepper_file_io_host.h
diff --git a/content/renderer/pepper/pepper_file_io_host.h b/content/renderer/pepper/pepper_file_io_host.h
index 1d3dbbddc40d6d4585e7e051b9d426d232b91288..eb94a9464aa602e7d270539e0cbb5b2a98fdfe0c 100644
--- a/content/renderer/pepper/pepper_file_io_host.h
+++ b/content/renderer/pepper/pepper_file_io_host.h
@@ -19,6 +19,7 @@
#include "ppapi/host/host_message_context.h"
#include "ppapi/host/resource_host.h"
#include "ppapi/shared_impl/file_io_state_manager.h"
+#include "ppapi/shared_impl/file_ref_detailed_info.h"
#include "ppapi/thunk/ppb_file_ref_api.h"
#include "url/gurl.h"
#include "webkit/common/quota/quota_types.h"
@@ -26,7 +27,9 @@
using ppapi::host::ReplyMessageContext;
namespace content {
+class PepperPluginInstanceImpl;
class QuotaFileIO;
+class RendererPpapiHostImpl;
class PepperFileIOHost : public ppapi::host::ResourceHost,
public base::SupportsWeakPtr<PepperFileIOHost>,
@@ -35,7 +38,7 @@ class PepperFileIOHost : public ppapi::host::ResourceHost,
typedef base::Callback<void (base::PlatformFileError)>
NotifyCloseFileCallback;
- PepperFileIOHost(RendererPpapiHost* host,
+ PepperFileIOHost(RendererPpapiHostImpl* host,
PP_Instance instance,
PP_Resource resource);
virtual ~PepperFileIOHost();
@@ -83,6 +86,11 @@ class PepperFileIOHost : public ppapi::host::ResourceHost,
int32_t OnHostMsgWillSetLength(ppapi::host::HostMessageContext* context,
int64_t length);
+ void DidGetFileRefInfo(
+ ppapi::host::ReplyMessageContext reply_context,
+ int flags,
+ const std::vector<ppapi::FileRefDetailedInfo>& infos);
+
// Callback handlers. These mostly convert the PlatformFileError to the
// PP_Error code and send back the reply. Note that the argument
// ReplyMessageContext is copied so that we have a closure containing all
@@ -108,6 +116,8 @@ class PepperFileIOHost : public ppapi::host::ResourceHost,
base::PlatformFileError error_code,
int bytes_written);
+ RendererPpapiHostImpl* host_;
+ PepperPluginInstanceImpl* plugin_instance_;
base::PlatformFile file_;
// The file system type specified in the Open() call. This will be

Powered by Google App Engine
This is Rietveld 408576698