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

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

Issue 633273002: Added quota client for serviceworker. Enables 'clear past <time> data'. (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 9f6d060e9a4c039647f33bd56c5b86330a3aeda1..46b76e7b6a6b351b4de0fe3d066965cfc2c79675 100644
--- a/content/browser/service_worker/service_worker_context_wrapper.h
+++ b/content/browser/service_worker/service_worker_context_wrapper.h
@@ -74,6 +74,8 @@ class CONTENT_EXPORT ServiceWorkerContextWrapper
OVERRIDE;
virtual void Terminate() OVERRIDE;
virtual void GetAllOriginsInfo(const GetUsageInfoCallback& callback) OVERRIDE;
+ // Callback is called on the IO thread.
+ void DeleteForOrigin(const GURL& origin_url, const ResultCallback& done);
jsbell 2014/10/08 19:26:41 `done` is a bit unusual - it should probably be a
dmurph 2014/10/11 00:02:26 Done.
virtual void DeleteForOrigin(const GURL& origin_url) OVERRIDE;
void AddObserver(ServiceWorkerContextObserver* observer);
@@ -112,6 +114,7 @@ class CONTENT_EXPORT ServiceWorkerContextWrapper
const std::vector<ServiceWorkerRegistrationInfo>& registrations);
void DidGetAllRegistrationsForDeleteForOrigin(
const GURL& origin,
+ const ResultCallback& done,
jsbell 2014/10/08 19:26:41 nit: callbacks usually come first or last... is th
dmurph 2014/10/11 00:02:26 Done.
const std::vector<ServiceWorkerRegistrationInfo>& registrations);
const scoped_refptr<ObserverListThreadSafe<ServiceWorkerContextObserver> >

Powered by Google App Engine
This is Rietveld 408576698