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

Side by Side Diff: chrome/browser/media/webrtc_log_util.h

Issue 273153003: Remove stray platform_file.h from chrome and components (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove "using" Created 6 years, 7 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 2014 The Chromium Authors. All rights reserved. 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 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 #ifndef CHROME_BROWSER_MEDIA_WEBRTC_LOG_UTIL_H_ 5 #ifndef CHROME_BROWSER_MEDIA_WEBRTC_LOG_UTIL_H_
6 #define CHROME_BROWSER_MEDIA_WEBRTC_LOG_UTIL_H_ 6 #define CHROME_BROWSER_MEDIA_WEBRTC_LOG_UTIL_H_
7 7
8 #include "base/platform_file.h" 8 #include "base/files/file_path.h"
9 #include "base/time/time.h"
9 10
10 class WebRtcLogUtil { 11 class WebRtcLogUtil {
11 public: 12 public:
12 // Deletes logs files older that 5 days. Updates the log file list. Must be 13 // Deletes logs files older that 5 days. Updates the log file list. Must be
13 // called on the FILE thread. 14 // called on the FILE thread.
14 static void DeleteOldWebRtcLogFiles(const base::FilePath& log_dir); 15 static void DeleteOldWebRtcLogFiles(const base::FilePath& log_dir);
15 16
16 // Deletes logs files older that 5 days and logs younger than 17 // 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 // |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 // 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 // equal to DeleteOldWebRtcLogFiles(). Must be called on the FILE thread.
20 static void DeleteOldAndRecentWebRtcLogFiles( 21 static void DeleteOldAndRecentWebRtcLogFiles(
21 const base::FilePath& log_dir, 22 const base::FilePath& log_dir,
22 const base::Time& delete_begin_time); 23 const base::Time& delete_begin_time);
23 24
24 // Calls DeleteOldWebRtcLogFiles() for all profiles. Must be called on the UI 25 // Calls DeleteOldWebRtcLogFiles() for all profiles. Must be called on the UI
25 // thread. 26 // thread.
26 static void DeleteOldWebRtcLogFilesForAllProfiles(); 27 static void DeleteOldWebRtcLogFilesForAllProfiles();
27 }; 28 };
28 29
29 #endif // CHROME_BROWSER_MEDIA_WEBRTC_LOG_UTIL_H_ 30 #endif // CHROME_BROWSER_MEDIA_WEBRTC_LOG_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/browser/first_run/upgrade_util_linux.cc ('k') | chrome/browser/media_galleries/fileapi/iapps_data_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698