diff options
author | kinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-31 09:37:30 +0000 |
---|---|---|
committer | kinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-31 09:37:30 +0000 |
commit | 14480507aba23c88ae26d6412e230e71bd784579 (patch) | |
tree | e0264232a511c8b8c6cde931cdd3ac56da3f9dc4 /content/child/fileapi/webfilesystem_callback_adapters.cc | |
parent | 975bd00bf0a20f6c45e16a914d24f2218d896b76 (diff) | |
download | chromium_src-14480507aba23c88ae26d6412e230e71bd784579.zip chromium_src-14480507aba23c88ae26d6412e230e71bd784579.tar.gz chromium_src-14480507aba23c88ae26d6412e230e71bd784579.tar.bz2 |
Revert 214599 "Revert 214160 "Implement Worker-MainThread bridge..."
> Revert 214160 "Implement Worker-MainThread bridge for FileSystem..."
>
> Suspected to have performance regression, let's see if this changes anything
>
> BUG=265658
>
> > Implement Worker-MainThread bridge for FileSystem API in Chrome
> >
> > This basically adds the same worker/mainThread bridge functionality
> > for FileSystem API in Chrome side.
> >
> > Keeping bridge code around is suboptimal, but this allows us to remove
> > bridge code in Blink side which in turn allows us to make further
> > worker-related cleanups in Blink.
> >
> > This change doesn't contain FileWriter related changes yet.
> > (For reference, combined patch is uploaded here:
> > https://codereview.chromium.org/19287010/)
> >
> > BUG=257349
> > TEST=no behavioral changes yet
> > R=atwilson@chromium.org, jochen@chromium.org, michaeln@chromium.org, tzik@chromium.org
> >
> > Review URL: https://codereview.chromium.org/19387002
>
> TBR=kinuko@chromium.org
>
> Review URL: https://codereview.chromium.org/21334002
TBR=kinuko@chromium.org
Review URL: https://codereview.chromium.org/21008006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@214654 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/child/fileapi/webfilesystem_callback_adapters.cc')
-rw-r--r-- | content/child/fileapi/webfilesystem_callback_adapters.cc | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/content/child/fileapi/webfilesystem_callback_adapters.cc b/content/child/fileapi/webfilesystem_callback_adapters.cc index a6e7187..de5a59c 100644 --- a/content/child/fileapi/webfilesystem_callback_adapters.cc +++ b/content/child/fileapi/webfilesystem_callback_adapters.cc @@ -35,37 +35,6 @@ void FileStatusCallbackAdapter( callbacks->didFail(::fileapi::PlatformFileErrorToWebFileError(error)); } -void ReadMetadataCallbackAdapter( - WebKit::WebFileSystemCallbacks* callbacks, - const base::PlatformFileInfo& file_info) { - WebFileInfo web_file_info; - webkit_glue::PlatformFileInfoToWebFileInfo(file_info, &web_file_info); - callbacks->didReadMetadata(web_file_info); -} - -void CreateSnapshotFileCallbackAdapter( - WebKit::WebFileSystemCallbacks* callbacks, - const base::PlatformFileInfo& file_info, - const base::FilePath& platform_path) { - WebFileInfo web_file_info; - webkit_glue::PlatformFileInfoToWebFileInfo(file_info, &web_file_info); - web_file_info.platformPath = platform_path.AsUTF16Unsafe(); - callbacks->didCreateSnapshotFile(web_file_info); -} - -void ReadDirectoryCallbackAdapater( - WebKit::WebFileSystemCallbacks* callbacks, - const std::vector<fileapi::DirectoryEntry>& entries, - bool has_more) { - WebVector<WebFileSystemEntry> file_system_entries(entries.size()); - for (size_t i = 0; i < entries.size(); i++) { - file_system_entries[i].name = - base::FilePath(entries[i].name).AsUTF16Unsafe(); - file_system_entries[i].isDirectory = entries[i].is_directory; - } - callbacks->didReadDirectory(file_system_entries, has_more); -} - void OpenFileSystemCallbackAdapter( WebKit::WebFileSystemCallbacks* callbacks, const std::string& name, const GURL& root) { |