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

Side by Side Diff: chrome/browser/metrics/thread_watcher.h

Issue 9034032: And now NewRunnableMethod(), you die. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix chrome_frame_automation Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/history/history_unittest.cc ('k') | chrome/browser/metrics/thread_watcher.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/history/history_unittest.cc ('k') | chrome/browser/metrics/thread_watcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698