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

Unified Diff: content/browser/service_worker/service_worker_context_wrapper.h

Issue 672813002: [ServiceWorker] Added size deltas and total size computation for QuotaM. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/service_worker/service_worker_context_wrapper.h
diff --git a/content/browser/service_worker/service_worker_context_wrapper.h b/content/browser/service_worker/service_worker_context_wrapper.h
index 0670c0c3bb8452ba607eaf908ed03f24beecd54b..a015e8c61c7b9edf381d09236d03eb914490f5f1 100644
--- a/content/browser/service_worker/service_worker_context_wrapper.h
+++ b/content/browser/service_worker/service_worker_context_wrapper.h
@@ -115,10 +115,19 @@ class CONTENT_EXPORT ServiceWorkerContextWrapper
void DidDeleteAndStartOver(ServiceWorkerStatusCode status);
+ void CombineUsageInfo(std::vector<ServiceWorkerUsageInfo>* usage_info,
+ std::map<GURL, int64>* usage_map,
+ const GetUsageInfoCallback& callback);
+
void DidGetAllRegistrationsForGetAllOrigins(
- const GetUsageInfoCallback& callback,
+ const base::Closure& closure,
+ std::vector<ServiceWorkerUsageInfo>* usage_info_out,
const std::vector<ServiceWorkerRegistrationInfo>& registrations);
+ void DidGetUsageForAllOrigins(const base::Closure& closure,
+ std::map<GURL, int64>* usage_out,
+ const std::map<GURL, int64>& usage_map);
+
const scoped_refptr<ObserverListThreadSafe<ServiceWorkerContextObserver> >
observer_list_;
const scoped_ptr<ServiceWorkerProcessManager> process_manager_;

Powered by Google App Engine
This is Rietveld 408576698