diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-23 13:42:01 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-23 13:42:01 +0000 |
commit | a2229a6198e68c488f963519627e2a9d5c4429f4 (patch) | |
tree | 3895b2bf5c396c59464eafd4fac04b583f3df081 /chrome/browser/media/webrtc_log_util.h | |
parent | 8271d1eec4f8af80358be7167aa613c67ff6492e (diff) | |
download | chromium_src-a2229a6198e68c488f963519627e2a9d5c4429f4.zip chromium_src-a2229a6198e68c488f963519627e2a9d5c4429f4.tar.gz chromium_src-a2229a6198e68c488f963519627e2a9d5c4429f4.tar.bz2 |
Convert WebRtcLoggingHandlerHost to use the blocking thread pool. (try 2)
Also call base::GetLinuxDistro() on the blocking pool and not on the IO thread because it may block.
Original code review: https://codereview.chromium.org/299903002
BUG=381107
Review URL: https://codereview.chromium.org/345243002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@279101 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/media/webrtc_log_util.h')
-rw-r--r-- | chrome/browser/media/webrtc_log_util.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/chrome/browser/media/webrtc_log_util.h b/chrome/browser/media/webrtc_log_util.h index 1bc1f95..af4d06a 100644 --- a/chrome/browser/media/webrtc_log_util.h +++ b/chrome/browser/media/webrtc_log_util.h @@ -5,19 +5,22 @@ #ifndef CHROME_BROWSER_MEDIA_WEBRTC_LOG_UTIL_H_ #define CHROME_BROWSER_MEDIA_WEBRTC_LOG_UTIL_H_ -#include "base/files/file_path.h" -#include "base/time/time.h" +namespace base { +class FilePath; +class Time; +} class WebRtcLogUtil { public: // Deletes logs files older that 5 days. Updates the log file list. Must be - // called on the FILE thread. + // called on a thread that allows IO. static void DeleteOldWebRtcLogFiles(const base::FilePath& log_dir); // Deletes logs files older that 5 days and logs younger than // |delete_begin_time|. Updates the log file list. If |delete_begin_time| is // base::time::Max(), no recent logs will be deleted, and the function is - // equal to DeleteOldWebRtcLogFiles(). Must be called on the FILE thread. + // equal to DeleteOldWebRtcLogFiles(). Must be called on a thread that allows + // IO. static void DeleteOldAndRecentWebRtcLogFiles( const base::FilePath& log_dir, const base::Time& delete_begin_time); |