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

Unified Diff: chrome/browser/metrics/thread_watcher.h

Issue 12356002: [NOT FOR COMMIT] Hacks to merge render compositor thread with UI thread (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | « build/android/pylib/base/base_test_sharder.py ('k') | content/browser/browser_main_loop.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/metrics/thread_watcher.h
diff --git a/chrome/browser/metrics/thread_watcher.h b/chrome/browser/metrics/thread_watcher.h
index 39d046872555545fdc5fa92008555e4182af8248..796c2bbeb5b80b25a9b7175af6f6778231cab0f7 100644
--- a/chrome/browser/metrics/thread_watcher.h
+++ b/chrome/browser/metrics/thread_watcher.h
@@ -403,6 +403,16 @@ class ThreadWatcherList {
// all thread watchers that are registered.
static void WakeUpAll();
+ // This method calls ThreadWatcher::StartWatching() to perform health check on
+ // the given |thread_id|.
+ static void StartWatching(
boliu 2013/02/27 20:10:09 Oops, this has nothing to do with this patch.
+ const content::BrowserThread::ID& thread_id,
+ const std::string& thread_name,
+ const base::TimeDelta& sleep_time,
+ const base::TimeDelta& unresponsive_time,
+ uint32 unresponsive_threshold,
+ const CrashOnHangThreadMap& crash_on_hang_threads);
+
private:
// Allow tests to access our innards for testing purposes.
friend class CustomThreadWatcher;
@@ -444,16 +454,6 @@ class ThreadWatcherList {
uint32 unresponsive_threshold,
const CrashOnHangThreadMap& crash_on_hang_threads);
- // This method calls ThreadWatcher::StartWatching() to perform health check on
- // the given |thread_id|.
- static void StartWatching(
- const content::BrowserThread::ID& thread_id,
- const std::string& thread_name,
- const base::TimeDelta& sleep_time,
- const base::TimeDelta& unresponsive_time,
- uint32 unresponsive_threshold,
- const CrashOnHangThreadMap& crash_on_hang_threads);
-
// Delete all thread watcher objects and remove them from global map. It also
// deletes |g_thread_watcher_list_|.
static void DeleteAll();
« no previous file with comments | « build/android/pylib/base/base_test_sharder.py ('k') | content/browser/browser_main_loop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698