summaryrefslogtreecommitdiffstats
path: root/chrome/browser/media/webrtc_log_list.h
blob: 0d0bbce711bcbe62fbb4b9a198a9fdb4d7225348 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_BROWSER_MEDIA_WEBRTC_LOG_LIST_H_
#define CHROME_BROWSER_MEDIA_WEBRTC_LOG_LIST_H_

#include "chrome/browser/upload_list.h"

class Profile;

class WebRtcLogList {
 public:
  // Creates the upload list with the given callback delegate for a
  // profile. The upload list loads and parses a text file list of WebRTC
  // logs stored locally and/or uploaded.
  static UploadList* CreateWebRtcLogList(UploadList::Delegate* delegate,
                                         Profile* profile);

  // Get the file path for the log directory for a profile.
  static base::FilePath GetWebRtcLogDirectoryForProfile(
      const base::FilePath& profile_path);

  // Get the file path for the log list file in a directory. The log list file
  // name will be appended to |dir| and returned.
  static base::FilePath GetWebRtcLogListFileForDirectory(
      const base::FilePath& dir);
};

#endif  // CHROME_BROWSER_MEDIA_WEBRTC_LOG_LIST_H_