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

Side by Side Diff: chrome/browser/chromeos/arc/arc_session_manager.h

Issue 2541173002: arc: Make request to remove Android's data folder persistent. (Closed)
Patch Set: rename pref flag / update comments Created 4 years 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 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_SESSION_MANAGER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_ARC_SESSION_MANAGER_H_
6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_SESSION_MANAGER_H_ 6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_SESSION_MANAGER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <ostream> 9 #include <ostream>
10 #include <string> 10 #include <string>
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 234
235 // Unowned pointer. Keeps current profile. 235 // Unowned pointer. Keeps current profile.
236 Profile* profile_ = nullptr; 236 Profile* profile_ = nullptr;
237 237
238 // Registrar used to monitor ARC enabled state. 238 // Registrar used to monitor ARC enabled state.
239 PrefChangeRegistrar pref_change_registrar_; 239 PrefChangeRegistrar pref_change_registrar_;
240 240
241 State state_ = State::NOT_INITIALIZED; 241 State state_ = State::NOT_INITIALIZED;
242 base::ObserverList<Observer> observer_list_; 242 base::ObserverList<Observer> observer_list_;
243 std::unique_ptr<ArcAppLauncher> playstore_launcher_; 243 std::unique_ptr<ArcAppLauncher> playstore_launcher_;
244 bool clear_required_ = false;
245 bool reenable_arc_ = false; 244 bool reenable_arc_ = false;
246 base::OneShotTimer arc_sign_in_timer_; 245 base::OneShotTimer arc_sign_in_timer_;
247 246
248 // Temporarily keeps the ArcSupportHost instance. 247 // Temporarily keeps the ArcSupportHost instance.
249 // This should be moved to ArcSessionManager when the refactoring is 248 // This should be moved to ArcSessionManager when the refactoring is
250 // done. 249 // done.
251 std::unique_ptr<ArcSupportHost> support_host_; 250 std::unique_ptr<ArcSupportHost> support_host_;
252 // Handles preferences and metrics mode. 251 // Handles preferences and metrics mode.
253 std::unique_ptr<ArcOptInPreferenceHandler> preference_handler_; 252 std::unique_ptr<ArcOptInPreferenceHandler> preference_handler_;
254 253
255 std::unique_ptr<ArcAuthContext> context_; 254 std::unique_ptr<ArcAuthContext> context_;
256 std::unique_ptr<ArcAndroidManagementChecker> android_management_checker_; 255 std::unique_ptr<ArcAndroidManagementChecker> android_management_checker_;
257 256
258 base::Time sign_in_time_; 257 base::Time sign_in_time_;
259 258
260 base::WeakPtrFactory<ArcSessionManager> weak_ptr_factory_; 259 base::WeakPtrFactory<ArcSessionManager> weak_ptr_factory_;
261 260
262 DISALLOW_COPY_AND_ASSIGN(ArcSessionManager); 261 DISALLOW_COPY_AND_ASSIGN(ArcSessionManager);
263 }; 262 };
264 263
265 // Outputs the stringified |state| to |os|. This is only for logging purposes. 264 // Outputs the stringified |state| to |os|. This is only for logging purposes.
266 std::ostream& operator<<(std::ostream& os, 265 std::ostream& operator<<(std::ostream& os,
267 const ArcSessionManager::State& state); 266 const ArcSessionManager::State& state);
268 267
269 } // namespace arc 268 } // namespace arc
270 269
271 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_SESSION_MANAGER_H_ 270 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_SESSION_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/arc/arc_session_manager.cc » ('j') | chrome/browser/chromeos/arc/arc_session_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698