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

Unified Diff: webkit/fileapi/local_file_system_file_util.h

Issue 7174002: Change {Obfuscated|Local}FileSystemFileUtil non-Singleton to take an underlying *FileUtil. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Removed unnecessary lines from ChromeOS code. Created 9 years, 6 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/local_file_system_file_util.h
diff --git a/webkit/fileapi/local_file_system_file_util.h b/webkit/fileapi/local_file_system_file_util.h
index 8b18f68e4e8bfd0588d74c84cae5264b9d3239a3..0f91be9f5d0765ba63f1ce569dd405aa66c588b4 100644
--- a/webkit/fileapi/local_file_system_file_util.h
+++ b/webkit/fileapi/local_file_system_file_util.h
@@ -13,7 +13,6 @@
#include "base/file_util_proxy.h"
#include "base/logging.h"
#include "base/memory/ref_counted.h"
-#include "base/memory/singleton.h"
#include "base/platform_file.h"
#include "base/tracked_objects.h"
#include "webkit/fileapi/file_system_file_util.h"
@@ -36,7 +35,7 @@ class FileSystemOperationContext;
class LocalFileSystemFileUtil : public FileSystemFileUtil {
public:
- static LocalFileSystemFileUtil* GetInstance();
+ explicit LocalFileSystemFileUtil(FileSystemFileUtil* underlying_file_util);
kinuko 2011/07/01 07:48:02 I'm a bit concerned about this asymmetry-- if I re
Dai Mikurube (NOT FULLTIME) 2011/07/04 06:14:53 Yeah, I have the same concern. ObfuscatedFSFU, ho
kinuko 2011/07/05 03:13:02 Ok. Let me make sure, after this change only the
Dai Mikurube (NOT FULLTIME) 2011/07/05 05:30:11 Ok, added comments on {Local|Obfuscated}FileSystem
virtual PlatformFileError CreateOrOpen(
FileSystemOperationContext* context,
@@ -118,9 +117,6 @@ class LocalFileSystemFileUtil : public FileSystemFileUtil {
const FilePath& root_path);
protected:
- LocalFileSystemFileUtil() { }
-
- friend struct DefaultSingletonTraits<LocalFileSystemFileUtil>;
DISALLOW_COPY_AND_ASSIGN(LocalFileSystemFileUtil);
private:
@@ -131,6 +127,8 @@ class LocalFileSystemFileUtil : public FileSystemFileUtil {
const GURL& origin_url,
FileSystemType type,
const FilePath& virtual_path);
+
+ FileSystemFileUtil* underlying_file_util_;
};
} // namespace fileapi

Powered by Google App Engine
This is Rietveld 408576698