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 <queue> | 9 #include <queue> |
10 #include <set> | 10 #include <set> |
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
390 }; | 390 }; |
391 | 391 |
392 // Timeout for the worker to start. | 392 // Timeout for the worker to start. |
393 static const int kStartWorkerTimeoutMinutes; | 393 static const int kStartWorkerTimeoutMinutes; |
394 // Timeout for a request to be handled. | 394 // Timeout for a request to be handled. |
395 static const int kRequestTimeoutMinutes; | 395 static const int kRequestTimeoutMinutes; |
396 | 396 |
397 ~ServiceWorkerVersion() override; | 397 ~ServiceWorkerVersion() override; |
398 | 398 |
399 // EmbeddedWorkerInstance::Listener overrides: | 399 // EmbeddedWorkerInstance::Listener overrides: |
400 void OnScriptLoaded() override; | 400 void OnThreadStarted() override; |
401 void OnStarting() override; | 401 void OnStarting() override; |
402 void OnStarted() override; | 402 void OnStarted() override; |
403 void OnStopping() override; | 403 void OnStopping() override; |
404 void OnStopped(EmbeddedWorkerInstance::Status old_status) override; | 404 void OnStopped(EmbeddedWorkerInstance::Status old_status) override; |
405 void OnDetached(EmbeddedWorkerInstance::Status old_status) override; | 405 void OnDetached(EmbeddedWorkerInstance::Status old_status) override; |
406 void OnReportException(const base::string16& error_message, | 406 void OnReportException(const base::string16& error_message, |
407 int line_number, | 407 int line_number, |
408 int column_number, | 408 int column_number, |
409 const GURL& source_url) override; | 409 const GURL& source_url) override; |
410 void OnReportConsoleMessage(int source_identifier, | 410 void OnReportConsoleMessage(int source_identifier, |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
634 const bool should_exclude_from_uma_ = false; | 634 const bool should_exclude_from_uma_ = false; |
635 | 635 |
636 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_; | 636 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_; |
637 | 637 |
638 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion); | 638 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion); |
639 }; | 639 }; |
640 | 640 |
641 } // namespace content | 641 } // namespace content |
642 | 642 |
643 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ | 643 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ |
OLD | NEW |