| 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 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 // Message handlers. | 229 // Message handlers. |
| 230 void OnGetClientDocuments(int request_id); | 230 void OnGetClientDocuments(int request_id); |
| 231 void OnActivateEventFinished(int request_id, | 231 void OnActivateEventFinished(int request_id, |
| 232 blink::WebServiceWorkerEventResult result); | 232 blink::WebServiceWorkerEventResult result); |
| 233 void OnInstallEventFinished(int request_id, | 233 void OnInstallEventFinished(int request_id, |
| 234 blink::WebServiceWorkerEventResult result); | 234 blink::WebServiceWorkerEventResult result); |
| 235 void OnFetchEventFinished(int request_id, | 235 void OnFetchEventFinished(int request_id, |
| 236 ServiceWorkerFetchEventResult result, | 236 ServiceWorkerFetchEventResult result, |
| 237 const ServiceWorkerResponse& response); | 237 const ServiceWorkerResponse& response); |
| 238 void OnSyncEventFinished(int request_id); | 238 void OnSyncEventFinished(int request_id); |
| 239 void OnPostMessageToDocument(int client_id, |
| 240 const base::string16& message, |
| 241 const std::vector<int>& sent_message_port_ids); |
| 239 | 242 |
| 240 const int64 version_id_; | 243 const int64 version_id_; |
| 241 int64 registration_id_; | 244 int64 registration_id_; |
| 242 GURL script_url_; | 245 GURL script_url_; |
| 243 GURL scope_; | 246 GURL scope_; |
| 244 Status status_; | 247 Status status_; |
| 245 scoped_ptr<EmbeddedWorkerInstance> embedded_worker_; | 248 scoped_ptr<EmbeddedWorkerInstance> embedded_worker_; |
| 246 std::vector<StatusCallback> start_callbacks_; | 249 std::vector<StatusCallback> start_callbacks_; |
| 247 std::vector<StatusCallback> stop_callbacks_; | 250 std::vector<StatusCallback> stop_callbacks_; |
| 248 std::vector<base::Closure> status_change_callbacks_; | 251 std::vector<base::Closure> status_change_callbacks_; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 259 ObserverList<Listener> listeners_; | 262 ObserverList<Listener> listeners_; |
| 260 | 263 |
| 261 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_; | 264 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_; |
| 262 | 265 |
| 263 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion); | 266 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion); |
| 264 }; | 267 }; |
| 265 | 268 |
| 266 } // namespace content | 269 } // namespace content |
| 267 | 270 |
| 268 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ | 271 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ |
| OLD | NEW |