Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef COMPONENTS_SESSION_MANAGER_CORE_SESSION_MANAGER_OBSERVER_H_ | |
| 6 #define COMPONENTS_SESSION_MANAGER_CORE_SESSION_MANAGER_OBSERVER_H_ | |
| 7 | |
| 8 #include "components/session_manager/session_manager_types.h" | |
| 9 | |
| 10 namespace session_manager { | |
| 11 | |
| 12 // An observer interface for SessionManager. | |
| 13 // TODO(xiyuan): Use this to replace UserManager::UserSessionStateObserver. | |
|
achuithb
2016/11/17 00:31:23
Is there a bug that could be referenced here?
xiyuan
2016/11/17 16:57:24
Done. Used my refactoring tracking bug http://crbu
| |
| 14 class SessionManagerObserver { | |
| 15 public: | |
| 16 // Invoked when session state is changed. | |
| 17 virtual void OnSessionStateChanged() = 0; | |
| 18 }; | |
|
achuithb
2016/11/17 00:31:23
Let's add
public:
SessionManagerObserver() = def
xiyuan
2016/11/17 16:57:24
Added the virtual dtor and DISALLOW_COPY_AND_ASSIG
| |
| 19 | |
| 20 } // namespace session_manager | |
| 21 | |
| 22 #endif // COMPONENTS_SESSION_MANAGER_CORE_SESSION_MANAGER_OBSERVER_H_ | |
| OLD | NEW |