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

Side by Side Diff: chrome/browser/chromeos/login/login_utils.h

Issue 12704002: Support for auth code based authentication flow for both app and web UI driven flow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase4 Created 7 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_LOGIN_LOGIN_UTILS_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_UTILS_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_UTILS_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_UTILS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 11
12 class CommandLine; 12 class CommandLine;
13 class GURL; 13 class GURL;
14 class Profile; 14 class Profile;
15 class PrefRegistrySimple; 15 class PrefRegistrySimple;
16 class PrefService; 16 class PrefService;
17 17
18 namespace chromeos { 18 namespace chromeos {
19 19
20 class Authenticator; 20 class Authenticator;
21 class LoginDisplayHost; 21 class LoginDisplayHost;
22 class LoginStatusConsumer; 22 class LoginStatusConsumer;
23 struct UserCredentials;
23 24
24 class LoginUtils { 25 class LoginUtils {
25 public: 26 public:
26 class Delegate { 27 class Delegate {
27 public: 28 public:
28 // Called after profile is loaded and prepared for the session. 29 // Called after profile is loaded and prepared for the session.
29 virtual void OnProfilePrepared(Profile* profile) = 0; 30 virtual void OnProfilePrepared(Profile* profile) = 0;
30 31
31 #if defined(ENABLE_RLZ) 32 #if defined(ENABLE_RLZ)
32 // Called after post-profile RLZ initialization. 33 // Called after post-profile RLZ initialization.
(...skipping 24 matching lines...) Expand all
57 // login host is deleted. 58 // login host is deleted.
58 virtual void DoBrowserLaunch(Profile* profile, 59 virtual void DoBrowserLaunch(Profile* profile,
59 LoginDisplayHost* login_host) = 0; 60 LoginDisplayHost* login_host) = 0;
60 61
61 // Loads and prepares profile for the session. Fires |delegate| in the end. 62 // Loads and prepares profile for the session. Fires |delegate| in the end.
62 // If |pending_requests| is true, there's a pending online auth request. 63 // If |pending_requests| is true, there's a pending online auth request.
63 // If |display_email| is not empty, user's displayed email will be set to 64 // If |display_email| is not empty, user's displayed email will be set to
64 // this value, shown in UI. 65 // this value, shown in UI.
65 // Also see DelegateDeleted method. 66 // Also see DelegateDeleted method.
66 virtual void PrepareProfile( 67 virtual void PrepareProfile(
67 const std::string& username, 68 const UserCredentials& credentials,
68 const std::string& display_email, 69 const std::string& display_email,
69 const std::string& password,
70 bool using_oauth, 70 bool using_oauth,
71 bool has_cookies, 71 bool has_cookies,
72 Delegate* delegate) = 0; 72 Delegate* delegate) = 0;
73 73
74 // Invalidates |delegate|, which was passed to PrepareProfile method call. 74 // Invalidates |delegate|, which was passed to PrepareProfile method call.
75 virtual void DelegateDeleted(Delegate* delegate) = 0; 75 virtual void DelegateDeleted(Delegate* delegate) = 0;
76 76
77 // Invoked after the tmpfs is successfully mounted. 77 // Invoked after the tmpfs is successfully mounted.
78 // Asks session manager to restart Chrome in Browse Without Sign In mode. 78 // Asks session manager to restart Chrome in Browse Without Sign In mode.
79 // |start_url| is url for launched browser to open. 79 // |start_url| is url for launched browser to open.
(...skipping 24 matching lines...) Expand all
104 // Stops background fetchers. 104 // Stops background fetchers.
105 virtual void StopBackgroundFetchers() = 0; 105 virtual void StopBackgroundFetchers() = 0;
106 106
107 // Initialize RLZ. 107 // Initialize RLZ.
108 virtual void InitRlzDelayed(Profile* user_profile) = 0; 108 virtual void InitRlzDelayed(Profile* user_profile) = 0;
109 }; 109 };
110 110
111 } // namespace chromeos 111 } // namespace chromeos
112 112
113 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_UTILS_H_ 113 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_UTILS_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/login_status_consumer.cc ('k') | chrome/browser/chromeos/login/login_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698