summaryrefslogtreecommitdiffstats
path: root/webkit/fileapi
diff options
context:
space:
mode:
authormichaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-15 21:07:57 +0000
committermichaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-15 21:07:57 +0000
commit6df15b3fb7493528e01770a4ef66266e1229d5f9 (patch)
tree2cce80cc201b233251c2c303264d0c7c422863a6 /webkit/fileapi
parent08351d95ed7b45863311807fbf9ace3b4a5e5231 (diff)
downloadchromium_src-6df15b3fb7493528e01770a4ef66266e1229d5f9.zip
chromium_src-6df15b3fb7493528e01770a4ef66266e1229d5f9.tar.gz
chromium_src-6df15b3fb7493528e01770a4ef66266e1229d5f9.tar.bz2
FileSystem mods: Changes to snapshot file creation to remove dependencies on blobs.
* Implementats of a new WebFileSystem::createSnapshotFileAndReadMetadata(...) method that does not take a blobURL as input and that invokes a new WebFileSystemCallbacks::didCreateSnapshotFile(...) in response instead of overloading the didReadMetadata callback for that purpose. * Leaves the existing handling in place since its still in use by WK. This CL is the 2nd in a series of changes that straddle webkit vs chromium repositories. 1) WK: Declare new virtual createSnapshotFile/didCreateSnapshotFile public api methods. 2) CR: Implement the new create method such that the didCreate method is invoked in response. 3) WK: Use the new create method and implement the new didCreate method. 3) CR: Cleanup the obsolete/deprecated blocks of code. BUG=174200 Review URL: https://chromiumcodereview.appspot.com/12084077 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182822 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/fileapi')
-rw-r--r--webkit/fileapi/file_system_callback_dispatcher.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/webkit/fileapi/file_system_callback_dispatcher.h b/webkit/fileapi/file_system_callback_dispatcher.h
index 990e633..bf5e7ea 100644
--- a/webkit/fileapi/file_system_callback_dispatcher.h
+++ b/webkit/fileapi/file_system_callback_dispatcher.h
@@ -32,6 +32,11 @@ class WEBKIT_STORAGE_EXPORT FileSystemCallbackDispatcher {
const base::PlatformFileInfo& file_info,
const base::FilePath& platform_path) = 0;
+ // Callback to report information for a file and its actual file path.
+ virtual void DidCreateSnapshotFile(
+ const base::PlatformFileInfo& file_info,
+ const base::FilePath& platform_path) = 0;
+
// Callback to report the contents of a directory. If the contents of
// the given directory are reported in one batch, then |entries| will have
// the list of all files/directories in the given directory, |has_more| will