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

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

Issue 19602003: Use a direct include of the message_loop header in chrome/browser/, part 7. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 5 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 #include <map> 45 #include <map>
46 #include <string> 46 #include <string>
47 #include <vector> 47 #include <vector>
48 48
49 #include "base/basictypes.h" 49 #include "base/basictypes.h"
50 #include "base/command_line.h" 50 #include "base/command_line.h"
51 #include "base/gtest_prod_util.h" 51 #include "base/gtest_prod_util.h"
52 #include "base/memory/ref_counted.h" 52 #include "base/memory/ref_counted.h"
53 #include "base/memory/weak_ptr.h" 53 #include "base/memory/weak_ptr.h"
54 #include "base/message_loop.h" 54 #include "base/message_loop/message_loop.h"
55 #include "base/metrics/histogram.h" 55 #include "base/metrics/histogram.h"
56 #include "base/synchronization/lock.h" 56 #include "base/synchronization/lock.h"
57 #include "base/threading/platform_thread.h" 57 #include "base/threading/platform_thread.h"
58 #include "base/threading/thread.h" 58 #include "base/threading/thread.h"
59 #include "base/threading/watchdog.h" 59 #include "base/threading/watchdog.h"
60 #include "base/time/time.h" 60 #include "base/time/time.h"
61 #include "content/public/browser/browser_thread.h" 61 #include "content/public/browser/browser_thread.h"
62 #include "content/public/browser/notification_observer.h" 62 #include "content/public/browser/notification_observer.h"
63 #include "content/public/browser/notification_registrar.h" 63 #include "content/public/browser/notification_registrar.h"
64 64
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after
624 // shutdown_watchdog_ watches for hangs during shutdown. 624 // shutdown_watchdog_ watches for hangs during shutdown.
625 base::Watchdog* shutdown_watchdog_; 625 base::Watchdog* shutdown_watchdog_;
626 626
627 // The |thread_id_| on which this object is constructed. 627 // The |thread_id_| on which this object is constructed.
628 const base::PlatformThreadId thread_id_; 628 const base::PlatformThreadId thread_id_;
629 629
630 DISALLOW_COPY_AND_ASSIGN(ShutdownWatcherHelper); 630 DISALLOW_COPY_AND_ASSIGN(ShutdownWatcherHelper);
631 }; 631 };
632 632
633 #endif // CHROME_BROWSER_METRICS_THREAD_WATCHER_H_ 633 #endif // CHROME_BROWSER_METRICS_THREAD_WATCHER_H_
OLDNEW
« no previous file with comments | « chrome/browser/metrics/metrics_service_unittest.cc ('k') | chrome/browser/metrics/thread_watcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698