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_H_ | 5 #ifndef CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_H_ |
6 #define CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_H_ | 6 #define CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 // A class to detect whether a bluetooth adapter is present. | 81 // A class to detect whether a bluetooth adapter is present. |
82 class BluetoothDetector; | 82 class BluetoothDetector; |
83 | 83 |
84 // Initializes the service after ExtensionService is ready. | 84 // Initializes the service after ExtensionService is ready. |
85 void Initialize(); | 85 void Initialize(); |
86 | 86 |
87 // Installs the Easy unlock component app if it isn't installed or enables | 87 // Installs the Easy unlock component app if it isn't installed or enables |
88 // the app if it is installed but disabled. | 88 // the app if it is installed but disabled. |
89 void LoadApp(); | 89 void LoadApp(); |
90 | 90 |
91 // Disables the Easy unlock component app. | 91 // Disables the Easy unlock component app if it's loaded. |
92 void DisableApp(); | 92 void DisableAppIfLoaded(); |
93 | 93 |
94 // Checks whether Easy unlock should be running and updates app state. | 94 // Checks whether Easy unlock should be running and updates app state. |
95 void UpdateAppState(); | 95 void UpdateAppState(); |
96 | 96 |
97 // Callback when the controlling pref changes. | 97 // Callback when the controlling pref changes. |
98 void OnPrefsChanged(); | 98 void OnPrefsChanged(); |
99 | 99 |
100 // Callback when Bluetooth adapter present state changes. | 100 // Callback when Bluetooth adapter present state changes. |
101 void OnBluetoothAdapterPresentChanged(); | 101 void OnBluetoothAdapterPresentChanged(); |
102 | 102 |
(...skipping 18 matching lines...) Expand all Loading... |
121 class PowerMonitor; | 121 class PowerMonitor; |
122 scoped_ptr<PowerMonitor> power_monitor_; | 122 scoped_ptr<PowerMonitor> power_monitor_; |
123 #endif | 123 #endif |
124 | 124 |
125 base::WeakPtrFactory<EasyUnlockService> weak_ptr_factory_; | 125 base::WeakPtrFactory<EasyUnlockService> weak_ptr_factory_; |
126 | 126 |
127 DISALLOW_COPY_AND_ASSIGN(EasyUnlockService); | 127 DISALLOW_COPY_AND_ASSIGN(EasyUnlockService); |
128 }; | 128 }; |
129 | 129 |
130 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_H_ | 130 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_H_ |
OLD | NEW |