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

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

Issue 2007663002: Quota: Add metrics about the age and amount of data stored in temporary storage, and a metric about… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
Patch Set: Created 4 years, 7 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
« no previous file with comments | « no previous file | storage/browser/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 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 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 StorageType type, 390 StorageType type,
391 bool is_eviction); 391 bool is_eviction);
392 392
393 void DidOriginDataEvicted(QuotaStatusCode status); 393 void DidOriginDataEvicted(QuotaStatusCode status);
394 394
395 void ReportHistogram(); 395 void ReportHistogram();
396 void DidGetTemporaryGlobalUsageForHistogram(int64_t usage, 396 void DidGetTemporaryGlobalUsageForHistogram(int64_t usage,
397 int64_t unlimited_usage); 397 int64_t unlimited_usage);
398 void DidGetPersistentGlobalUsageForHistogram(int64_t usage, 398 void DidGetPersistentGlobalUsageForHistogram(int64_t usage,
399 int64_t unlimited_usage); 399 int64_t unlimited_usage);
400 void DidDumpOriginInfoTableForHistogram(
401 const OriginInfoTableEntries& entries);
400 402
401 std::set<GURL> GetEvictionOriginExceptions( 403 std::set<GURL> GetEvictionOriginExceptions(
402 const std::set<GURL>& extra_exceptions); 404 const std::set<GURL>& extra_exceptions);
403 void DidGetEvictionOrigin(const GetOriginCallback& callback, 405 void DidGetEvictionOrigin(const GetOriginCallback& callback,
404 const GURL& origin); 406 const GURL& origin);
405 407
406 // QuotaEvictionHandler. 408 // QuotaEvictionHandler.
407 void GetEvictionOrigin(StorageType type, 409 void GetEvictionOrigin(StorageType type,
408 const std::set<GURL>& extra_exceptions, 410 const std::set<GURL>& extra_exceptions,
409 int64_t global_quota, 411 int64_t global_quota,
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 516
515 struct QuotaManagerDeleter { 517 struct QuotaManagerDeleter {
516 static void Destruct(const QuotaManager* manager) { 518 static void Destruct(const QuotaManager* manager) {
517 manager->DeleteOnCorrectThread(); 519 manager->DeleteOnCorrectThread();
518 } 520 }
519 }; 521 };
520 522
521 } // namespace storage 523 } // namespace storage
522 524
523 #endif // STORAGE_BROWSER_QUOTA_QUOTA_MANAGER_H_ 525 #endif // STORAGE_BROWSER_QUOTA_QUOTA_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | storage/browser/quota/quota_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698