// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_ASH_SYSTEM_WEB_APPS_APPS_FILES_INTERNALS_UI_DELEGATE_H_
#define CHROME_BROWSER_ASH_SYSTEM_WEB_APPS_APPS_FILES_INTERNALS_UI_DELEGATE_H_
#include "ash/webui/files_internals/files_internals_ui_delegate.h"
#include "base/memory/raw_ptr.h"
namespace content {
class WebUI;
} // namespace content
// Chrome browser FilesInternalsUIDelegate implementation.
class ChromeFilesInternalsUIDelegate : public ash::FilesInternalsUIDelegate {
public:
explicit ChromeFilesInternalsUIDelegate(content::WebUI* web_ui);
ChromeFilesInternalsUIDelegate(const ChromeFilesInternalsUIDelegate&) =
delete;
ChromeFilesInternalsUIDelegate& operator=(
const ChromeFilesInternalsUIDelegate&) = delete;
~ChromeFilesInternalsUIDelegate() override;
void GetDebugJSON(
base::OnceCallback<void(const base::Value&)> callback) const override;
void GetDownloadsFSURLs(
base::OnceCallback<void(const std::string_view)> callback) const override;
void GetFileTasks(
const std::string& mime_type,
base::OnceCallback<void(const std::string_view)> callback) const override;
bool GetSmbfsEnableVerboseLogging() const override;
void SetSmbfsEnableVerboseLogging(bool enabled) override;
std::string GetOfficeFileHandlers() const override;
void ClearOfficeFileHandlers() override;
bool GetMoveConfirmationShownForDrive() const override;
bool GetMoveConfirmationShownForOneDrive() const override;
bool GetMoveConfirmationShownForLocalToDrive() const override;
bool GetMoveConfirmationShownForLocalToOneDrive() const override;
bool GetMoveConfirmationShownForCloudToDrive() const override;
bool GetMoveConfirmationShownForCloudToOneDrive() const override;
bool GetAlwaysMoveOfficeFilesToDrive() const override;
void SetAlwaysMoveOfficeFilesToDrive(bool always_move) override;
bool GetAlwaysMoveOfficeFilesToOneDrive() const override;
void SetAlwaysMoveOfficeFilesToOneDrive(bool always_move) override;
private:
raw_ptr<content::WebUI> web_ui_; // Owns |this|.
};
#endif // CHROME_BROWSER_ASH_SYSTEM_WEB_APPS_APPS_FILES_INTERNALS_UI_DELEGATE_H_