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

Unified Diff: webkit/plugins/ppapi/plugin_delegate.h

Issue 13726024: Refactor FileSystem (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: NON_EXPORTED_BASE Created 7 years, 8 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 | « webkit/plugins/ppapi/mock_plugin_delegate.cc ('k') | webkit/plugins/ppapi/ppb_file_ref_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/plugin_delegate.h
diff --git a/webkit/plugins/ppapi/plugin_delegate.h b/webkit/plugins/ppapi/plugin_delegate.h
index 8b8a10909d293f56e13751734b43e2ac231af2e3..95c1be65139faa987d429418280604e10a44b25d 100644
--- a/webkit/plugins/ppapi/plugin_delegate.h
+++ b/webkit/plugins/ppapi/plugin_delegate.h
@@ -24,6 +24,7 @@
#include "ppapi/c/dev/ppb_device_ref_dev.h"
#include "ppapi/c/pp_completion_callback.h"
#include "ppapi/c/pp_errors.h"
+#include "ppapi/c/pp_file_info.h"
#include "ppapi/c/pp_instance.h"
#include "ppapi/c/pp_resource.h"
#include "ppapi/c/pp_stdint.h"
@@ -464,6 +465,17 @@ class PluginDelegate {
int flags,
const AsyncOpenFileCallback& callback) = 0;
+ // These functions expose some of PepperFileSystemHost methods for
+ // PPB_FileRef_Impl (which is in webkit) to access. Once we migrate FileRef
+ // to the new design in content/, we won't need this delegation.
+ // TODO(victorhsieh): remove these delegation.
+ virtual bool IsFileSystemOpened(PP_Instance instance,
+ PP_Resource resource) const = 0;
+ virtual PP_FileSystemType GetFileSystemType(PP_Instance instance,
+ PP_Resource resource) const = 0;
+ virtual GURL GetFileSystemRootUrl(PP_Instance instance,
+ PP_Resource resource) const = 0;
+
// Sends an async IPC to open a file through filesystem API.
// When a file is successfully opened, |callback| is invoked with
// PLATFORM_FILE_OK, the opened file handle, and a callback function for
@@ -482,11 +494,6 @@ class PluginDelegate {
int flags,
const AsyncOpenFileSystemURLCallback& callback) = 0;
- virtual bool OpenFileSystem(
- const GURL& origin_url,
- fileapi::FileSystemType type,
- long long size,
- fileapi::FileSystemCallbackDispatcher* dispatcher) = 0;
virtual bool MakeDirectory(
const GURL& path,
bool recursive,
@@ -658,6 +665,9 @@ class PluginDelegate {
base::PlatformFile handle,
base::ProcessId target_process_id,
bool should_close_source) const = 0;
+
+ // Returns true if running in process.
+ virtual bool IsRunningInProcess(PP_Instance instance) const = 0;
};
} // namespace ppapi
« no previous file with comments | « webkit/plugins/ppapi/mock_plugin_delegate.cc ('k') | webkit/plugins/ppapi/ppb_file_ref_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698