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

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

Issue 576343002: [Easy signin] Add method to get user info to easyUnlockPrivate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 6 years, 3 months 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_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 <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 virtual void InitializeInternal() = 0; 98 virtual void InitializeInternal() = 0;
99 99
100 // Service type specific tests for whether the service is allowed. Returns 100 // Service type specific tests for whether the service is allowed. Returns
101 // false if service is not allowed. If true is returned, the service may still 101 // false if service is not allowed. If true is returned, the service may still
102 // not be allowed if common tests fail (e.g. if Bluetooth is not available). 102 // not be allowed if common tests fail (e.g. if Bluetooth is not available).
103 virtual bool IsAllowedInternal() = 0; 103 virtual bool IsAllowedInternal() = 0;
104 104
105 // Exposes the profile to which the service is attached to subclasses. 105 // Exposes the profile to which the service is attached to subclasses.
106 Profile* profile() const { return profile_; } 106 Profile* profile() const { return profile_; }
107 107
108 // Installs the Easy unlock component app if it isn't installed or enables 108 // Installs the Easy unlock component app if it isn't installed and enables
109 // the app if it is installed but disabled. 109 // the app if it is disabled.
110 void LoadApp(); 110 void LoadApp();
111 111
112 // Disables the Easy unlock component app if it's loaded. 112 // Disables the Easy unlock component app if it's loaded.
113 void DisableAppIfLoaded(); 113 void DisableAppIfLoaded();
114 114
115 // Unloads the Easy unlock component app if it's loaded.
116 void UnloadApp();
117
115 // Reloads the Easy unlock component app if it's loaded. 118 // Reloads the Easy unlock component app if it's loaded.
116 void ReloadApp(); 119 void ReloadApp();
117 120
118 // Checks whether Easy unlock should be running and updates app state. 121 // Checks whether Easy unlock should be running and updates app state.
119 void UpdateAppState(); 122 void UpdateAppState();
120 123
124 // Notifies the easy unlock app that the user state has been updated.
125 void NotifyUserUpdated();
126
121 // Notifies observers that the turn off flow status changed. 127 // Notifies observers that the turn off flow status changed.
122 void NotifyTurnOffOperationStatusChanged(); 128 void NotifyTurnOffOperationStatusChanged();
123 129
130 // Resets |screenlock_state_handler_|.
131 void ResetScreenlockStateHandler();
132
124 private: 133 private:
125 // A class to detect whether a bluetooth adapter is present. 134 // A class to detect whether a bluetooth adapter is present.
126 class BluetoothDetector; 135 class BluetoothDetector;
127 136
128 // Initializes the service after ExtensionService is ready. 137 // Initializes the service after ExtensionService is ready.
129 void Initialize(); 138 void Initialize();
130 139
131 // Callback when Bluetooth adapter present state changes. 140 // Callback when Bluetooth adapter present state changes.
132 void OnBluetoothAdapterPresentChanged(); 141 void OnBluetoothAdapterPresentChanged();
133 142
(...skipping 11 matching lines...) Expand all
145 #endif 154 #endif
146 155
147 ObserverList<EasyUnlockServiceObserver> observers_; 156 ObserverList<EasyUnlockServiceObserver> observers_;
148 157
149 base::WeakPtrFactory<EasyUnlockService> weak_ptr_factory_; 158 base::WeakPtrFactory<EasyUnlockService> weak_ptr_factory_;
150 159
151 DISALLOW_COPY_AND_ASSIGN(EasyUnlockService); 160 DISALLOW_COPY_AND_ASSIGN(EasyUnlockService);
152 }; 161 };
153 162
154 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_H_ 163 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698