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

Side by Side Diff: storage/browser/quota/quota_manager.h

Issue 2923663002: ExtensionStorageMonitor: use smaller, self-registering StorageObservers (Closed)
Patch Set: Remove lame comment. Created 3 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 STORAGE_BROWSER_QUOTA_QUOTA_MANAGER_H_ 5 #ifndef STORAGE_BROWSER_QUOTA_QUOTA_MANAGER_H_
6 #define STORAGE_BROWSER_QUOTA_QUOTA_MANAGER_H_ 6 #define STORAGE_BROWSER_QUOTA_QUOTA_MANAGER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <deque> 10 #include <deque>
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 virtual void GetOriginsModifiedSince(StorageType type, 217 virtual void GetOriginsModifiedSince(StorageType type,
218 base::Time modified_since, 218 base::Time modified_since,
219 const GetOriginsCallback& callback); 219 const GetOriginsCallback& callback);
220 220
221 bool ResetUsageTracker(StorageType type); 221 bool ResetUsageTracker(StorageType type);
222 222
223 // Used to register/deregister observers that wish to monitor storage events. 223 // Used to register/deregister observers that wish to monitor storage events.
224 void AddStorageObserver(StorageObserver* observer, 224 void AddStorageObserver(StorageObserver* observer,
225 const StorageObserver::MonitorParams& params); 225 const StorageObserver::MonitorParams& params);
226 void RemoveStorageObserver(StorageObserver* observer); 226 void RemoveStorageObserver(StorageObserver* observer);
227 void RemoveStorageObserverForFilter(StorageObserver* observer,
228 const StorageObserver::Filter& filter);
229 227
230 static const int64_t kPerHostPersistentQuotaLimit; 228 static const int64_t kPerHostPersistentQuotaLimit;
231 static const char kDatabaseName[]; 229 static const char kDatabaseName[];
232 static const int kThresholdOfErrorsToBeBlacklisted; 230 static const int kThresholdOfErrorsToBeBlacklisted;
233 static const int kEvictionIntervalInMilliSeconds; 231 static const int kEvictionIntervalInMilliSeconds;
234 static const char kDaysBetweenRepeatedOriginEvictionsHistogram[]; 232 static const char kDaysBetweenRepeatedOriginEvictionsHistogram[];
235 static const char kEvictedOriginAccessedCountHistogram[]; 233 static const char kEvictedOriginAccessedCountHistogram[];
236 static const char kEvictedOriginDaysSinceAccessHistogram[]; 234 static const char kEvictedOriginDaysSinceAccessHistogram[];
237 235
238 // Kept non-const so that test code can change the value. 236 // Kept non-const so that test code can change the value.
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 466
469 struct QuotaManagerDeleter { 467 struct QuotaManagerDeleter {
470 static void Destruct(const QuotaManager* manager) { 468 static void Destruct(const QuotaManager* manager) {
471 manager->DeleteOnCorrectThread(); 469 manager->DeleteOnCorrectThread();
472 } 470 }
473 }; 471 };
474 472
475 } // namespace storage 473 } // namespace storage
476 474
477 #endif // STORAGE_BROWSER_QUOTA_QUOTA_MANAGER_H_ 475 #endif // STORAGE_BROWSER_QUOTA_QUOTA_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/test/data/extensions/storage_monitor/hosted_apps/two/index.html ('k') | storage/browser/quota/quota_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698