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

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

Issue 11991002: Merge 176800 (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1364/src/
Patch Set: Created 7 years, 11 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 #include "google_apis/gaia/gaia_auth_consumer.h"
12 11
13 class CommandLine; 12 class CommandLine;
14 class GURL; 13 class GURL;
15 class Profile; 14 class Profile;
16 class PrefService; 15 class PrefService;
17 16
18 namespace { 17 namespace {
19 class BrowserGuestSessionNavigatorTest; 18 class BrowserGuestSessionNavigatorTest;
20 } // namespace 19 } // namespace
21 20
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 62
64 // Loads and prepares profile for the session. Fires |delegate| in the end. 63 // Loads and prepares profile for the session. Fires |delegate| in the end.
65 // If |pending_requests| is true, there's a pending online auth request. 64 // If |pending_requests| is true, there's a pending online auth request.
66 // If |display_email| is not empty, user's displayed email will be set to 65 // If |display_email| is not empty, user's displayed email will be set to
67 // this value, shown in UI. 66 // this value, shown in UI.
68 // Also see DelegateDeleted method. 67 // Also see DelegateDeleted method.
69 virtual void PrepareProfile( 68 virtual void PrepareProfile(
70 const std::string& username, 69 const std::string& username,
71 const std::string& display_email, 70 const std::string& display_email,
72 const std::string& password, 71 const std::string& password,
73 bool pending_requests,
74 bool using_oauth, 72 bool using_oauth,
75 bool has_cookies, 73 bool has_cookies,
76 Delegate* delegate) = 0; 74 Delegate* delegate) = 0;
77 75
78 // Invalidates |delegate|, which was passed to PrepareProfile method call. 76 // Invalidates |delegate|, which was passed to PrepareProfile method call.
79 virtual void DelegateDeleted(Delegate* delegate) = 0; 77 virtual void DelegateDeleted(Delegate* delegate) = 0;
80 78
81 // Invoked after the tmpfs is successfully mounted. 79 // Invoked after the tmpfs is successfully mounted.
82 // Asks session manager to restart Chrome in Browse Without Sign In mode. 80 // Asks session manager to restart Chrome in Browse Without Sign In mode.
83 // |start_url| is url for launched browser to open. 81 // |start_url| is url for launched browser to open.
(...skipping 14 matching lines...) Expand all
98 // TODO(nkostylev): Cleanup after WebUI login migration is complete. 96 // TODO(nkostylev): Cleanup after WebUI login migration is complete.
99 virtual scoped_refptr<Authenticator> CreateAuthenticator( 97 virtual scoped_refptr<Authenticator> CreateAuthenticator(
100 LoginStatusConsumer* consumer) = 0; 98 LoginStatusConsumer* consumer) = 0;
101 99
102 // Prewarms the authentication network connection. 100 // Prewarms the authentication network connection.
103 virtual void PrewarmAuthentication() = 0; 101 virtual void PrewarmAuthentication() = 0;
104 102
105 // Restores authentication session after crash. 103 // Restores authentication session after crash.
106 virtual void RestoreAuthenticationSession(Profile* profile) = 0; 104 virtual void RestoreAuthenticationSession(Profile* profile) = 0;
107 105
108 // Starts process of fetching OAuth2 tokens (based on OAuth1 tokens found
109 // in |user_profile|) and kicks off internal services that depend on them.
110 virtual void StartTokenServices(Profile* user_profile) = 0;
111
112 // Supply credentials for sync and others to use.
113 virtual void StartSignedInServices(
114 Profile* profile,
115 const GaiaAuthConsumer::ClientLoginResult& credentials) = 0;
116
117 // Stops background fetchers. 106 // Stops background fetchers.
118 virtual void StopBackgroundFetchers() = 0; 107 virtual void StopBackgroundFetchers() = 0;
119 108
120 // Initialize RLZ. 109 // Initialize RLZ.
121 virtual void InitRlzDelayed(Profile* user_profile) = 0; 110 virtual void InitRlzDelayed(Profile* user_profile) = 0;
122 111
123 // Completed profile creation process. 112 // Completed profile creation process.
124 virtual void CompleteProfileCreate(Profile* user_profile) {} 113 virtual void CompleteProfileCreate(Profile* user_profile) {}
125 114
126 protected: 115 protected:
127 friend class ::BrowserGuestSessionNavigatorTest; 116 friend class ::BrowserGuestSessionNavigatorTest;
128 117
129 // Returns command line string to be used for the OTR process. Also modifies 118 // Returns command line string to be used for the OTR process. Also modifies
130 // given command line. 119 // given command line.
131 virtual std::string GetOffTheRecordCommandLine( 120 virtual std::string GetOffTheRecordCommandLine(
132 const GURL& start_url, 121 const GURL& start_url,
133 const CommandLine& base_command_line, 122 const CommandLine& base_command_line,
134 CommandLine* command_line) = 0; 123 CommandLine* command_line) = 0;
135 }; 124 };
136 125
137 } // namespace chromeos 126 } // namespace chromeos
138 127
139 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_UTILS_H_ 128 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_UTILS_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/login_performer.cc ('k') | chrome/browser/chromeos/login/login_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698