1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
ash / webui / files_internals / files_internals_ui_delegate.h [blame]
// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ASH_WEBUI_FILES_INTERNALS_FILES_INTERNALS_UI_DELEGATE_H_
#define ASH_WEBUI_FILES_INTERNALS_FILES_INTERNALS_UI_DELEGATE_H_
#include "base/functional/callback_forward.h"
#include "base/values.h"
namespace ash {
// Delegate to expose //chrome services to //ash/webui FilesInternalsUI.
class FilesInternalsUIDelegate {
public:
virtual ~FilesInternalsUIDelegate() = default;
virtual void GetDebugJSON(
base::OnceCallback<void(const base::Value&)> callback) const = 0;
virtual void GetDownloadsFSURLs(
base::OnceCallback<void(const std::string_view)> callback) const = 0;
virtual void GetFileTasks(
const std::string& file_system_url,
base::OnceCallback<void(const std::string_view)> callback) const = 0;
virtual bool GetSmbfsEnableVerboseLogging() const = 0;
virtual void SetSmbfsEnableVerboseLogging(bool enabled) = 0;
virtual std::string GetOfficeFileHandlers() const = 0;
virtual void ClearOfficeFileHandlers() = 0;
virtual bool GetMoveConfirmationShownForDrive() const = 0;
virtual bool GetMoveConfirmationShownForOneDrive() const = 0;
virtual bool GetMoveConfirmationShownForLocalToDrive() const = 0;
virtual bool GetMoveConfirmationShownForLocalToOneDrive() const = 0;
virtual bool GetMoveConfirmationShownForCloudToDrive() const = 0;
virtual bool GetMoveConfirmationShownForCloudToOneDrive() const = 0;
virtual bool GetAlwaysMoveOfficeFilesToDrive() const = 0;
virtual void SetAlwaysMoveOfficeFilesToDrive(bool always_move) = 0;
virtual bool GetAlwaysMoveOfficeFilesToOneDrive() const = 0;
virtual void SetAlwaysMoveOfficeFilesToOneDrive(bool always_move) = 0;
};
} // namespace ash
#endif // ASH_WEBUI_FILES_INTERNALS_FILES_INTERNALS_UI_DELEGATE_H_