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

Unified Diff: content/child/service_worker/service_worker_dispatcher.h

Issue 445883003: ServiceWorker: Consolidate version change messages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 4 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/child/service_worker/service_worker_dispatcher.h
diff --git a/content/child/service_worker/service_worker_dispatcher.h b/content/child/service_worker/service_worker_dispatcher.h
index 6b591be404ea43a7f317e2031aefca7a8bcc05ac..fdb4d5943c637d122a73bfcc23f36a7792e900c6 100644
--- a/content/child/service_worker/service_worker_dispatcher.h
+++ b/content/child/service_worker/service_worker_dispatcher.h
@@ -29,10 +29,11 @@ class Message;
namespace content {
class ServiceWorkerMessageFilter;
-struct ServiceWorkerObjectInfo;
class ServiceWorkerProviderContext;
class ThreadSafeSender;
class WebServiceWorkerImpl;
+struct ServiceWorkerObjectInfo;
+struct ServiceWorkerVersionAttributes;
// This class manages communication with the browser process about
// registration of the service worker, exposed to renderer and worker
@@ -123,15 +124,10 @@ class ServiceWorkerDispatcher : public WorkerTaskRunner::Observer {
void OnServiceWorkerStateChanged(int thread_id,
int handle_id,
blink::WebServiceWorkerState state);
- void OnSetInstallingServiceWorker(int thread_id,
- int provider_id,
- const ServiceWorkerObjectInfo& info);
- void OnSetWaitingServiceWorker(int thread_id,
- int provider_id,
- const ServiceWorkerObjectInfo& info);
- void OnSetActiveServiceWorker(int thread_id,
- int provider_id,
- const ServiceWorkerObjectInfo& info);
+ void OnSetVersionAttributes(int thread_id,
+ int provider_id,
+ int changed_mask,
+ const ServiceWorkerVersionAttributes& attributes);
void OnSetControllerServiceWorker(int thread_id,
int provider_id,
const ServiceWorkerObjectInfo& info);
@@ -141,6 +137,16 @@ class ServiceWorkerDispatcher : public WorkerTaskRunner::Observer {
const std::vector<int>& sent_message_port_ids,
const std::vector<int>& new_routing_ids);
+ void SetInstallingServiceWorker(
+ int provider_id,
+ const ServiceWorkerObjectInfo& info);
+ void SetWaitingServiceWorker(
+ int provider_id,
+ const ServiceWorkerObjectInfo& info);
+ void SetActiveServiceWorker(
+ int provider_id,
+ const ServiceWorkerObjectInfo& info);
+
// Keeps map from handle_id to ServiceWorker object.
void AddServiceWorker(int handle_id, WebServiceWorkerImpl* worker);
void RemoveServiceWorker(int handle_id);

Powered by Google App Engine
This is Rietveld 408576698