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

Side by Side Diff: chrome/browser/signin/easy_unlock_screenlock_state_handler.h

Issue 2530053003: chrome: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase + address comment Created 4 years 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_SIGNIN_EASY_UNLOCK_SCREENLOCK_STATE_HANDLER_H_ 5 #ifndef CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SCREENLOCK_STATE_HANDLER_H_
6 #define CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SCREENLOCK_STATE_HANDLER_H_ 6 #define CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SCREENLOCK_STATE_HANDLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/strings/string16.h" 11 #include "base/strings/string16.h"
12 #include "components/proximity_auth/screenlock_bridge.h" 12 #include "components/proximity_auth/screenlock_bridge.h"
13 #include "components/proximity_auth/screenlock_state.h" 13 #include "components/proximity_auth/screenlock_state.h"
14 #include "components/signin/core/account_id/account_id.h" 14 #include "components/signin/core/account_id/account_id.h"
15 15
16 class PrefService;
17
18 // Profile specific class responsible for updating screenlock UI for the user 16 // Profile specific class responsible for updating screenlock UI for the user
19 // associated with the profile when their Easy Unlock state changes. 17 // associated with the profile when their Easy Unlock state changes.
20 class EasyUnlockScreenlockStateHandler 18 class EasyUnlockScreenlockStateHandler
21 : public proximity_auth::ScreenlockBridge::Observer { 19 : public proximity_auth::ScreenlockBridge::Observer {
22 public: 20 public:
23 // Hard lock states. 21 // Hard lock states.
24 enum HardlockState { 22 enum HardlockState {
25 NO_HARDLOCK = 0, // Hard lock is not enforced. This is default. 23 NO_HARDLOCK = 0, // Hard lock is not enforced. This is default.
26 USER_HARDLOCK = 1 << 0, // Hard lock is requested by user. 24 USER_HARDLOCK = 1 << 0, // Hard lock is requested by user.
27 PAIRING_CHANGED = 1 << 1, // Hard lock because pairing data is changed. 25 PAIRING_CHANGED = 1 << 1, // Hard lock because pairing data is changed.
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 // run should be set if the screen was locked by the Easy Unlock setup app. 106 // run should be set if the screen was locked by the Easy Unlock setup app.
109 bool is_trial_run_ = false; 107 bool is_trial_run_ = false;
110 108
111 // Whether the user's phone was ever locked while on the current lock screen. 109 // Whether the user's phone was ever locked while on the current lock screen.
112 bool did_see_locked_phone_ = false; 110 bool did_see_locked_phone_ = false;
113 111
114 DISALLOW_COPY_AND_ASSIGN(EasyUnlockScreenlockStateHandler); 112 DISALLOW_COPY_AND_ASSIGN(EasyUnlockScreenlockStateHandler);
115 }; 113 };
116 114
117 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SCREENLOCK_STATE_HANDLER_H_ 115 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SCREENLOCK_STATE_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/signin/chrome_signin_client.h ('k') | chrome/browser/signin/easy_unlock_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698