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

Unified Diff: webkit/fileapi/sandbox_mount_point_provider.h

Issue 7057032: Integrated obfuscation with quota; all unit tests now pass (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Eliminated a vector copy Created 9 years, 7 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
Index: webkit/fileapi/sandbox_mount_point_provider.h
diff --git a/webkit/fileapi/sandbox_mount_point_provider.h b/webkit/fileapi/sandbox_mount_point_provider.h
index 60bd7fece56c0a87cb394824ba802b41dc1f7418..417aff8207e7590a2334be602a079e9bc873b625 100644
--- a/webkit/fileapi/sandbox_mount_point_provider.h
+++ b/webkit/fileapi/sandbox_mount_point_provider.h
@@ -96,20 +96,19 @@ class SandboxMountPointProvider
// specified by |origin_url|.
// (The path is similar to the origin's root path but doesn't contain
// the 'unique' and 'type' part.)
- // This method is portable and can be called on any thread.
- // TODO(ericu) obfuscated version for quota integration.
- FilePath GetBaseDirectoryForOrigin(const GURL& origin_url) const;
+ // This method can only be called on the file thread.
+ FilePath GetBaseDirectoryForOrigin(const GURL& origin_url, bool create) const;
// Gets a base directory path of the sandboxed filesystem that is
// specified by |origin_url| and |type|.
// (The path is similar to the origin's root path but doesn't contain
// the 'unique' part.)
// Returns an empty path if the given type is invalid.
- // This method is portable and can be called on any thread.
- // TODO(ericu) obfuscated version for quota integration.
+ // This method can only be called on the file thread.
FilePath GetBaseDirectoryForOriginAndType(
const GURL& origin_url,
- fileapi::FileSystemType type) const;
+ fileapi::FileSystemType type,
+ bool create) const;
FileSystemFileUtil* GetFileSystemFileUtil();
@@ -161,9 +160,6 @@ class SandboxMountPointProvider
const GURL& origin_url,
fileapi::FileSystemType type) const;
- FilePath GetFileSystemRootPathOnFileThread(
- const GURL& origin_url, FileSystemType type, bool create);
-
class GetFileSystemRootPathTask;
friend class FileSystemTestOriginHelper;
« no previous file with comments | « webkit/fileapi/obfuscated_file_system_file_util_unittest.cc ('k') | webkit/fileapi/sandbox_mount_point_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698