blob: 6a4b00a94fb6c7452203c01d6c4dd12bb4e3d558 [file] [log] [blame]
// 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 COMPONENTS_WEBRTC_LOGGING_BROWSER_LOG_LIST_H_
#define COMPONENTS_WEBRTC_LOGGING_BROWSER_LOG_LIST_H_
#include "base/files/file_path.h"
class UploadList;
namespace content {
class BrowserContext;
} // namespace content
namespace webrtc_logging {
class LogList {
public:
// Creates the upload list with the given callback delegate for a
// browser context. The upload list loads and parses a text file list of
// WebRTC logs stored locally and/or uploaded.
static UploadList* CreateWebRtcLogList(
content::BrowserContext* browser_context);
// Gets the file path for the log directory in a browser context's directory.
// The directory name will be appended to |browser_context_path| and returned.
static base::FilePath GetWebRtcLogDirectoryForBrowserContextPath(
const base::FilePath& browser_context_path);
// Gets 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);
};
} // namespace webrtc_logging
#endif // COMPONENTS_WEBRTC_LOGGING_BROWSER_LOG_LIST_H_