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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/session_manager/core/session_manager.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/session_manager/core/session_manager_observer.h
diff --git a/components/session_manager/core/session_manager_observer.h b/components/session_manager/core/session_manager_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..b702a2d47d8cb4c2e250176efcdc41a5aac4c50a
--- /dev/null
+++ b/components/session_manager/core/session_manager_observer.h
@@ -0,0 +1,32 @@
+// Copyright 2016 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 COMPONENTS_SESSION_MANAGER_CORE_SESSION_MANAGER_OBSERVER_H_
+#define COMPONENTS_SESSION_MANAGER_CORE_SESSION_MANAGER_OBSERVER_H_
+
+#include "base/macros.h"
+#include "components/session_manager/session_manager_types.h"
+
+namespace session_manager {
+
+// An observer interface for SessionManager.
+// TODO(xiyuan): Use this to replace UserManager::UserSessionStateObserver,
+// http://crbug.com/657149.
+class SessionManagerObserver {
+ public:
+ SessionManagerObserver() = default;
+
+ // Invoked when session state is changed.
+ virtual void OnSessionStateChanged() = 0;
+
+ protected:
+ virtual ~SessionManagerObserver() = default;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(SessionManagerObserver);
+};
+
+} // namespace session_manager
+
+#endif // COMPONENTS_SESSION_MANAGER_CORE_SESSION_MANAGER_OBSERVER_H_
« 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