chromium/chrome/browser/ash/file_manager/virtual_tasks/ms365_virtual_task.h

// Copyright 2024 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_FILE_MANAGER_VIRTUAL_TASKS_MS365_VIRTUAL_TASK_H_
#define CHROME_BROWSER_ASH_FILE_MANAGER_VIRTUAL_TASKS_MS365_VIRTUAL_TASK_H_

#include <string>
#include <vector>

#include "chrome/browser/ash/file_manager/virtual_file_tasks.h"

class GURL;
class Profile;

namespace storage {
class FileSystemURL;
}  // namespace storage

namespace file_manager::file_tasks {

struct TaskDescriptor;

// A task to launch the upload-to-cloud workflow for Microsoft 365/OneDrive.
class Ms365VirtualTask : public VirtualTask {
 public:
  Ms365VirtualTask();

  bool IsEnabled(Profile* profile) const override;

  std::string id() const override;

  std::string title() const override;

  GURL icon_url() const override;

  bool IsDlpBlocked(
      const std::vector<std::string>& dlp_source_urls) const override;

  bool Execute(
      Profile* profile,
      const TaskDescriptor& task,
      const std::vector<storage::FileSystemURL>& file_urls) const override;
};

}  // namespace file_manager::file_tasks

#endif  // CHROME_BROWSER_ASH_FILE_MANAGER_VIRTUAL_TASKS_MS365_VIRTUAL_TASK_H_