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

Unified Diff: headless/public/util/deterministic_dispatcher.h

Issue 2494683005: Fix bug where DeterministicDispatcher CHECKed for killed jobs (Closed)
Patch Set: Created 4 years, 1 month 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 | « no previous file | headless/public/util/deterministic_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: headless/public/util/deterministic_dispatcher.h
diff --git a/headless/public/util/deterministic_dispatcher.h b/headless/public/util/deterministic_dispatcher.h
index c2e73b6171084cef0a291821bc98b6b8223aa921..0fea383b9cc42e747b8daa65ad1ca3bf0193c649 100644
--- a/headless/public/util/deterministic_dispatcher.h
+++ b/headless/public/util/deterministic_dispatcher.h
@@ -10,6 +10,7 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
+#include "base/memory/weak_ptr.h"
#include "base/single_thread_task_runner.h"
#include "base/synchronization/lock.h"
#include "headless/public/util/url_request_dispatcher.h"
@@ -54,6 +55,8 @@ class DeterministicDispatcher : public URLRequestDispatcher {
// |io_thread_task_runner_|
bool dispatch_pending_;
+ base::WeakPtrFactory<DeterministicDispatcher> weak_ptr_factory_;
+
DISALLOW_COPY_AND_ASSIGN(DeterministicDispatcher);
};
« no previous file with comments | « no previous file | headless/public/util/deterministic_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698