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_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 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <list> | 9 #include <list> |
10 #include <map> | 10 #include <map> |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 typedef QuotaDatabase::OriginInfoTableEntry OriginInfoTableEntry; | 246 typedef QuotaDatabase::OriginInfoTableEntry OriginInfoTableEntry; |
247 typedef std::vector<QuotaTableEntry> QuotaTableEntries; | 247 typedef std::vector<QuotaTableEntry> QuotaTableEntries; |
248 typedef std::vector<OriginInfoTableEntry> OriginInfoTableEntries; | 248 typedef std::vector<OriginInfoTableEntry> OriginInfoTableEntries; |
249 | 249 |
250 typedef base::Callback<void(const QuotaTableEntries&)> | 250 typedef base::Callback<void(const QuotaTableEntries&)> |
251 DumpQuotaTableCallback; | 251 DumpQuotaTableCallback; |
252 typedef base::Callback<void(const OriginInfoTableEntries&)> | 252 typedef base::Callback<void(const OriginInfoTableEntries&)> |
253 DumpOriginInfoTableCallback; | 253 DumpOriginInfoTableCallback; |
254 | 254 |
255 struct EvictionContext { | 255 struct EvictionContext { |
256 EvictionContext() : evicted_type(kStorageTypeUnknown) {} | 256 EvictionContext(); |
257 virtual ~EvictionContext() {} | 257 virtual ~EvictionContext(); |
258 GURL evicted_origin; | 258 GURL evicted_origin; |
259 StorageType evicted_type; | 259 StorageType evicted_type; |
260 | 260 |
261 EvictOriginDataCallback evict_origin_data_callback; | 261 EvictOriginDataCallback evict_origin_data_callback; |
262 }; | 262 }; |
263 | 263 |
264 typedef std::pair<std::string, StorageType> HostAndType; | 264 typedef std::pair<std::string, StorageType> HostAndType; |
265 typedef std::map<HostAndType, UsageAndQuotaDispatcherTask*> | 265 typedef std::map<HostAndType, UsageAndQuotaDispatcherTask*> |
266 UsageAndQuotaDispatcherTaskMap; | 266 UsageAndQuotaDispatcherTaskMap; |
267 | 267 |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
425 | 425 |
426 QuotaManager* manager_; // only accessed on the io thread | 426 QuotaManager* manager_; // only accessed on the io thread |
427 scoped_refptr<base::SingleThreadTaskRunner> io_thread_; | 427 scoped_refptr<base::SingleThreadTaskRunner> io_thread_; |
428 | 428 |
429 DISALLOW_COPY_AND_ASSIGN(QuotaManagerProxy); | 429 DISALLOW_COPY_AND_ASSIGN(QuotaManagerProxy); |
430 }; | 430 }; |
431 | 431 |
432 } // namespace quota | 432 } // namespace quota |
433 | 433 |
434 #endif // WEBKIT_QUOTA_QUOTA_MANAGER_H_ | 434 #endif // WEBKIT_QUOTA_QUOTA_MANAGER_H_ |
OLD | NEW |