summaryrefslogtreecommitdiffstats
path: root/chrome/browser/media/webrtc_log_upload_list.h
blob: 51e2c808cbfed252cdb44183411bc18b2ac5b380 (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
31
32
33
34
// Copyright 2013 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_UPLOAD_LIST_H_
#define CHROME_BROWSER_MEDIA_WEBRTC_LOG_UPLOAD_LIST_H_

#include "chrome/browser/upload_list.h"

class Profile;

// Loads and parses a text file list of uploaded WebRTC logs.
class WebRtcLogUploadList : public UploadList {
 public:
  // Creates the WebRTC log upload list with the given callback delegate for
  // a profile.
  static WebRtcLogUploadList* Create(Delegate* delegate, Profile* profile);

  // Get the file path for the log list file for a profile.
  static base::FilePath GetFilePathForProfile(Profile* profile);

  // Creates a new WebRTC log upload list with the given callback delegate.
  // |upload_log_path| is the full path to the file to read the list from.
  explicit WebRtcLogUploadList(Delegate* delegate,
                               const base::FilePath& upload_log_path);

 protected:
  virtual ~WebRtcLogUploadList();

 private:
  DISALLOW_COPY_AND_ASSIGN(WebRtcLogUploadList);
};

#endif  // CHROME_BROWSER_MEDIA_WEBRTC_LOG_UPLOAD_LIST_H_