OLD | NEW |
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/strings/string16.h" | 10 #include "base/strings/string16.h" |
11 #include "chrome/browser/signin/screenlock_bridge.h" | 11 #include "components/signin/content/screenlock_bridge.h" |
12 | 12 |
13 class PrefService; | 13 class PrefService; |
14 | 14 |
15 // Profile specific class responsible for updating screenlock UI for the user | 15 // Profile specific class responsible for updating screenlock UI for the user |
16 // associated with the profile when their Easy Unlock state changes. | 16 // associated with the profile when their Easy Unlock state changes. |
17 class EasyUnlockScreenlockStateHandler : public ScreenlockBridge::Observer { | 17 class EasyUnlockScreenlockStateHandler : public ScreenlockBridge::Observer { |
18 public: | 18 public: |
19 // Available Easy Unlock states. | 19 // Available Easy Unlock states. |
20 enum State { | 20 enum State { |
21 // Easy Unlock is not enabled, or the screen is not locked. | 21 // Easy Unlock is not enabled, or the screen is not locked. |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 // run should be set if the screen was locked by the Easy Unlock setup app. | 140 // run should be set if the screen was locked by the Easy Unlock setup app. |
141 bool is_trial_run_; | 141 bool is_trial_run_; |
142 | 142 |
143 // Whether the user's phone was ever locked while on the current lock screen. | 143 // Whether the user's phone was ever locked while on the current lock screen. |
144 bool did_see_locked_phone_; | 144 bool did_see_locked_phone_; |
145 | 145 |
146 DISALLOW_COPY_AND_ASSIGN(EasyUnlockScreenlockStateHandler); | 146 DISALLOW_COPY_AND_ASSIGN(EasyUnlockScreenlockStateHandler); |
147 }; | 147 }; |
148 | 148 |
149 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SCREENLOCK_STATE_HANDLER_H_ | 149 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SCREENLOCK_STATE_HANDLER_H_ |
OLD | NEW |