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

Unified Diff: webkit/fileapi/file_system_util.cc

Issue 9016020: Cleanup FileSystemOperation for preparing for adding FSO-factory method (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 11 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
« no previous file with comments | « webkit/fileapi/file_system_util.h ('k') | webkit/fileapi/local_file_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/file_system_util.cc
diff --git a/webkit/fileapi/file_system_util.cc b/webkit/fileapi/file_system_util.cc
index b6dfe120cc97d1653f1d80232ca1d528a6046a90..434c15e0976571f7a6105381c80302126982248d 100644
--- a/webkit/fileapi/file_system_util.cc
+++ b/webkit/fileapi/file_system_util.cc
@@ -96,8 +96,7 @@ bool CrackFileSystemURL(const GURL& url, GURL* origin_url, FileSystemType* type,
return true;
}
-GURL GetFileSystemRootURI(
- const GURL& origin_url, fileapi::FileSystemType type) {
+GURL GetFileSystemRootURI(const GURL& origin_url, FileSystemType type) {
std::string path("filesystem:");
path += origin_url.spec();
switch (type) {
@@ -117,6 +116,13 @@ GURL GetFileSystemRootURI(
return GURL(path);
}
+std::string GetFileSystemName(const GURL& origin_url, FileSystemType type) {
+ std::string origin_identifier = GetOriginIdentifierFromURL(origin_url);
+ std::string type_string = GetFileSystemTypeString(type);
+ DCHECK(!type_string.empty());
+ return origin_identifier + ":" + type_string;
+}
+
FileSystemType QuotaStorageTypeToFileSystemType(
quota::StorageType storage_type) {
switch (storage_type) {
« no previous file with comments | « webkit/fileapi/file_system_util.h ('k') | webkit/fileapi/local_file_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698