OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_ |
6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <ostream> | 9 #include <ostream> |
10 #include <string> | 10 #include <string> |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 void SetUIPage(UIPage page, const base::string16& status); | 178 void SetUIPage(UIPage page, const base::string16& status); |
179 void SetState(State state); | 179 void SetState(State state); |
180 void ShutdownBridge(); | 180 void ShutdownBridge(); |
181 void ShutdownBridgeAndCloseUI(); | 181 void ShutdownBridgeAndCloseUI(); |
182 void ShutdownBridgeAndShowUI(UIPage page, const base::string16& status); | 182 void ShutdownBridgeAndShowUI(UIPage page, const base::string16& status); |
183 void OnOptInPreferenceChanged(); | 183 void OnOptInPreferenceChanged(); |
184 void StartUI(); | 184 void StartUI(); |
185 void StartAndroidManagementClient(); | 185 void StartAndroidManagementClient(); |
186 void CheckAndroidManagement(bool background_mode); | 186 void CheckAndroidManagement(bool background_mode); |
187 void StartArcIfSignedIn(); | 187 void StartArcIfSignedIn(); |
| 188 void StopArc(); |
188 | 189 |
189 // Unowned pointer. Keeps current profile. | 190 // Unowned pointer. Keeps current profile. |
190 Profile* profile_ = nullptr; | 191 Profile* profile_ = nullptr; |
191 | 192 |
192 // Registrar used to monitor ARC enabled state. | 193 // Registrar used to monitor ARC enabled state. |
193 PrefChangeRegistrar pref_change_registrar_; | 194 PrefChangeRegistrar pref_change_registrar_; |
194 | 195 |
195 mojo::Binding<AuthHost> binding_; | 196 mojo::Binding<AuthHost> binding_; |
196 State state_ = State::NOT_INITIALIZED; | 197 State state_ = State::NOT_INITIALIZED; |
197 base::ObserverList<Observer> observer_list_; | 198 base::ObserverList<Observer> observer_list_; |
(...skipping 14 matching lines...) Expand all Loading... |
212 base::WeakPtrFactory<ArcAuthService> weak_ptr_factory_; | 213 base::WeakPtrFactory<ArcAuthService> weak_ptr_factory_; |
213 | 214 |
214 DISALLOW_COPY_AND_ASSIGN(ArcAuthService); | 215 DISALLOW_COPY_AND_ASSIGN(ArcAuthService); |
215 }; | 216 }; |
216 | 217 |
217 std::ostream& operator<<(std::ostream& os, const ArcAuthService::State& state); | 218 std::ostream& operator<<(std::ostream& os, const ArcAuthService::State& state); |
218 | 219 |
219 } // namespace arc | 220 } // namespace arc |
220 | 221 |
221 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_ | 222 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_ |
OLD | NEW |