blob: 6b1efd7fa84e5063495ec6bb99e433d5733f92a2 [file] [log] [blame]
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ASH_PROJECTOR_MODEL_PROJECTOR_SESSION_IMPL_H_
#define ASH_PROJECTOR_MODEL_PROJECTOR_SESSION_IMPL_H_
#include "ash/ash_export.h"
#include "ash/public/cpp/projector/projector_session.h"
#include "base/observer_list.h"
#include "base/observer_list_types.h"
namespace ash {
class ASH_EXPORT ProjectorSessionImpl : public ProjectorSession {
public:
ProjectorSessionImpl();
ProjectorSessionImpl(const ProjectorSessionImpl&) = delete;
ProjectorSessionImpl& operator=(const ProjectorSessionImpl&) = delete;
~ProjectorSessionImpl() override;
// Starts or stops the projector session.
void Start(SourceType preset_source_type = SourceType::kUnset);
void Stop();
// ProjectorSession:
void AddObserver(ProjectorSessionObserver* observer) override;
void RemoveObserver(ProjectorSessionObserver* observer) override;
private:
void NotifySessionActiveStateChanged(bool active);
base::ObserverList<ProjectorSessionObserver> observers_;
};
} // namespace ash
#endif // ASH_PROJECTOR_MODEL_PROJECTOR_SESSION_IMPL_H_