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

Unified Diff: content/child/service_worker/service_worker_message_filter.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_message_filter.h
diff --git a/content/child/service_worker/service_worker_message_filter.h b/content/child/service_worker/service_worker_message_filter.h
index d9b408485499772e46ce1ccf05520c45ce54ae30..98d5792c801cb235203a3636db30b866b191faae 100644
--- a/content/child/service_worker/service_worker_message_filter.h
+++ b/content/child/service_worker/service_worker_message_filter.h
@@ -14,8 +14,9 @@ class MessageLoopProxy;
namespace content {
-struct ServiceWorkerObjectInfo;
class ThreadSafeSender;
+struct ServiceWorkerObjectInfo;
+struct ServiceWorkerVersionAttributes;
class CONTENT_EXPORT ServiceWorkerMessageFilter
: public NON_EXPORTED_BASE(ChildMessageFilter) {
@@ -33,12 +34,19 @@ class CONTENT_EXPORT ServiceWorkerMessageFilter
virtual void OnStaleMessageReceived(const IPC::Message& msg) OVERRIDE;
// Message handlers for stale messages.
- void OnStaleRegistered(int thread_id,
- int request_id,
- const ServiceWorkerObjectInfo& info);
- void OnStaleSetServiceWorker(int thread_id,
- int provider_id,
- const ServiceWorkerObjectInfo& info);
+ void OnStaleRegistered(
+ int thread_id,
+ int request_id,
+ const ServiceWorkerObjectInfo& info);
+ void OnStaleSetVersionAttributes(
+ int thread_id,
+ int provider_id,
+ int changed_mask,
+ const ServiceWorkerVersionAttributes& attributes);
+ void OnStaleSetControllerServiceWorker(
+ int thread_id,
+ int provider_id,
+ const ServiceWorkerObjectInfo& info);
scoped_refptr<base::MessageLoopProxy> main_thread_loop_proxy_;
scoped_refptr<ThreadSafeSender> thread_safe_sender_;

Powered by Google App Engine
This is Rietveld 408576698