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

Unified Diff: webkit/fileapi/obfuscated_file_util.h

Issue 10164025: Add UMA stats for ObfuscatedFileUtil::GetDirectoryForOriginAndTypes(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: label rename Created 8 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
« no previous file with comments | « no previous file | webkit/fileapi/obfuscated_file_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/obfuscated_file_util.h
diff --git a/webkit/fileapi/obfuscated_file_util.h b/webkit/fileapi/obfuscated_file_util.h
index 29fc5ea67932407505f9a9011a2b005dac51542d..d967ca85c15cdc09fba8cbb9302fdfbf67121e78 100644
--- a/webkit/fileapi/obfuscated_file_util.h
+++ b/webkit/fileapi/obfuscated_file_util.h
@@ -43,9 +43,9 @@ class FileSystemOperationContext;
// SandboxMountPointProvider [and the task it uses to drop the reference] and
// SandboxMountPointProvider::GetFileSystemRootPathTask. Without that last one,
// we wouldn't need ref counting.
-class ObfuscatedFileUtil :
- public FileSystemFileUtil,
- public base::RefCountedThreadSafe<ObfuscatedFileUtil> {
+class ObfuscatedFileUtil
+ : public FileSystemFileUtil,
+ public base::RefCountedThreadSafe<ObfuscatedFileUtil> {
public:
// Origin enumerator interface.
// An instance of this interface is assumed to be called on the file thread.
@@ -146,7 +146,17 @@ class ObfuscatedFileUtil :
// contain both the directory database's files and all the backing file
// subdirectories.
FilePath GetDirectoryForOriginAndType(
- const GURL& origin, FileSystemType type, bool create);
+ const GURL& origin,
+ FileSystemType type,
+ bool create,
+ base::PlatformFileError* error_code);
+
+ FilePath GetDirectoryForOriginAndType(
+ const GURL& origin,
+ FileSystemType type,
+ bool create) {
+ return GetDirectoryForOriginAndType(origin, type, create, NULL);
+ }
// Deletes the topmost directory specific to this origin and type. This will
// delete its directory database.
@@ -248,7 +258,9 @@ class ObfuscatedFileUtil :
// Gets the topmost directory specific to this origin. This will
// contain both the filesystem type subdirectories.
- FilePath GetDirectoryForOrigin(const GURL& origin, bool create);
+ FilePath GetDirectoryForOrigin(const GURL& origin,
+ bool create,
+ base::PlatformFileError* error_code);
void MarkUsed();
void DropDatabases();
« no previous file with comments | « no previous file | webkit/fileapi/obfuscated_file_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698