| 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 <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 int line_number, | 332 int line_number, |
| 333 int column_number, | 333 int column_number, |
| 334 const GURL& source_url) override; | 334 const GURL& source_url) override; |
| 335 void OnReportConsoleMessage(int source_identifier, | 335 void OnReportConsoleMessage(int source_identifier, |
| 336 int message_level, | 336 int message_level, |
| 337 const base::string16& message, | 337 const base::string16& message, |
| 338 int line_number, | 338 int line_number, |
| 339 const GURL& source_url) override; | 339 const GURL& source_url) override; |
| 340 bool OnMessageReceived(const IPC::Message& message) override; | 340 bool OnMessageReceived(const IPC::Message& message) override; |
| 341 | 341 |
| 342 void OnStartSentAndScriptEvaluated(ServiceWorkerStatusCode status); | 342 void DidEnsureLiveRegistration( |
| 343 bool pause_after_download, |
| 344 const StatusCallback& callback, |
| 345 ServiceWorkerStatusCode status, |
| 346 const scoped_refptr<ServiceWorkerRegistration>& protect); |
| 347 void OnStartSentAndScriptEvaluated( |
| 348 scoped_refptr<ServiceWorkerRegistration> protect, |
| 349 ServiceWorkerStatusCode status); |
| 343 | 350 |
| 344 void DispatchInstallEventAfterStartWorker(const StatusCallback& callback); | 351 void DispatchInstallEventAfterStartWorker(const StatusCallback& callback); |
| 345 void DispatchActivateEventAfterStartWorker(const StatusCallback& callback); | 352 void DispatchActivateEventAfterStartWorker(const StatusCallback& callback); |
| 346 | 353 |
| 347 void DispatchMessageEventInternal( | 354 void DispatchMessageEventInternal( |
| 348 const base::string16& message, | 355 const base::string16& message, |
| 349 const std::vector<TransferredMessagePort>& sent_message_ports, | 356 const std::vector<TransferredMessagePort>& sent_message_ports, |
| 350 const StatusCallback& callback); | 357 const StatusCallback& callback); |
| 351 | 358 |
| 352 // Message handlers. | 359 // Message handlers. |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 474 scoped_ptr<net::HttpResponseInfo> main_script_http_info_; | 481 scoped_ptr<net::HttpResponseInfo> main_script_http_info_; |
| 475 | 482 |
| 476 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_; | 483 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_; |
| 477 | 484 |
| 478 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion); | 485 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion); |
| 479 }; | 486 }; |
| 480 | 487 |
| 481 } // namespace content | 488 } // namespace content |
| 482 | 489 |
| 483 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ | 490 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ |
| OLD | NEW |