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

Side by Side Diff: content/child/service_worker/service_worker_dispatcher.h

Issue 354643003: ServiceWorker: Support navigator.serviceWorker.active (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_ 5 #ifndef CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_
6 #define CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_ 6 #define CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 const base::string16& message); 119 const base::string16& message);
120 void OnServiceWorkerStateChanged(int thread_id, 120 void OnServiceWorkerStateChanged(int thread_id,
121 int handle_id, 121 int handle_id,
122 blink::WebServiceWorkerState state); 122 blink::WebServiceWorkerState state);
123 void OnSetInstallingServiceWorker(int thread_id, 123 void OnSetInstallingServiceWorker(int thread_id,
124 int provider_id, 124 int provider_id,
125 const ServiceWorkerObjectInfo& info); 125 const ServiceWorkerObjectInfo& info);
126 void OnSetWaitingServiceWorker(int thread_id, 126 void OnSetWaitingServiceWorker(int thread_id,
127 int provider_id, 127 int provider_id,
128 const ServiceWorkerObjectInfo& info); 128 const ServiceWorkerObjectInfo& info);
129 void OnSetActiveServiceWorker(int thread_id,
130 int provider_id,
131 const ServiceWorkerObjectInfo& info);
129 void OnSetControllerServiceWorker(int thread_id, 132 void OnSetControllerServiceWorker(int thread_id,
130 int provider_id, 133 int provider_id,
131 const ServiceWorkerObjectInfo& info); 134 const ServiceWorkerObjectInfo& info);
132 void OnPostMessage(int thread_id, 135 void OnPostMessage(int thread_id,
133 int provider_id, 136 int provider_id,
134 const base::string16& message, 137 const base::string16& message,
135 const std::vector<int>& sent_message_port_ids, 138 const std::vector<int>& sent_message_port_ids,
136 const std::vector<int>& new_routing_ids); 139 const std::vector<int>& new_routing_ids);
137 140
138 // Keeps map from handle_id to ServiceWorker object. 141 // Keeps map from handle_id to ServiceWorker object.
(...skipping 10 matching lines...) Expand all
149 WorkerToProviderMap worker_to_provider_; 152 WorkerToProviderMap worker_to_provider_;
150 153
151 scoped_refptr<ThreadSafeSender> thread_safe_sender_; 154 scoped_refptr<ThreadSafeSender> thread_safe_sender_;
152 155
153 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcher); 156 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcher);
154 }; 157 };
155 158
156 } // namespace content 159 } // namespace content
157 160
158 #endif // CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_ 161 #endif // CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698