Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(582)

Side by Side Diff: components/session_manager/core/session_manager_observer.h

Issue 2510983002: session_manager: Add SessionManagerObserver interface (Closed)
Patch Set: add default ctor Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/session_manager/core/session_manager.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 "base/macros.h"
9 #include "components/session_manager/session_manager_types.h"
10
11 namespace session_manager {
12
13 // An observer interface for SessionManager.
14 // TODO(xiyuan): Use this to replace UserManager::UserSessionStateObserver,
15 // http://crbug.com/657149.
16 class SessionManagerObserver {
17 public:
18 SessionManagerObserver() = default;
19
20 // Invoked when session state is changed.
21 virtual void OnSessionStateChanged() = 0;
22
23 protected:
24 virtual ~SessionManagerObserver() = default;
25
26 private:
27 DISALLOW_COPY_AND_ASSIGN(SessionManagerObserver);
28 };
29
30 } // namespace session_manager
31
32 #endif // COMPONENTS_SESSION_MANAGER_CORE_SESSION_MANAGER_OBSERVER_H_
OLDNEW
« no previous file with comments | « components/session_manager/core/session_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698