OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_USAGE_CACHE_H_ | 5 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_USAGE_CACHE_H_ |
6 #define WEBKIT_FILEAPI_FILE_SYSTEM_USAGE_CACHE_H_ | 6 #define WEBKIT_FILEAPI_FILE_SYSTEM_USAGE_CACHE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
13 #include "base/platform_file.h" | 13 #include "base/platform_file.h" |
14 #include "base/sequenced_task_runner.h" | 14 #include "base/task/sequenced_task_runner.h" |
15 #include "base/timer.h" | 15 #include "base/timer.h" |
16 #include "webkit/storage/webkit_storage_export.h" | 16 #include "webkit/storage/webkit_storage_export.h" |
17 | 17 |
18 namespace fileapi { | 18 namespace fileapi { |
19 | 19 |
20 class WEBKIT_STORAGE_EXPORT_PRIVATE FileSystemUsageCache { | 20 class WEBKIT_STORAGE_EXPORT_PRIVATE FileSystemUsageCache { |
21 public: | 21 public: |
22 explicit FileSystemUsageCache(base::SequencedTaskRunner* task_runner); | 22 explicit FileSystemUsageCache(base::SequencedTaskRunner* task_runner); |
23 ~FileSystemUsageCache(); | 23 ~FileSystemUsageCache(); |
24 | 24 |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 base::WeakPtrFactory<FileSystemUsageCache> weak_factory_; | 94 base::WeakPtrFactory<FileSystemUsageCache> weak_factory_; |
95 | 95 |
96 scoped_refptr<base::SequencedTaskRunner> task_runner_; | 96 scoped_refptr<base::SequencedTaskRunner> task_runner_; |
97 | 97 |
98 DISALLOW_COPY_AND_ASSIGN(FileSystemUsageCache); | 98 DISALLOW_COPY_AND_ASSIGN(FileSystemUsageCache); |
99 }; | 99 }; |
100 | 100 |
101 } // namespace fileapi | 101 } // namespace fileapi |
102 | 102 |
103 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_USAGE_CACHE_H_ | 103 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_USAGE_CACHE_H_ |
OLD | NEW |