[safe-browsing] Database full hash matches like prefix match.
[chromium-blink-merge.git] / chrome / browser / media / webrtc_log_util.h
blob1a0fb55eef55f9b8e33c7214785b2cad385ab60e
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.
5 #ifndef CHROME_BROWSER_MEDIA_WEBRTC_LOG_UTIL_H_
6 #define CHROME_BROWSER_MEDIA_WEBRTC_LOG_UTIL_H_
8 #include "base/platform_file.h"
10 class WebRtcLogUtil {
11 public:
12 // Deletes logs files older that 5 days. Updates the log file list. Must be
13 // called on the FILE thread.
14 static void DeleteOldWebRtcLogFiles(const base::FilePath& log_dir);
16 // Deletes logs files older that 5 days and logs younger than
17 // |delete_begin_time|. Updates the log file list. If |delete_begin_time| is
18 // base::time::Max(), no recent logs will be deleted, and the function is
19 // equal to DeleteOldWebRtcLogFiles(). Must be called on the FILE thread.
20 static void DeleteOldAndRecentWebRtcLogFiles(
21 const base::FilePath& log_dir,
22 const base::Time& delete_begin_time);
24 // Calls DeleteOldWebRtcLogFiles() for all profiles. Must be called on the UI
25 // thread.
26 static void DeleteOldWebRtcLogFilesForAllProfiles();
29 #endif // CHROME_BROWSER_MEDIA_WEBRTC_LOG_UTIL_H_