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

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

Issue 317953004: Set the "waiting" Service Worker of Service Worker providers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Bring patch to head. Created 6 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 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 const ServiceWorkerObjectInfo& info); 113 const ServiceWorkerObjectInfo& info);
114 void OnUnregistered(int thread_id, 114 void OnUnregistered(int thread_id,
115 int request_id); 115 int request_id);
116 void OnRegistrationError(int thread_id, 116 void OnRegistrationError(int thread_id,
117 int request_id, 117 int request_id,
118 blink::WebServiceWorkerError::ErrorType error_type, 118 blink::WebServiceWorkerError::ErrorType error_type,
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 OnSetWaitingServiceWorker(int thread_id,
124 int provider_id,
125 const ServiceWorkerObjectInfo& info);
123 void OnSetCurrentServiceWorker(int thread_id, 126 void OnSetCurrentServiceWorker(int thread_id,
124 int provider_id, 127 int provider_id,
125 const ServiceWorkerObjectInfo& info); 128 const ServiceWorkerObjectInfo& info);
126 void OnPostMessage(int thread_id, 129 void OnPostMessage(int thread_id,
127 int provider_id, 130 int provider_id,
128 const base::string16& message, 131 const base::string16& message,
129 const std::vector<int>& sent_message_port_ids, 132 const std::vector<int>& sent_message_port_ids,
130 const std::vector<int>& new_routing_ids); 133 const std::vector<int>& new_routing_ids);
131 134
132 // Keeps map from handle_id to ServiceWorker object. 135 // Keeps map from handle_id to ServiceWorker object.
(...skipping 10 matching lines...) Expand all
143 WorkerToProviderMap worker_to_provider_; 146 WorkerToProviderMap worker_to_provider_;
144 147
145 scoped_refptr<ThreadSafeSender> thread_safe_sender_; 148 scoped_refptr<ThreadSafeSender> thread_safe_sender_;
146 149
147 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcher); 150 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcher);
148 }; 151 };
149 152
150 } // namespace content 153 } // namespace content
151 154
152 #endif // CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_ 155 #endif // CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698