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

Unified Diff: chrome/browser/file_system/browser_file_system_context.h

Issue 4054003: FileSystem code cleanup 2nd cut - introduce SandboxedFileSystemOperation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 10 years, 1 month 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: chrome/browser/file_system/browser_file_system_context.h
diff --git a/chrome/browser/file_system/browser_file_system_context.h b/chrome/browser/file_system/browser_file_system_context.h
index 661c65f2b2a6f9b78710f4a462739852e3418593..80821793c63731b22b156db32c24f9f3a2fe6063 100644
--- a/chrome/browser/file_system/browser_file_system_context.h
+++ b/chrome/browser/file_system/browser_file_system_context.h
@@ -8,35 +8,27 @@
#include "base/ref_counted.h"
#include "base/scoped_ptr.h"
#include "chrome/browser/browser_thread.h"
+#include "webkit/fileapi/sandboxed_file_system_context.h"
class FilePath;
class GURL;
-namespace fileapi {
-class FileSystemPathManager;
-class FileSystemQuotaManager;
-}
-
// This is owned by profile and shared by all the FileSystemDispatcherHost
-// that shared by the same profile.
+// that shared by the same profile. This class is just a thin wrapper around
+// fileapi::SandboxedFileSystemContext.
class BrowserFileSystemContext
: public base::RefCountedThreadSafe<BrowserFileSystemContext,
- BrowserThread::DeleteOnIOThread> {
+ BrowserThread::DeleteOnIOThread>,
+ public fileapi::SandboxedFileSystemContext {
public:
- BrowserFileSystemContext(const FilePath& data_path, bool is_incognito);
+ BrowserFileSystemContext(const FilePath& profile_path, bool is_incognito);
virtual ~BrowserFileSystemContext();
// Quota related methods.
- bool CheckOriginQuota(const GURL& url, int64 growth);
void SetOriginQuotaUnlimited(const GURL& url);
void ResetOriginQuotaUnlimited(const GURL& url);
- fileapi::FileSystemPathManager* path_manager() { return path_manager_.get(); }
-
private:
- scoped_ptr<fileapi::FileSystemQuotaManager> quota_manager_;
- scoped_ptr<fileapi::FileSystemPathManager> path_manager_;
-
DISALLOW_IMPLICIT_CONSTRUCTORS(BrowserFileSystemContext);
};

Powered by Google App Engine
This is Rietveld 408576698