Chromium Code Reviews| 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/quota/special_storage_policy.h" | 10 #include "webkit/quota/special_storage_policy.h" |
| (...skipping 20 matching lines...) Expand all Loading... | |
| 31 DefaultContextDeleter> { | 31 DefaultContextDeleter> { |
| 32 public: | 32 public: |
| 33 FileSystemContext( | 33 FileSystemContext( |
| 34 scoped_refptr<base::MessageLoopProxy> file_message_loop, | 34 scoped_refptr<base::MessageLoopProxy> file_message_loop, |
| 35 scoped_refptr<base::MessageLoopProxy> io_message_loop, | 35 scoped_refptr<base::MessageLoopProxy> io_message_loop, |
| 36 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy, | 36 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy, |
| 37 const FilePath& profile_path, | 37 const FilePath& profile_path, |
| 38 bool is_incognito, | 38 bool is_incognito, |
| 39 bool allow_file_access_from_files, | 39 bool allow_file_access_from_files, |
| 40 bool unlimited_quota); | 40 bool unlimited_quota); |
| 41 // Test seam only. | |
|
ericu
2011/04/19 20:30:49
What does the comment mean?
zel
2011/04/19 23:14:00
Removed now. It meant that this constructor is mea
| |
| 42 FileSystemContext( | |
| 43 scoped_refptr<base::MessageLoopProxy> file_message_loop, | |
| 44 scoped_refptr<base::MessageLoopProxy> io_message_loop, | |
| 45 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy, | |
| 46 const FilePath& profile_path, | |
| 47 bool is_incognito, | |
| 48 bool allow_file_access_from_files, | |
| 49 bool unlimited_quota, | |
| 50 FileSystemPathManager* path_manager); | |
| 41 ~FileSystemContext(); | 51 ~FileSystemContext(); |
| 42 | 52 |
| 43 // This method can be called on any thread. | 53 // This method can be called on any thread. |
| 44 bool IsStorageUnlimited(const GURL& origin); | 54 bool IsStorageUnlimited(const GURL& origin); |
| 45 | 55 |
| 46 void DeleteDataForOriginOnFileThread(const GURL& origin_url); | 56 void DeleteDataForOriginOnFileThread(const GURL& origin_url); |
| 47 | 57 |
| 48 FileSystemPathManager* path_manager() { return path_manager_.get(); } | 58 FileSystemPathManager* path_manager() { return path_manager_.get(); } |
| 49 FileSystemUsageTracker* usage_tracker() { return usage_tracker_.get(); } | 59 FileSystemUsageTracker* usage_tracker() { return usage_tracker_.get(); } |
| 50 | 60 |
| (...skipping 17 matching lines...) Expand all Loading... | |
| 68 | 78 |
| 69 struct DefaultContextDeleter { | 79 struct DefaultContextDeleter { |
| 70 static void Destruct(const FileSystemContext* context) { | 80 static void Destruct(const FileSystemContext* context) { |
| 71 context->DeleteOnCorrectThread(); | 81 context->DeleteOnCorrectThread(); |
| 72 } | 82 } |
| 73 }; | 83 }; |
| 74 | 84 |
| 75 } // namespace fileapi | 85 } // namespace fileapi |
| 76 | 86 |
| 77 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_CONTEXT_H_ | 87 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_CONTEXT_H_ |
| OLD | NEW |