Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / media / webrtc_log_upload_list.h
blob51e2c808cbfed252cdb44183411bc18b2ac5b380
1 // Copyright 2013 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.
5 #ifndef CHROME_BROWSER_MEDIA_WEBRTC_LOG_UPLOAD_LIST_H_
6 #define CHROME_BROWSER_MEDIA_WEBRTC_LOG_UPLOAD_LIST_H_
8 #include "chrome/browser/upload_list.h"
10 class Profile;
12 // Loads and parses a text file list of uploaded WebRTC logs.
13 class WebRtcLogUploadList : public UploadList {
14 public:
15 // Creates the WebRTC log upload list with the given callback delegate for
16 // a profile.
17 static WebRtcLogUploadList* Create(Delegate* delegate, Profile* profile);
19 // Get the file path for the log list file for a profile.
20 static base::FilePath GetFilePathForProfile(Profile* profile);
22 // Creates a new WebRTC log upload list with the given callback delegate.
23 // |upload_log_path| is the full path to the file to read the list from.
24 explicit WebRtcLogUploadList(Delegate* delegate,
25 const base::FilePath& upload_log_path);
27 protected:
28 virtual ~WebRtcLogUploadList();
30 private:
31 DISALLOW_COPY_AND_ASSIGN(WebRtcLogUploadList);
34 #endif // CHROME_BROWSER_MEDIA_WEBRTC_LOG_UPLOAD_LIST_H_