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

Side by Side Diff: chrome/browser/ui/ash/session_state_delegate_chromeos.h

Issue 496563002: Multiprofile security: Show a warning messagebox when desktop casting/sharing is turned on upon user (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed release unit test failure on server Created 6 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ash/system/user/user_view.cc ('k') | chrome/browser/ui/ash/session_state_delegate_chromeos.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_ASH_SESSION_STATE_DELEGATE_CHROMEOS_H_ 5 #ifndef CHROME_BROWSER_UI_ASH_SESSION_STATE_DELEGATE_CHROMEOS_H_
6 #define CHROME_BROWSER_UI_ASH_SESSION_STATE_DELEGATE_CHROMEOS_H_ 6 #define CHROME_BROWSER_UI_ASH_SESSION_STATE_DELEGATE_CHROMEOS_H_
7 7
8 #include "ash/session/session_state_delegate.h" 8 #include "ash/session/session_state_delegate.h"
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 69
70 private: 70 private:
71 // Sets session state to |new_state|. 71 // Sets session state to |new_state|.
72 // If |force| is true then |new_state| is set even if existing session 72 // If |force| is true then |new_state| is set even if existing session
73 // state is the same (used for explicit initialization). 73 // state is the same (used for explicit initialization).
74 void SetSessionState(SessionState new_state, bool force); 74 void SetSessionState(SessionState new_state, bool force);
75 75
76 // Notify observers about session state change. 76 // Notify observers about session state change.
77 void NotifySessionStateChanged(); 77 void NotifySessionStateChanged();
78 78
79 // Switches to a new user. This call might show a dialog asking the user if he
80 // wants to stop desktop casting before switching.
81 void TryToSwitchUser(const std::string& user_id);
82
79 // List of observers is only used on Chrome OS for now. 83 // List of observers is only used on Chrome OS for now.
80 ObserverList<ash::SessionStateObserver> session_state_observer_list_; 84 ObserverList<ash::SessionStateObserver> session_state_observer_list_;
81 85
82 // Session state (e.g. login screen vs. user session). 86 // Session state (e.g. login screen vs. user session).
83 SessionState session_state_; 87 SessionState session_state_;
84 88
85 DISALLOW_COPY_AND_ASSIGN(SessionStateDelegateChromeos); 89 DISALLOW_COPY_AND_ASSIGN(SessionStateDelegateChromeos);
86 }; 90 };
87 91
88 #endif // CHROME_BROWSER_UI_ASH_SESSION_STATE_DELEGATE_CHROMEOS_H_ 92 #endif // CHROME_BROWSER_UI_ASH_SESSION_STATE_DELEGATE_CHROMEOS_H_
OLDNEW
« no previous file with comments | « ash/system/user/user_view.cc ('k') | chrome/browser/ui/ash/session_state_delegate_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698