OLD | NEW |
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_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ | 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ |
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ | 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 // Message handlers. | 233 // Message handlers. |
234 void OnGetClientDocuments(int request_id); | 234 void OnGetClientDocuments(int request_id); |
235 void OnActivateEventFinished(int request_id, | 235 void OnActivateEventFinished(int request_id, |
236 blink::WebServiceWorkerEventResult result); | 236 blink::WebServiceWorkerEventResult result); |
237 void OnInstallEventFinished(int request_id, | 237 void OnInstallEventFinished(int request_id, |
238 blink::WebServiceWorkerEventResult result); | 238 blink::WebServiceWorkerEventResult result); |
239 void OnFetchEventFinished(int request_id, | 239 void OnFetchEventFinished(int request_id, |
240 ServiceWorkerFetchEventResult result, | 240 ServiceWorkerFetchEventResult result, |
241 const ServiceWorkerResponse& response); | 241 const ServiceWorkerResponse& response); |
242 void OnSyncEventFinished(int request_id); | 242 void OnSyncEventFinished(int request_id); |
| 243 void OnPostMessageToDocument(int client_id, |
| 244 const base::string16& message, |
| 245 const std::vector<int>& sent_message_port_ids); |
243 | 246 |
244 const int64 version_id_; | 247 const int64 version_id_; |
245 int64 registration_id_; | 248 int64 registration_id_; |
246 GURL script_url_; | 249 GURL script_url_; |
247 GURL scope_; | 250 GURL scope_; |
248 Status status_; | 251 Status status_; |
249 scoped_ptr<EmbeddedWorkerInstance> embedded_worker_; | 252 scoped_ptr<EmbeddedWorkerInstance> embedded_worker_; |
250 std::vector<StatusCallback> start_callbacks_; | 253 std::vector<StatusCallback> start_callbacks_; |
251 std::vector<StatusCallback> stop_callbacks_; | 254 std::vector<StatusCallback> stop_callbacks_; |
252 std::vector<base::Closure> status_change_callbacks_; | 255 std::vector<base::Closure> status_change_callbacks_; |
(...skipping 12 matching lines...) Expand all Loading... |
265 ResourceIDMap script_cache_map_; | 268 ResourceIDMap script_cache_map_; |
266 | 269 |
267 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_; | 270 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_; |
268 | 271 |
269 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion); | 272 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion); |
270 }; | 273 }; |
271 | 274 |
272 } // namespace content | 275 } // namespace content |
273 | 276 |
274 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ | 277 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ |
OLD | NEW |