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

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

Issue 2450823002: Remove async load concept for ToS from native code. (Closed)
Patch Set: Created 4 years, 1 month 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_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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 public: 59 public:
60 enum class State { 60 enum class State {
61 NOT_INITIALIZED, // Service is not initialized. 61 NOT_INITIALIZED, // Service is not initialized.
62 STOPPED, // ARC is not running. 62 STOPPED, // ARC is not running.
63 FETCHING_CODE, // ARC may be running or not. Auth code is fetching. 63 FETCHING_CODE, // ARC may be running or not. Auth code is fetching.
64 ACTIVE, // ARC is running. 64 ACTIVE, // ARC is running.
65 }; 65 };
66 66
67 enum class UIPage { 67 enum class UIPage {
68 NO_PAGE, // Hide everything. 68 NO_PAGE, // Hide everything.
69 TERMS_PROGRESS, // Terms loading progress page.
70 TERMS, // Terms content page. 69 TERMS, // Terms content page.
71 LSO_PROGRESS, // LSO loading progress page. 70 LSO_PROGRESS, // LSO loading progress page.
72 LSO, // LSO page to enter user's credentials. 71 LSO, // LSO page to enter user's credentials.
73 START_PROGRESS, // Arc starting progress page. 72 START_PROGRESS, // Arc starting progress page.
74 ERROR, // Arc start error page. 73 ERROR, // Arc start error page.
75 ERROR_WITH_FEEDBACK, // Arc start error page, plus feedback button. 74 ERROR_WITH_FEEDBACK, // Arc start error page, plus feedback button.
76 }; 75 };
77 76
78 class Observer { 77 class Observer {
79 public: 78 public:
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 base::WeakPtrFactory<ArcAuthService> weak_ptr_factory_; 260 base::WeakPtrFactory<ArcAuthService> weak_ptr_factory_;
262 261
263 DISALLOW_COPY_AND_ASSIGN(ArcAuthService); 262 DISALLOW_COPY_AND_ASSIGN(ArcAuthService);
264 }; 263 };
265 264
266 std::ostream& operator<<(std::ostream& os, const ArcAuthService::State& state); 265 std::ostream& operator<<(std::ostream& os, const ArcAuthService::State& state);
267 266
268 } // namespace arc 267 } // namespace arc
269 268
270 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_ 269 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698