Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(40)

Side by Side Diff: webkit/quota/quota_manager.h

Issue 15907004: [Quota] Add UsageTracker::GetGlobalLimitedUsage (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: +LazyInitialize Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | webkit/quota/quota_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 30 matching lines...) Expand all
41 class MockQuotaManager; 41 class MockQuotaManager;
42 class QuotaDatabase; 42 class QuotaDatabase;
43 class QuotaManagerProxy; 43 class QuotaManagerProxy;
44 class QuotaTemporaryStorageEvictor; 44 class QuotaTemporaryStorageEvictor;
45 class UsageTracker; 45 class UsageTracker;
46 46
47 struct QuotaManagerDeleter; 47 struct QuotaManagerDeleter;
48 48
49 struct WEBKIT_STORAGE_EXPORT UsageAndQuota { 49 struct WEBKIT_STORAGE_EXPORT UsageAndQuota {
50 int64 usage; 50 int64 usage;
51 int64 global_usage; 51 int64 global_limited_usage;
52 int64 global_unlimited_usage;
53 int64 quota; 52 int64 quota;
54 int64 available_disk_space; 53 int64 available_disk_space;
55 54
56 UsageAndQuota(); 55 UsageAndQuota();
57 UsageAndQuota(int64 usage, 56 UsageAndQuota(int64 usage,
58 int64 global_usage, 57 int64 global_limited_usage,
59 int64 global_unlimited_usage,
60 int64 quota, 58 int64 quota,
61 int64 available_disk_space); 59 int64 available_disk_space);
62 }; 60 };
63 61
64 // An interface called by QuotaTemporaryStorageEvictor. 62 // An interface called by QuotaTemporaryStorageEvictor.
65 class WEBKIT_STORAGE_EXPORT QuotaEvictionHandler { 63 class WEBKIT_STORAGE_EXPORT QuotaEvictionHandler {
66 public: 64 public:
67 typedef base::Callback<void(const GURL&)> GetLRUOriginCallback; 65 typedef base::Callback<void(const GURL&)> GetLRUOriginCallback;
68 typedef StatusCallback EvictOriginDataCallback; 66 typedef StatusCallback EvictOriginDataCallback;
69 typedef base::Callback<void(QuotaStatusCode status, 67 typedef base::Callback<void(QuotaStatusCode status,
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 461
464 QuotaManager* manager_; // only accessed on the io thread 462 QuotaManager* manager_; // only accessed on the io thread
465 scoped_refptr<base::SingleThreadTaskRunner> io_thread_; 463 scoped_refptr<base::SingleThreadTaskRunner> io_thread_;
466 464
467 DISALLOW_COPY_AND_ASSIGN(QuotaManagerProxy); 465 DISALLOW_COPY_AND_ASSIGN(QuotaManagerProxy);
468 }; 466 };
469 467
470 } // namespace quota 468 } // namespace quota
471 469
472 #endif // WEBKIT_QUOTA_QUOTA_MANAGER_H_ 470 #endif // WEBKIT_QUOTA_QUOTA_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | webkit/quota/quota_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698