| OLD | NEW |
| 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_LIST_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_WEBRTC_WEBRTC_LOG_LIST_H_ |
| 6 #define CHROME_BROWSER_MEDIA_WEBRTC_LOG_LIST_H_ | 6 #define CHROME_BROWSER_MEDIA_WEBRTC_WEBRTC_LOG_LIST_H_ |
| 7 | 7 |
| 8 #include "components/upload_list/upload_list.h" | 8 #include "components/upload_list/upload_list.h" |
| 9 | 9 |
| 10 class Profile; | 10 class Profile; |
| 11 | 11 |
| 12 class WebRtcLogList { | 12 class WebRtcLogList { |
| 13 public: | 13 public: |
| 14 // Creates the upload list with the given callback delegate for a | 14 // Creates the upload list with the given callback delegate for a |
| 15 // profile. The upload list loads and parses a text file list of WebRTC | 15 // profile. The upload list loads and parses a text file list of WebRTC |
| 16 // logs stored locally and/or uploaded. | 16 // logs stored locally and/or uploaded. |
| 17 static UploadList* CreateWebRtcLogList(UploadList::Delegate* delegate, | 17 static UploadList* CreateWebRtcLogList(UploadList::Delegate* delegate, |
| 18 Profile* profile); | 18 Profile* profile); |
| 19 | 19 |
| 20 // Get the file path for the log directory for a profile. | 20 // Get the file path for the log directory for a profile. |
| 21 static base::FilePath GetWebRtcLogDirectoryForProfile( | 21 static base::FilePath GetWebRtcLogDirectoryForProfile( |
| 22 const base::FilePath& profile_path); | 22 const base::FilePath& profile_path); |
| 23 | 23 |
| 24 // Get the file path for the log list file in a directory. The log list file | 24 // Get the file path for the log list file in a directory. The log list file |
| 25 // name will be appended to |dir| and returned. | 25 // name will be appended to |dir| and returned. |
| 26 static base::FilePath GetWebRtcLogListFileForDirectory( | 26 static base::FilePath GetWebRtcLogListFileForDirectory( |
| 27 const base::FilePath& dir); | 27 const base::FilePath& dir); |
| 28 }; | 28 }; |
| 29 | 29 |
| 30 #endif // CHROME_BROWSER_MEDIA_WEBRTC_LOG_LIST_H_ | 30 #endif // CHROME_BROWSER_MEDIA_WEBRTC_WEBRTC_LOG_LIST_H_ |
| OLD | NEW |