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_SERVICE_REGULAR_H_ | 5 #ifndef CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_REGULAR_H_ |
6 #define CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_REGULAR_H_ | 6 #define CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_REGULAR_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/prefs/pref_change_registrar.h" | 13 #include "base/prefs/pref_change_registrar.h" |
14 #include "base/time/time.h" | 14 #include "base/time/time.h" |
| 15 #include "build/build_config.h" |
15 #include "chrome/browser/signin/easy_unlock_service.h" | 16 #include "chrome/browser/signin/easy_unlock_service.h" |
16 #include "components/proximity_auth/cryptauth/cryptauth_device_manager.h" | 17 #include "components/proximity_auth/cryptauth/cryptauth_device_manager.h" |
17 #include "components/proximity_auth/screenlock_bridge.h" | 18 #include "components/proximity_auth/screenlock_bridge.h" |
18 #include "google_apis/gaia/oauth2_token_service.h" | 19 #include "google_apis/gaia/oauth2_token_service.h" |
19 | 20 |
20 #if defined(OS_CHROMEOS) | 21 #if defined(OS_CHROMEOS) |
21 #include "chrome/browser/chromeos/login/easy_unlock/short_lived_user_context.h" | 22 #include "chrome/browser/chromeos/login/easy_unlock/short_lived_user_context.h" |
22 #endif | 23 #endif |
23 | 24 |
24 namespace base { | 25 namespace base { |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 // this deferment prevents the lock screen from being changed by a network | 190 // this deferment prevents the lock screen from being changed by a network |
190 // event. | 191 // event. |
191 bool deferring_device_load_; | 192 bool deferring_device_load_; |
192 | 193 |
193 base::WeakPtrFactory<EasyUnlockServiceRegular> weak_ptr_factory_; | 194 base::WeakPtrFactory<EasyUnlockServiceRegular> weak_ptr_factory_; |
194 | 195 |
195 DISALLOW_COPY_AND_ASSIGN(EasyUnlockServiceRegular); | 196 DISALLOW_COPY_AND_ASSIGN(EasyUnlockServiceRegular); |
196 }; | 197 }; |
197 | 198 |
198 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_REGULAR_H_ | 199 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_REGULAR_H_ |
OLD | NEW |