diff options
author | mkwst@chromium.org <mkwst@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-07 11:51:39 +0000 |
---|---|---|
committer | mkwst@chromium.org <mkwst@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-07 11:51:39 +0000 |
commit | cdba4699875214b1fb6561a65a582f4a3c04b8c5 (patch) | |
tree | 2247db362b8fd941edfc524b983f306fa327bca2 /webkit | |
parent | 597f841a049a917b9ca35b8d461619773c8b5c58 (diff) | |
download | chromium_src-cdba4699875214b1fb6561a65a582f4a3c04b8c5.zip chromium_src-cdba4699875214b1fb6561a65a582f4a3c04b8c5.tar.gz chromium_src-cdba4699875214b1fb6561a65a582f4a3c04b8c5.tar.bz2 |
Integrate file systems with BrowsingDataRemover
The functionality desired isn't entirely clear. This CL takes care of the bits that everyone agrees on: when a user deletes her browsing data "since the beginning of time" both persistent and temporary filesystems are removed entirely. What we do for other time periods is still up in the air.
BUG=63700
TEST=unit_tests
Review URL: http://codereview.chromium.org/7087020
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88119 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r-- | webkit/fileapi/file_system_file_util.h | 16 | ||||
-rw-r--r-- | webkit/fileapi/local_file_system_file_util.h | 6 | ||||
-rw-r--r-- | webkit/fileapi/obfuscated_file_system_file_util.h | 1 |
3 files changed, 11 insertions, 12 deletions
diff --git a/webkit/fileapi/file_system_file_util.h b/webkit/fileapi/file_system_file_util.h index d6b72e6..f489490 100644 --- a/webkit/fileapi/file_system_file_util.h +++ b/webkit/fileapi/file_system_file_util.h @@ -230,6 +230,14 @@ class FileSystemFileUtil { virtual bool IsDirectory() { return false; } }; + // Returns a pointer to a new instance of AbstractFileEnumerator which is + // implemented for each FileUtil subclass. The instance needs to be freed + // by the caller, and its lifetime should not extend past when the current + // call returns to the main FILE message loop. + virtual AbstractFileEnumerator* CreateFileEnumerator( + FileSystemOperationContext* unused, + const FilePath& root_path); + protected: FileSystemFileUtil() { } @@ -272,14 +280,6 @@ class FileSystemFileUtil { const FilePath& dest_file_path, bool copy); - // Returns a pointer to a new instance of AbstractFileEnumerator which is - // implemented for each FileUtil subclass. The instance needs to be freed - // by the caller, and its lifetime should not extend past when the current - // call returns to the main FILE message loop. - virtual AbstractFileEnumerator* CreateFileEnumerator( - FileSystemOperationContext* unused, - const FilePath& root_path); - friend struct DefaultSingletonTraits<FileSystemFileUtil>; DISALLOW_COPY_AND_ASSIGN(FileSystemFileUtil); }; diff --git a/webkit/fileapi/local_file_system_file_util.h b/webkit/fileapi/local_file_system_file_util.h index a7af395..8b18f68 100644 --- a/webkit/fileapi/local_file_system_file_util.h +++ b/webkit/fileapi/local_file_system_file_util.h @@ -113,13 +113,13 @@ class LocalFileSystemFileUtil : public FileSystemFileUtil { FileSystemOperationContext* context, const FilePath& file_path); - protected: - LocalFileSystemFileUtil() { } - virtual AbstractFileEnumerator* CreateFileEnumerator( FileSystemOperationContext* context, const FilePath& root_path); + protected: + LocalFileSystemFileUtil() { } + friend struct DefaultSingletonTraits<LocalFileSystemFileUtil>; DISALLOW_COPY_AND_ASSIGN(LocalFileSystemFileUtil); diff --git a/webkit/fileapi/obfuscated_file_system_file_util.h b/webkit/fileapi/obfuscated_file_system_file_util.h index e69c49a..88caa65 100644 --- a/webkit/fileapi/obfuscated_file_system_file_util.h +++ b/webkit/fileapi/obfuscated_file_system_file_util.h @@ -172,7 +172,6 @@ class ObfuscatedFileSystemFileUtil : public FileSystemFileUtil, // object. AbstractOriginEnumerator* CreateOriginEnumerator(); - protected: virtual AbstractFileEnumerator* CreateFileEnumerator( FileSystemOperationContext* context, const FilePath& root_path) OVERRIDE; |