Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 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 | 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/ref_counted.h" | 8 #include "base/ref_counted.h" |
| 9 #include "base/scoped_ptr.h" | 9 #include "base/scoped_ptr.h" |
| 10 #include "webkit/quota/special_storage_policy.h" | 10 #include "webkit/quota/special_storage_policy.h" |
| 11 | 11 |
| 12 class FilePath; | 12 class FilePath; |
| 13 class GURL; | 13 class GURL; |
| 14 | 14 |
| 15 namespace base { | 15 namespace base { |
| 16 class MessageLoopProxy; | 16 class MessageLoopProxy; |
| 17 } | 17 } |
| 18 | 18 |
| 19 namespace fileapi { | 19 namespace fileapi { |
| 20 | 20 |
| 21 class FileSystemContext; | |
| 22 class FileSystemFileUtil; | |
|
ericu
2011/03/03 01:05:11
FileSystemFileUtil isn't needed here yet.
Dai Mikurube (google.com)
2011/03/03 20:24:52
Done.
| |
| 21 class FileSystemPathManager; | 23 class FileSystemPathManager; |
| 22 class FileSystemQuotaManager; | 24 class FileSystemQuotaManager; |
| 23 class FileSystemUsageTracker; | 25 class FileSystemUsageTracker; |
| 24 class FileSystemContext; | |
| 25 | 26 |
| 26 struct DefaultContextDeleter; | 27 struct DefaultContextDeleter; |
| 27 | 28 |
| 28 // This class keeps and provides a file system context for FileSystem API. | 29 // This class keeps and provides a file system context for FileSystem API. |
| 29 class FileSystemContext | 30 class FileSystemContext |
| 30 : public base::RefCountedThreadSafe<FileSystemContext, | 31 : public base::RefCountedThreadSafe<FileSystemContext, |
| 31 DefaultContextDeleter> { | 32 DefaultContextDeleter> { |
| 32 public: | 33 public: |
| 33 FileSystemContext( | 34 FileSystemContext( |
| 34 scoped_refptr<base::MessageLoopProxy> file_message_loop, | 35 scoped_refptr<base::MessageLoopProxy> file_message_loop, |
| (...skipping 26 matching lines...) Expand all Loading... | |
| 61 | 62 |
| 62 struct DefaultContextDeleter { | 63 struct DefaultContextDeleter { |
| 63 static void Destruct(const FileSystemContext* context) { | 64 static void Destruct(const FileSystemContext* context) { |
| 64 context->DeleteOnCorrectThread(); | 65 context->DeleteOnCorrectThread(); |
| 65 } | 66 } |
| 66 }; | 67 }; |
| 67 | 68 |
| 68 } // namespace fileapi | 69 } // namespace fileapi |
| 69 | 70 |
| 70 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_CONTEXT_H_ | 71 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_CONTEXT_H_ |
| OLD | NEW |