| // Copyright 2019 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_ASSISTANT_ASSISTANT_STATE_CONTROLLER_H_ |
| #define ASH_ASSISTANT_ASSISTANT_STATE_CONTROLLER_H_ |
| |
| #include "ash/ash_export.h" |
| #include "ash/public/cpp/assistant/assistant_state.h" |
| #include "ash/public/cpp/session/session_observer.h" |
| #include "base/macros.h" |
| |
| namespace ash { |
| |
| // Provide access of Assistant related prefs and states to the clients. |
| class ASH_EXPORT AssistantStateController : public AssistantState, |
| public SessionObserver { |
| public: |
| AssistantStateController(); |
| ~AssistantStateController() override; |
| |
| private: |
| // SessionObserver: |
| void OnActiveUserPrefServiceChanged(PrefService* pref_service) override; |
| |
| ScopedSessionObserver session_observer_; |
| |
| DISALLOW_COPY_AND_ASSIGN(AssistantStateController); |
| }; |
| |
| } // namespace ash |
| |
| #endif // ASH_ASSISTANT_ASSISTANT_STATE_CONTROLLER_H_ |