summaryrefslogtreecommitdiffstats
path: root/webkit/browser/fileapi/file_system_context.h
diff options
context:
space:
mode:
authornhiroki@chromium.org <nhiroki@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-13 17:33:21 +0000
committernhiroki@chromium.org <nhiroki@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-13 17:33:21 +0000
commite83ae9b5d2bfd9985a7631520631b2d97665c9fa (patch)
tree07b755c519fec0be212811ed0242e15c2f3bd073 /webkit/browser/fileapi/file_system_context.h
parentcb563fc32f3cc084d4454f95b6e6ab9281af5ad2 (diff)
downloadchromium_src-e83ae9b5d2bfd9985a7631520631b2d97665c9fa.zip
chromium_src-e83ae9b5d2bfd9985a7631520631b2d97665c9fa.tar.gz
chromium_src-e83ae9b5d2bfd9985a7631520631b2d97665c9fa.tar.bz2
FileAPI: Modify PluginPrivateFileSystemBackend
This modifies PluginPrivateFileSystemBackend to adapt to Pepper side change [*]. - Does not call RegisterFileSystem in the backend side. That will be called from PepperIsolatedFileSystemMessageFilter instead. - Changing callback signature for the OpenPluginPrivateFileSystem since the caller does not need origin_url and filesystem_id. [*] https://codereview.chromium.org/26803004/ BUG=286240 TEST=content_unittests --gtest_filter=PluginPrivateFileSystemBackendTest.* TBR=kinuko@chromium.org Review URL: https://codereview.chromium.org/68513011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@234841 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/browser/fileapi/file_system_context.h')
-rw-r--r--webkit/browser/fileapi/file_system_context.h16
1 files changed, 5 insertions, 11 deletions
diff --git a/webkit/browser/fileapi/file_system_context.h b/webkit/browser/fileapi/file_system_context.h
index 745bdae..b7a4a94 100644
--- a/webkit/browser/fileapi/file_system_context.h
+++ b/webkit/browser/fileapi/file_system_context.h
@@ -174,15 +174,8 @@ class WEBKIT_STORAGE_BROWSER_EXPORT FileSystemContext
const base::FilePath& file_path,
bool is_directory)> ResolveURLCallback;
- // Used for DeleteFileSystem.
- typedef base::Callback<void(base::PlatformFileError result)>
- DeleteFileSystemCallback;
-
- // Used for OpenPluginPrivateFileSystem.
- typedef base::Callback<void(const GURL& root,
- const std::string& filesystem_id,
- base::PlatformFileError result)>
- OpenPluginPrivateFileSystemCallback;
+ // Used for DeleteFileSystem and OpenPluginPrivateFileSystem.
+ typedef base::Callback<void(base::PlatformFileError result)> StatusCallback;
// Opens the filesystem for the given |origin_url| and |type|, and dispatches
// |callback| on completion.
@@ -207,7 +200,7 @@ class WEBKIT_STORAGE_BROWSER_EXPORT FileSystemContext
void DeleteFileSystem(
const GURL& origin_url,
FileSystemType type,
- const DeleteFileSystemCallback& callback);
+ const StatusCallback& callback);
// Creates new FileStreamReader instance to read a file pointed by the given
// filesystem URL |url| starting from |offset|. |expected_modification_time|
@@ -269,9 +262,10 @@ class WEBKIT_STORAGE_BROWSER_EXPORT FileSystemContext
void OpenPluginPrivateFileSystem(
const GURL& origin_url,
FileSystemType type,
+ const std::string& filesystem_id,
const std::string& plugin_id,
OpenFileSystemMode mode,
- const OpenPluginPrivateFileSystemCallback& callback);
+ const StatusCallback& callback);
private:
typedef std::map<FileSystemType, FileSystemBackend*>