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_QUOTA_QUOTA_MANAGER_H_ | 5 #ifndef WEBKIT_QUOTA_QUOTA_MANAGER_H_ |
6 #define WEBKIT_QUOTA_QUOTA_MANAGER_H_ | 6 #define WEBKIT_QUOTA_QUOTA_MANAGER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <deque> | 9 #include <deque> |
10 #include <list> | 10 #include <list> |
(...skipping 15 matching lines...) Expand all Loading... |
26 #include "webkit/quota/special_storage_policy.h" | 26 #include "webkit/quota/special_storage_policy.h" |
27 | 27 |
28 namespace base { | 28 namespace base { |
29 class MessageLoopProxy; | 29 class MessageLoopProxy; |
30 } | 30 } |
31 class FilePath; | 31 class FilePath; |
32 | 32 |
33 namespace quota_internals { | 33 namespace quota_internals { |
34 class QuotaInternalsProxy; | 34 class QuotaInternalsProxy; |
35 } | 35 } |
36 | 36 class BrowsingDataRemoverFileSystemTesterHelper; |
37 namespace quota { | 37 namespace quota { |
38 | 38 |
39 struct QuotaManagerDeleter; | 39 struct QuotaManagerDeleter; |
40 | 40 |
41 class QuotaDatabase; | 41 class QuotaDatabase; |
42 class QuotaManagerProxy; | 42 class QuotaManagerProxy; |
43 class QuotaTemporaryStorageEvictor; | 43 class QuotaTemporaryStorageEvictor; |
44 class UsageTracker; | 44 class UsageTracker; |
45 | 45 |
46 // An interface called by QuotaTemporaryStorageEvictor. | 46 // An interface called by QuotaTemporaryStorageEvictor. |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 typedef std::pair<std::string, StorageType> HostAndType; | 226 typedef std::pair<std::string, StorageType> HostAndType; |
227 typedef std::map<HostAndType, UsageAndQuotaDispatcherTask*> | 227 typedef std::map<HostAndType, UsageAndQuotaDispatcherTask*> |
228 UsageAndQuotaDispatcherTaskMap; | 228 UsageAndQuotaDispatcherTaskMap; |
229 | 229 |
230 friend class quota_internals::QuotaInternalsProxy; | 230 friend class quota_internals::QuotaInternalsProxy; |
231 friend struct QuotaManagerDeleter; | 231 friend struct QuotaManagerDeleter; |
232 friend class MockStorageClient; | 232 friend class MockStorageClient; |
233 friend class QuotaManagerProxy; | 233 friend class QuotaManagerProxy; |
234 friend class QuotaManagerTest; | 234 friend class QuotaManagerTest; |
235 friend class QuotaTemporaryStorageEvictor; | 235 friend class QuotaTemporaryStorageEvictor; |
| 236 friend class ::BrowsingDataRemoverFileSystemTesterHelper; |
236 | 237 |
237 // This initialization method is lazily called on the IO thread | 238 // This initialization method is lazily called on the IO thread |
238 // when the first quota manager API is called. | 239 // when the first quota manager API is called. |
239 // Initialize must be called after all quota clients are added to the | 240 // Initialize must be called after all quota clients are added to the |
240 // manager by RegisterStorage. | 241 // manager by RegisterStorage. |
241 void LazyInitialize(); | 242 void LazyInitialize(); |
242 | 243 |
243 // Called by clients via proxy. | 244 // Called by clients via proxy. |
244 // Registers a quota client to the manager. | 245 // Registers a quota client to the manager. |
245 // The client must remain valid until OnQuotaManagerDestored is called. | 246 // The client must remain valid until OnQuotaManagerDestored is called. |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 | 383 |
383 QuotaManager* manager_; // only accessed on the io thread | 384 QuotaManager* manager_; // only accessed on the io thread |
384 scoped_refptr<base::MessageLoopProxy> io_thread_; | 385 scoped_refptr<base::MessageLoopProxy> io_thread_; |
385 | 386 |
386 DISALLOW_COPY_AND_ASSIGN(QuotaManagerProxy); | 387 DISALLOW_COPY_AND_ASSIGN(QuotaManagerProxy); |
387 }; | 388 }; |
388 | 389 |
389 } // namespace quota | 390 } // namespace quota |
390 | 391 |
391 #endif // WEBKIT_QUOTA_QUOTA_MANAGER_H_ | 392 #endif // WEBKIT_QUOTA_QUOTA_MANAGER_H_ |
OLD | NEW |