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

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

Issue 11649055: OAuth2 sign-in flow for ChromeOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: wired policy with OAuth2 path 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" 11 #include "google_apis/gaia/gaia_auth_consumer.h"
Joao da Silva 2013/01/11 16:45:07 Not needed
zel 2013/01/11 19:51:16 Done.
12 12
13 class CommandLine; 13 class CommandLine;
14 class GURL; 14 class GURL;
15 class Profile; 15 class Profile;
16 class PrefService; 16 class PrefService;
17 17
18 namespace { 18 namespace {
19 class BrowserGuestSessionNavigatorTest; 19 class BrowserGuestSessionNavigatorTest;
20 } // namespace 20 } // namespace
21 21
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 // Prewarms the authentication network connection. 102 // Prewarms the authentication network connection.
103 virtual void PrewarmAuthentication() = 0; 103 virtual void PrewarmAuthentication() = 0;
104 104
105 // Restores authentication session after crash. 105 // Restores authentication session after crash.
106 virtual void RestoreAuthenticationSession(Profile* profile) = 0; 106 virtual void RestoreAuthenticationSession(Profile* profile) = 0;
107 107
108 // Starts process of fetching OAuth2 tokens (based on OAuth1 tokens found 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. 109 // in |user_profile|) and kicks off internal services that depend on them.
110 virtual void StartTokenServices(Profile* user_profile) = 0; 110 virtual void StartTokenServices(Profile* user_profile) = 0;
111 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. 112 // Stops background fetchers.
118 virtual void StopBackgroundFetchers() = 0; 113 virtual void StopBackgroundFetchers() = 0;
119 114
120 // Initialize RLZ. 115 // Initialize RLZ.
121 virtual void InitRlzDelayed(Profile* user_profile) = 0; 116 virtual void InitRlzDelayed(Profile* user_profile) = 0;
122 117
123 // Completed profile creation process. 118 // Completed profile creation process.
124 virtual void CompleteProfileCreate(Profile* user_profile) {} 119 virtual void CompleteProfileCreate(Profile* user_profile) {}
125 120
126 protected: 121 protected:
127 friend class ::BrowserGuestSessionNavigatorTest; 122 friend class ::BrowserGuestSessionNavigatorTest;
128 123
129 // Returns command line string to be used for the OTR process. Also modifies 124 // Returns command line string to be used for the OTR process. Also modifies
130 // given command line. 125 // given command line.
131 virtual std::string GetOffTheRecordCommandLine( 126 virtual std::string GetOffTheRecordCommandLine(
132 const GURL& start_url, 127 const GURL& start_url,
133 const CommandLine& base_command_line, 128 const CommandLine& base_command_line,
134 CommandLine* command_line) = 0; 129 CommandLine* command_line) = 0;
135 }; 130 };
136 131
137 } // namespace chromeos 132 } // namespace chromeos
138 133
139 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_UTILS_H_ 134 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698