Home | History | Annotate | Download | only in media
      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_LIST_H_
      6 #define CHROME_BROWSER_MEDIA_WEBRTC_LOG_LIST_H_
      7 
      8 #include "chrome/browser/upload_list.h"
      9 
     10 class Profile;
     11 
     12 class WebRtcLogList {
     13  public:
     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
     16   // logs stored locally and/or uploaded.
     17   static UploadList* CreateWebRtcLogList(UploadList::Delegate* delegate,
     18                                          Profile* profile);
     19 
     20   // Get the file path for the log directory for a profile.
     21   static base::FilePath GetWebRtcLogDirectoryForProfile(
     22       const base::FilePath& profile_path);
     23 
     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.
     26   static base::FilePath GetWebRtcLogListFileForDirectory(
     27       const base::FilePath& dir);
     28 };
     29 
     30 #endif  // CHROME_BROWSER_MEDIA_WEBRTC_LOG_LIST_H_
     31