text_log_list.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. // Copyright 2014 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. #ifndef COMPONENTS_WEBRTC_LOGGING_BROWSER_TEXT_LOG_LIST_H_
  5. #define COMPONENTS_WEBRTC_LOGGING_BROWSER_TEXT_LOG_LIST_H_
  6. #include "base/files/file_path.h"
  7. class UploadList;
  8. namespace content {
  9. class BrowserContext;
  10. } // namespace content
  11. namespace webrtc_logging {
  12. class TextLogList {
  13. public:
  14. // Creates the upload list for a browser context. The upload list loads and
  15. // parses a text file list of WebRTC logs stored locally and/or uploaded.
  16. static UploadList* CreateWebRtcLogList(
  17. content::BrowserContext* browser_context);
  18. // Gets the file path for the log directory in a browser context's directory.
  19. // The directory name will be appended to |browser_context_path| and returned.
  20. static base::FilePath GetWebRtcLogDirectoryForBrowserContextPath(
  21. const base::FilePath& browser_context_path);
  22. // Gets the file path for the log list file in a directory. The log list file
  23. // name will be appended to |dir| and returned.
  24. static base::FilePath GetWebRtcLogListFileForDirectory(
  25. const base::FilePath& dir);
  26. };
  27. } // namespace webrtc_logging
  28. #endif // COMPONENTS_WEBRTC_LOGGING_BROWSER_TEXT_LOG_LIST_H_