Index: webkit/fileapi/file_system_context.h |
diff --git a/webkit/fileapi/file_system_context.h b/webkit/fileapi/file_system_context.h |
index d72a3ca745fdef0a1e2b6d2d962bbeca866482a3..6c4303753dbb01ce896f158e6d8f7a4567770f7d 100644 |
--- a/webkit/fileapi/file_system_context.h |
+++ b/webkit/fileapi/file_system_context.h |
@@ -11,6 +11,7 @@ |
#include "base/memory/ref_counted.h" |
#include "base/memory/scoped_ptr.h" |
#include "base/platform_file.h" |
+#include "base/sequenced_task_runner_helpers.h" |
#include "webkit/fileapi/file_system_types.h" |
#include "webkit/quota/special_storage_policy.h" |
@@ -56,7 +57,6 @@ class FileSystemContext |
quota::QuotaManagerProxy* quota_manager_proxy, |
const FilePath& profile_path, |
const FileSystemOptions& options); |
- ~FileSystemContext(); |
// This method can be called on any thread. |
bool DeleteDataForOriginOnFileThread(const GURL& origin_url); |
@@ -131,6 +131,9 @@ class FileSystemContext |
private: |
friend struct DefaultContextDeleter; |
+ friend class base::DeleteHelper<FileSystemContext>; |
+ ~FileSystemContext(); |
+ |
void DeleteOnCorrectThread() const; |
scoped_refptr<base::MessageLoopProxy> file_message_loop_; |