| OLD | NEW |
| (Empty) |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_MEDIA_WEBRTC_LOG_UTIL_H_ | |
| 6 #define CHROME_BROWSER_MEDIA_WEBRTC_LOG_UTIL_H_ | |
| 7 | |
| 8 #include "base/files/file_path.h" | |
| 9 #include "base/time/time.h" | |
| 10 | |
| 11 class WebRtcLogUtil { | |
| 12 public: | |
| 13 // Deletes logs files older that 5 days. Updates the log file list. Must be | |
| 14 // called on the FILE thread. | |
| 15 static void DeleteOldWebRtcLogFiles(const base::FilePath& log_dir); | |
| 16 | |
| 17 // Deletes logs files older that 5 days and logs younger than | |
| 18 // |delete_begin_time|. Updates the log file list. If |delete_begin_time| is | |
| 19 // base::time::Max(), no recent logs will be deleted, and the function is | |
| 20 // equal to DeleteOldWebRtcLogFiles(). Must be called on the FILE thread. | |
| 21 static void DeleteOldAndRecentWebRtcLogFiles( | |
| 22 const base::FilePath& log_dir, | |
| 23 const base::Time& delete_begin_time); | |
| 24 | |
| 25 // Calls DeleteOldWebRtcLogFiles() for all profiles. Must be called on the UI | |
| 26 // thread. | |
| 27 static void DeleteOldWebRtcLogFilesForAllProfiles(); | |
| 28 }; | |
| 29 | |
| 30 #endif // CHROME_BROWSER_MEDIA_WEBRTC_LOG_UTIL_H_ | |
| OLD | NEW |