chromium/chrome/browser/enterprise/idle/dialog_manager.h

// Copyright 2023 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_ENTERPRISE_IDLE_DIALOG_MANAGER_H_
#define CHROME_BROWSER_ENTERPRISE_IDLE_DIALOG_MANAGER_H_

#include "base/callback_list.h"
#include "base/containers/flat_set.h"
#include "base/functional/callback.h"
#include "base/memory/weak_ptr.h"
#include "base/no_destructor.h"
#include "base/time/time.h"
#include "base/timer/timer.h"
#include "chrome/browser/enterprise/idle/action.h"
#include "chrome/browser/ui/idle_dialog.h"
#include "ui/views/widget/widget.h"

class Profile;

namespace enterprise_idle {

// A singleton that manages IdleDialog's state. Shows the dialog, manages its
// expiration, and runs a callback when it closes.
//
// The dialog is anchored to the currently-active browser window. If there is no
// active browser window (e.g. user is in another app), the timer is completely
// skipped and other actions resolve immediately.
class DialogManager {};

}  // namespace enterprise_idle

#endif  // CHROME_BROWSER_ENTERPRISE_IDLE_DIALOG_MANAGER_H_