diff options
author | rtenneti@chromium.org <rtenneti@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-02 18:11:15 +0000 |
---|---|---|
committer | rtenneti@chromium.org <rtenneti@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-02 18:11:15 +0000 |
commit | 0b56518238d362b26730e3ce2f80c01357355ab9 (patch) | |
tree | 06e241cd886d35a9591d03aebed63ac7c8fc34ae /chrome/browser/browser_process_impl.h | |
parent | 634739bf391585057f2f1a9f8f173d418958ae0f (diff) | |
download | chromium_src-0b56518238d362b26730e3ce2f80c01357355ab9.zip chromium_src-0b56518238d362b26730e3ce2f80c01357355ab9.tar.gz chromium_src-0b56518238d362b26730e3ce2f80c01357355ab9.tar.bz2 |
Reverting the revert 76468. Removed include for browser_thread.h.
Enable the WATCHDOG thread that monitors browser threads for their
responsiveness using ping-pong messaging. WACTHDOG thread also
collects statistics for response time for each thread via histograms.
This CL was approved http://codereview.chromium.org/6588039
BUG=71378, 73915, 73844, 73975
TEST=performance tests
TBR=jar
Review URL: http://codereview.chromium.org/6591091
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76561 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_process_impl.h')
-rw-r--r-- | chrome/browser/browser_process_impl.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/browser_process_impl.h b/chrome/browser/browser_process_impl.h index 581650a..cccd985 100644 --- a/chrome/browser/browser_process_impl.h +++ b/chrome/browser/browser_process_impl.h @@ -57,6 +57,7 @@ class BrowserProcessImpl : public BrowserProcess, #if defined(USE_X11) virtual base::Thread* background_x11_thread(); #endif + virtual WatchDogThread* watchdog_thread(); virtual ProfileManager* profile_manager(); virtual PrefService* local_state(); virtual DevToolsManager* devtools_manager(); @@ -124,6 +125,7 @@ class BrowserProcessImpl : public BrowserProcess, void CreateDBThread(); void CreateProcessLauncherThread(); void CreateCacheThread(); + void CreateWatchdogThread(); void CreateTemplateURLModel(); void CreateProfileManager(); void CreateWebDataService(); @@ -171,6 +173,9 @@ class BrowserProcessImpl : public BrowserProcess, bool created_cache_thread_; scoped_ptr<base::Thread> cache_thread_; + bool created_watchdog_thread_; + scoped_ptr<WatchDogThread> watchdog_thread_; + bool created_profile_manager_; scoped_ptr<ProfileManager> profile_manager_; |