#ifndef ASH_COMPONENTS_ARC_SESSION_CONNECTION_NOTIFIER_H_
#define ASH_COMPONENTS_ARC_SESSION_CONNECTION_NOTIFIER_H_
#include "base/observer_list.h"
#include "base/threading/thread_checker.h"
namespace arc {
namespace internal {
class ConnectionObserverBase;
class ConnectionNotifier {
public:
ConnectionNotifier();
ConnectionNotifier(const ConnectionNotifier&) = delete;
ConnectionNotifier& operator=(const ConnectionNotifier&) = delete;
~ConnectionNotifier();
void AddObserver(ConnectionObserverBase* observer);
void RemoveObserver(ConnectionObserverBase* observer);
void NotifyConnectionReady();
void NotifyConnectionClosed();
private:
THREAD_CHECKER(thread_checker_);
base::ObserverList<ConnectionObserverBase>::Unchecked observer_list_;
};
}
}
#endif