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

Unified Diff: ppapi/proxy/plugin_proxy_delegate.h

Issue 10387195: Open pepper files directly in browser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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: ppapi/proxy/plugin_proxy_delegate.h
===================================================================
--- ppapi/proxy/plugin_proxy_delegate.h (revision 138610)
+++ ppapi/proxy/plugin_proxy_delegate.h (working copy)
@@ -5,6 +5,9 @@
#ifndef PPAPI_PROXY_PLUGIN_PROXY_DELEGATE_H_
#define PPAPI_PROXY_PLUGIN_PROXY_DELEGATE_H_
+#include "ppapi/c/pp_file_info.h"
+#include "ppapi/c/private/ppb_flash_file.h"
+
namespace ppapi {
namespace proxy {
@@ -16,6 +19,25 @@
// IPC::Message::Sender interface.
virtual bool SendToBrowser(IPC::Message* msg) = 0;
+ // Send flash file messages to the browser, converting between PPAPI types
+ // and the equivalent platform types.
+ virtual int32_t SendOpenFileRequestToBrowser(
+ const char* path, int32_t mode, PP_FileHandle* file) = 0;
+
+ virtual int32_t SendRenameFileRequestToBrowser(
+ const char* from_path, const char* to_path) = 0;
+
+ virtual int32_t SendDeleteFileOrDirRequestToBrowser(
+ const char* path, PP_Bool recursive) = 0;
+
+ virtual int32_t SendCreateDirRequestToBrowser(const char* path) = 0;
+
+ virtual int32_t SendQueryFileRequestToBrowser(
+ const char* path, PP_FileInfo* info) = 0;
+
+ virtual int32_t SendGetDirContentsRequestToBrowser(
+ const char* path, PP_DirContents_Dev** contents) = 0;
+
// Performs Windows-specific font caching in the browser for the given
// LOGFONTW. Does nothing on non-Windows platforms.
virtual void PreCacheFont(const void* logfontw) = 0;

Powered by Google App Engine
This is Rietveld 408576698