- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / browser / media / webrtc_log_upload_list.cc
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.
4
5 #include "chrome/browser/media/webrtc_log_upload_list.h"
6
7 #include "base/files/file_path.h"
8 #include "base/path_service.h"
9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/common/chrome_paths.h"
11
12 namespace {
13
14 const char* kWebRtcLogListFilename = "webrtc_log_uploads.log";
15
16 }
17
18 // static
19 WebRtcLogUploadList* WebRtcLogUploadList::Create(Delegate* delegate,
20                                                  Profile* profile) {
21   return new WebRtcLogUploadList(delegate, GetFilePathForProfile(profile));
22 }
23
24 // static
25 base::FilePath WebRtcLogUploadList::GetFilePathForProfile(Profile* profile) {
26   base::FilePath log_dir_path = profile->GetPath();
27   return log_dir_path.AppendASCII(kWebRtcLogListFilename);
28 }
29
30 WebRtcLogUploadList::WebRtcLogUploadList(Delegate* delegate,
31                                          const base::FilePath& upload_log_path)
32     : UploadList(delegate, upload_log_path) {}
33
34 WebRtcLogUploadList::~WebRtcLogUploadList() {}