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 "base/timer/timer.h" | |
12 #include "chrome/browser/signin/screenlock_bridge.h" | 11 #include "chrome/browser/signin/screenlock_bridge.h" |
13 | 12 |
14 class PrefService; | 13 class PrefService; |
15 | 14 |
16 // Profile specific class responsible for updating screenlock UI for the user | 15 // Profile specific class responsible for updating screenlock UI for the user |
17 // associated with the profile when their Easy Unlock state changes. | 16 // associated with the profile when their Easy Unlock state changes. |
18 class EasyUnlockScreenlockStateHandler : public ScreenlockBridge::Observer { | 17 class EasyUnlockScreenlockStateHandler : public ScreenlockBridge::Observer { |
19 public: | 18 public: |
20 // Available Easy Unlock states. | 19 // Available Easy Unlock states. |
21 enum State { | 20 enum State { |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 | 121 |
123 // Whether this is the trial Easy Unlock run. If this is the case, a | 122 // Whether this is the trial Easy Unlock run. If this is the case, a |
124 // tutorial message should be shown and hard-locking be disabled. The trial | 123 // tutorial message should be shown and hard-locking be disabled. The trial |
125 // run should be set if the screen was locked by the Easy Unlock setup app. | 124 // run should be set if the screen was locked by the Easy Unlock setup app. |
126 bool is_trial_run_; | 125 bool is_trial_run_; |
127 | 126 |
128 DISALLOW_COPY_AND_ASSIGN(EasyUnlockScreenlockStateHandler); | 127 DISALLOW_COPY_AND_ASSIGN(EasyUnlockScreenlockStateHandler); |
129 }; | 128 }; |
130 | 129 |
131 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SCREENLOCK_STATE_HANDLER_H_ | 130 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SCREENLOCK_STATE_HANDLER_H_ |
OLD | NEW |