OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_CONTEXT_H_ | 5 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_CONTEXT_H_ |
6 #define WEBKIT_FILEAPI_FILE_SYSTEM_CONTEXT_H_ | 6 #define WEBKIT_FILEAPI_FILE_SYSTEM_CONTEXT_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "webkit/fileapi/file_system_types.h" | 10 #include "webkit/fileapi/file_system_types.h" |
11 #include "webkit/quota/special_storage_policy.h" | 11 #include "webkit/quota/special_storage_policy.h" |
12 | 12 |
13 class FilePath; | 13 class FilePath; |
14 class GURL; | 14 class GURL; |
15 | 15 |
16 namespace base { | 16 namespace base { |
17 class MessageLoopProxy; | 17 class MessageLoopProxy; |
18 } | 18 } |
19 | 19 |
20 namespace quota { | 20 namespace quota { |
21 class QuotaClient; | |
22 class QuotaManagerProxy; | 21 class QuotaManagerProxy; |
23 } | 22 } |
24 | 23 |
25 namespace fileapi { | 24 namespace fileapi { |
26 | 25 |
27 class FileSystemContext; | 26 class FileSystemContext; |
28 class FileSystemPathManager; | 27 class FileSystemPathManager; |
29 class FileSystemQuotaUtil; | 28 class FileSystemQuotaUtil; |
30 class FileSystemUsageTracker; | |
31 class SandboxMountPointProvider; | 29 class SandboxMountPointProvider; |
32 | 30 |
33 struct DefaultContextDeleter; | 31 struct DefaultContextDeleter; |
34 | 32 |
35 // This class keeps and provides a file system context for FileSystem API. | 33 // This class keeps and provides a file system context for FileSystem API. |
36 class FileSystemContext | 34 class FileSystemContext |
37 : public base::RefCountedThreadSafe<FileSystemContext, | 35 : public base::RefCountedThreadSafe<FileSystemContext, |
38 DefaultContextDeleter> { | 36 DefaultContextDeleter> { |
39 public: | 37 public: |
40 FileSystemContext( | 38 FileSystemContext( |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 | 78 |
81 struct DefaultContextDeleter { | 79 struct DefaultContextDeleter { |
82 static void Destruct(const FileSystemContext* context) { | 80 static void Destruct(const FileSystemContext* context) { |
83 context->DeleteOnCorrectThread(); | 81 context->DeleteOnCorrectThread(); |
84 } | 82 } |
85 }; | 83 }; |
86 | 84 |
87 } // namespace fileapi | 85 } // namespace fileapi |
88 | 86 |
89 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_CONTEXT_H_ | 87 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_CONTEXT_H_ |
OLD | NEW |