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

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

Issue 1146913004: Service Worker: Add ServiceWorkerContainer.getRegistrations() method. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use scoped_refptr to ServiceWorkerRegistration and rename variables. Created 5 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/service_worker/service_worker_dispatcher_host.h
diff --git a/content/browser/service_worker/service_worker_dispatcher_host.h b/content/browser/service_worker/service_worker_dispatcher_host.h
index d121e6bafa5c9f067fd7e2a6b7d705a8fb1650a4..2e8bf9564c5c64e2afdb44db09d7a7a366002471 100644
--- a/content/browser/service_worker/service_worker_dispatcher_host.h
+++ b/content/browser/service_worker/service_worker_dispatcher_host.h
@@ -30,6 +30,7 @@ class ServiceWorkerRegistrationHandle;
class ServiceWorkerVersion;
struct ServiceWorkerObjectInfo;
struct ServiceWorkerRegistrationObjectInfo;
+struct ServiceWorkerRegistrationInfo;
falken 2015/06/08 04:59:10 nit: wrong alphabetical order
jungkees 2015/06/08 16:00:19 Fixed.
struct ServiceWorkerVersionAttributes;
struct TransferredMessagePort;
@@ -95,6 +96,7 @@ class CONTENT_EXPORT ServiceWorkerDispatcherHost : public BrowserMessageFilter {
int request_id,
int provider_id,
const GURL& document_url);
+ void OnGetRegistrations(int thread_id, int request_id, int provider_id);
void OnGetRegistrationForReady(int thread_id,
int request_id,
int provider_id);
@@ -160,6 +162,13 @@ class CONTENT_EXPORT ServiceWorkerDispatcherHost : public BrowserMessageFilter {
ServiceWorkerStatusCode status,
const scoped_refptr<ServiceWorkerRegistration>& registration);
+ void GetRegistrationsComplete(
+ int thread_id,
+ int provider_id,
+ int request_id,
+ const std::vector<scoped_refptr<ServiceWorkerRegistration>>&
+ registrations);
+
void GetRegistrationForReadyComplete(
int thread_id,
int request_id,
@@ -179,6 +188,10 @@ class CONTENT_EXPORT ServiceWorkerDispatcherHost : public BrowserMessageFilter {
int request_id,
ServiceWorkerStatusCode status);
+ void SendGetRegistrationsError(int thread_id,
+ int request_id,
+ ServiceWorkerStatusCode status);
+
ServiceWorkerContextCore* GetContext();
int render_process_id_;

Powered by Google App Engine
This is Rietveld 408576698