OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // This file defines a WatchDog thread that monitors the responsiveness of other | 5 // This file defines a WatchDog thread that monitors the responsiveness of other |
6 // browser threads like UI, IO, DB, FILE and CACHED threads. It also defines | 6 // browser threads like UI, IO, DB, FILE and CACHED threads. It also defines |
7 // ThreadWatcher class which performs health check on threads that would like to | 7 // ThreadWatcher class which performs health check on threads that would like to |
8 // be watched. This file also defines ThreadWatcherList class that has list of | 8 // be watched. This file also defines ThreadWatcherList class that has list of |
9 // all active ThreadWatcher objects. | 9 // all active ThreadWatcher objects. |
10 // | 10 // |
(...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
542 private: | 542 private: |
543 // shutdown_watchdog_ watches for hangs during shutdown. | 543 // shutdown_watchdog_ watches for hangs during shutdown. |
544 base::Watchdog* shutdown_watchdog_; | 544 base::Watchdog* shutdown_watchdog_; |
545 | 545 |
546 // The |thread_id_| on which this object is constructed. | 546 // The |thread_id_| on which this object is constructed. |
547 const base::PlatformThreadId thread_id_; | 547 const base::PlatformThreadId thread_id_; |
548 | 548 |
549 DISALLOW_COPY_AND_ASSIGN(ShutdownWatcherHelper); | 549 DISALLOW_COPY_AND_ASSIGN(ShutdownWatcherHelper); |
550 }; | 550 }; |
551 | 551 |
552 // DISABLE_RUNNABLE_METHOD_REFCOUNT is a convenience macro for disabling | |
553 // refcounting of ThreadWatcher and ThreadWatcherList classes. | |
554 DISABLE_RUNNABLE_METHOD_REFCOUNT(ThreadWatcher); | |
555 DISABLE_RUNNABLE_METHOD_REFCOUNT(ThreadWatcherList); | |
556 | |
557 #endif // CHROME_BROWSER_METRICS_THREAD_WATCHER_H_ | 552 #endif // CHROME_BROWSER_METRICS_THREAD_WATCHER_H_ |
OLD | NEW |