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

Unified Diff: content/browser/service_worker/embedded_worker_instance.h

Issue 2627723004: ServiceWorker: adding a crash key to check if a new process is launched (Closed)
Patch Set: Don't record is_new_process when process hasn't been allocated Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromecast/crash/cast_crash_keys.cc ('k') | content/browser/service_worker/embedded_worker_instance.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/service_worker/embedded_worker_instance.h
diff --git a/content/browser/service_worker/embedded_worker_instance.h b/content/browser/service_worker/embedded_worker_instance.h
index 3152613ed3880f16bb4257d6a749902629d2d872..2054db87776bbaca59c169e8873c47a3139d3a5d 100644
--- a/content/browser/service_worker/embedded_worker_instance.h
+++ b/content/browser/service_worker/embedded_worker_instance.h
@@ -136,6 +136,7 @@ class CONTENT_EXPORT EmbeddedWorkerInstance {
DCHECK_EQ(EmbeddedWorkerStatus::STARTING, status());
return starting_phase_;
}
+ int restart_count() const { return restart_count_; }
int process_id() const;
int thread_id() const { return thread_id_; }
// This should be called only when the worker instance has a valid process,
@@ -296,6 +297,7 @@ class CONTENT_EXPORT EmbeddedWorkerInstance {
EmbeddedWorkerStatus status_;
StartingPhase starting_phase_;
+ int restart_count_;
// Current running information.
std::unique_ptr<EmbeddedWorkerInstance::WorkerProcessHandle> process_handle_;
« no previous file with comments | « chromecast/crash/cast_crash_keys.cc ('k') | content/browser/service_worker/embedded_worker_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698