diagnostics_browser_delegate.h 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. // Copyright 2022 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 ASH_SYSTEM_DIAGNOSTICS_DIAGNOSTICS_BROWSER_DELEGATE_H_
  5. #define ASH_SYSTEM_DIAGNOSTICS_DIAGNOSTICS_BROWSER_DELEGATE_H_
  6. #include "ash/ash_export.h"
  7. #include "base/files/file_path.h"
  8. namespace ash {
  9. namespace diagnostics {
  10. // Interface for retrieving state information from browser to be used by
  11. // DiagnosticsLogController.
  12. class ASH_EXPORT DiagnosticsBrowserDelegate {
  13. public:
  14. DiagnosticsBrowserDelegate();
  15. DiagnosticsBrowserDelegate(const DiagnosticsBrowserDelegate&) = delete;
  16. DiagnosticsBrowserDelegate& operator=(const DiagnosticsBrowserDelegate&) =
  17. delete;
  18. virtual ~DiagnosticsBrowserDelegate();
  19. // Override to retrieve full path to active user's profile directory or an
  20. // empty path if there is no active user or the user's profile has not been
  21. // loaded yet.
  22. virtual base::FilePath GetActiveUserProfileDir() = 0;
  23. };
  24. } // namespace diagnostics
  25. } // namespace ash
  26. #endif // ASH_SYSTEM_DIAGNOSTICS_DIAGNOSTICS_BROWSER_DELEGATE_H_