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

Unified Diff: ash/session/session_state_observer.h

Issue 2041233004: mash: Move //ash/session to //ash/common/session (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 months 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 | « ash/session/session_state_delegate.cc ('k') | ash/session/session_state_observer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/session/session_state_observer.h
diff --git a/ash/session/session_state_observer.h b/ash/session/session_state_observer.h
deleted file mode 100644
index a31834bd0625973acac60bd358a91a6d74196733..0000000000000000000000000000000000000000
--- a/ash/session/session_state_observer.h
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright (c) 2013 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_SESSION_SESSION_STATE_OBSERVER_H_
-#define ASH_SESSION_SESSION_STATE_OBSERVER_H_
-
-#include <string>
-
-#include "ash/ash_export.h"
-#include "ash/session/session_state_delegate.h"
-#include "base/macros.h"
-
-class AccountId;
-
-namespace ash {
-
-class ASH_EXPORT SessionStateObserver {
- public:
- // Called when active user has changed.
- virtual void ActiveUserChanged(const AccountId& account_id) {}
-
- // Called when another user gets added to the existing session.
- virtual void UserAddedToSession(const AccountId& account_id) {}
-
- // Called when session state is changed.
- virtual void SessionStateChanged(SessionStateDelegate::SessionState state) {}
-
- protected:
- virtual ~SessionStateObserver() {}
-};
-
-// A class to attach / detach an object as a session state observer with a
-// scoped pointer.
-class ASH_EXPORT ScopedSessionStateObserver {
- public:
- explicit ScopedSessionStateObserver(ash::SessionStateObserver* observer);
- virtual ~ScopedSessionStateObserver();
-
- private:
- ash::SessionStateObserver* observer_;
-
- DISALLOW_COPY_AND_ASSIGN(ScopedSessionStateObserver);
-};
-
-} // namespace ash
-
-#endif // ASH_SESSION_SESSION_STATE_OBSERVER_H_
« no previous file with comments | « ash/session/session_state_delegate.cc ('k') | ash/session/session_state_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698