OLD | NEW |
| (Empty) |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_FILE_SYSTEM_BROWSER_FILE_SYSTEM_CONTEXT_H_ | |
6 #define CHROME_BROWSER_FILE_SYSTEM_BROWSER_FILE_SYSTEM_CONTEXT_H_ | |
7 | |
8 #include "base/ref_counted.h" | |
9 #include "base/scoped_ptr.h" | |
10 #include "chrome/browser/browser_thread.h" | |
11 #include "webkit/fileapi/sandboxed_file_system_context.h" | |
12 | |
13 class FilePath; | |
14 class GURL; | |
15 | |
16 // This is owned by profile and shared by all the FileSystemDispatcherHost | |
17 // that shared by the same profile. This class is just a thin wrapper around | |
18 // fileapi::SandboxedFileSystemContext. | |
19 class BrowserFileSystemContext | |
20 : public base::RefCountedThreadSafe<BrowserFileSystemContext, | |
21 BrowserThread::DeleteOnIOThread>, | |
22 public fileapi::SandboxedFileSystemContext { | |
23 public: | |
24 BrowserFileSystemContext(const FilePath& profile_path, bool is_incognito); | |
25 virtual ~BrowserFileSystemContext(); | |
26 | |
27 // Quota related methods. | |
28 void SetOriginQuotaUnlimited(const GURL& url); | |
29 void ResetOriginQuotaUnlimited(const GURL& url); | |
30 | |
31 private: | |
32 DISALLOW_IMPLICIT_CONSTRUCTORS(BrowserFileSystemContext); | |
33 }; | |
34 | |
35 #endif // CHROME_BROWSER_FILE_SYSTEM_BROWSER_FILE_SYSTEM_CONTEXT_H_ | |
OLD | NEW |