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

Side by Side Diff: chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h

Issue 1066843002: Run OAuth token handle check upon user pod selction. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 // Weather to show the user pods or only GAIA sign in. 181 // Weather to show the user pods or only GAIA sign in.
182 // Public sessions are always shown. 182 // Public sessions are always shown.
183 virtual bool IsShowUsers() const = 0; 183 virtual bool IsShowUsers() const = 0;
184 184
185 // Whether user sign in has completed. 185 // Whether user sign in has completed.
186 virtual bool IsUserSigninCompleted() const = 0; 186 virtual bool IsUserSigninCompleted() const = 0;
187 187
188 // Request to (re)load user list. 188 // Request to (re)load user list.
189 virtual void HandleGetUsers() = 0; 189 virtual void HandleGetUsers() = 0;
190 190
191 // Runs an OAuth token validation check for user.
192 virtual void CheckUserStatus(const std::string& user_id) = 0;
193
191 protected: 194 protected:
192 virtual ~SigninScreenHandlerDelegate() {} 195 virtual ~SigninScreenHandlerDelegate() {}
193 }; 196 };
194 197
195 // A class that handles the WebUI hooks in sign-in screen in OobeDisplay 198 // A class that handles the WebUI hooks in sign-in screen in OobeDisplay
196 // and LoginDisplay. 199 // and LoginDisplay.
197 class SigninScreenHandler 200 class SigninScreenHandler
198 : public BaseScreenHandler, 201 : public BaseScreenHandler,
199 public LoginDisplayWebUIHandler, 202 public LoginDisplayWebUIHandler,
200 public content::NotificationObserver, 203 public content::NotificationObserver,
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 scoped_ptr<ErrorScreensHistogramHelper> histogram_helper_; 491 scoped_ptr<ErrorScreensHistogramHelper> histogram_helper_;
489 492
490 base::WeakPtrFactory<SigninScreenHandler> weak_factory_; 493 base::WeakPtrFactory<SigninScreenHandler> weak_factory_;
491 494
492 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); 495 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler);
493 }; 496 };
494 497
495 } // namespace chromeos 498 } // namespace chromeos
496 499
497 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ 500 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698