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

Side by Side Diff: chrome/browser/notifications/login_state_notification_blocker_chromeos.h

Issue 286933002: [cros login] Split login related classes into subfolders. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix includes in new tests Created 6 years, 7 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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_NOTIFICATIONS_LOGIN_STATE_NOTIFICATION_BLOCKER_CHROMEOS_H _ 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_LOGIN_STATE_NOTIFICATION_BLOCKER_CHROMEOS_H _
6 #define CHROME_BROWSER_NOTIFICATIONS_LOGIN_STATE_NOTIFICATION_BLOCKER_CHROMEOS_H _ 6 #define CHROME_BROWSER_NOTIFICATIONS_LOGIN_STATE_NOTIFICATION_BLOCKER_CHROMEOS_H _
7 7
8 #include "ash/shell_observer.h" 8 #include "ash/shell_observer.h"
9 #include "chrome/browser/chromeos/login/user_adding_screen.h" 9 #include "chrome/browser/chromeos/login/ui/user_adding_screen.h"
10 #include "chromeos/login/login_state.h" 10 #include "chromeos/login/login_state.h"
11 #include "ui/message_center/notification_blocker.h" 11 #include "ui/message_center/notification_blocker.h"
12 12
13 // A notification blocker which checks screen lock / login state for ChromeOS. 13 // A notification blocker which checks screen lock / login state for ChromeOS.
14 // This is different from ScreenLockNotificationBlocker because: 14 // This is different from ScreenLockNotificationBlocker because:
15 // - ScreenLockNotificationBlocker only cares about lock status but ChromeOS 15 // - ScreenLockNotificationBlocker only cares about lock status but ChromeOS
16 // needs to care about login-screen. 16 // needs to care about login-screen.
17 // - ScreenLockNotificationBlocker needs a timer to check the screen lock state 17 // - ScreenLockNotificationBlocker needs a timer to check the screen lock state
18 // periodically, but ash::ShellObserver gets the events directly in ChromeOS. 18 // periodically, but ash::ShellObserver gets the events directly in ChromeOS.
19 // - In ChromeOS, some system notifications are allowed to be shown as popups. 19 // - In ChromeOS, some system notifications are allowed to be shown as popups.
(...skipping 23 matching lines...) Expand all
43 virtual void OnUserAddingStarted() OVERRIDE; 43 virtual void OnUserAddingStarted() OVERRIDE;
44 virtual void OnUserAddingFinished() OVERRIDE; 44 virtual void OnUserAddingFinished() OVERRIDE;
45 45
46 bool locked_; 46 bool locked_;
47 bool observing_; 47 bool observing_;
48 48
49 DISALLOW_COPY_AND_ASSIGN(LoginStateNotificationBlockerChromeOS); 49 DISALLOW_COPY_AND_ASSIGN(LoginStateNotificationBlockerChromeOS);
50 }; 50 };
51 51
52 #endif // CHROME_BROWSER_NOTIFICATIONS_LOGIN_STATE_NOTIFICATION_BLOCKER_CHROMEO S_H_ 52 #endif // CHROME_BROWSER_NOTIFICATIONS_LOGIN_STATE_NOTIFICATION_BLOCKER_CHROMEO S_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698