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

Side by Side Diff: content/browser/service_worker/service_worker_version.h

Issue 1342733002: ServiceWorker: log when the script's loaded separately from thread start (chromium) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test fix Created 5 years, 3 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
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_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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698