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

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

Issue 8586007: Made OAuth token verification and user seession cookie retrieval process robust on transient netw... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 virtual scoped_refptr<Authenticator> CreateAuthenticator( 86 virtual scoped_refptr<Authenticator> CreateAuthenticator(
87 LoginStatusConsumer* consumer) = 0; 87 LoginStatusConsumer* consumer) = 0;
88 88
89 // Prewarms the authentication network connection. 89 // Prewarms the authentication network connection.
90 virtual void PrewarmAuthentication() = 0; 90 virtual void PrewarmAuthentication() = 0;
91 91
92 // Restores authentication session after crash. 92 // Restores authentication session after crash.
93 virtual void RestoreAuthenticationSession(const std::string& user_name, 93 virtual void RestoreAuthenticationSession(const std::string& user_name,
94 Profile* profile) = 0; 94 Profile* profile) = 0;
95 95
96 // Given the credentials try to exchange them for
97 // full-fledged Google authentication cookies.
98 virtual void FetchCookies(
99 Profile* profile,
100 const GaiaAuthConsumer::ClientLoginResult& credentials) = 0;
101
102 // Starts process of fetching OAuth2 tokens (based on OAuth1 tokens found 96 // Starts process of fetching OAuth2 tokens (based on OAuth1 tokens found
103 // in |user_profile|) and kicks off internal services that depend on them. 97 // in |user_profile|) and kicks off internal services that depend on them.
104 virtual void StartTokenServices(Profile* user_profile) = 0; 98 virtual void StartTokenServices(Profile* user_profile) = 0;
105 99
106 // Supply credentials for sync and others to use. 100 // Supply credentials for sync and others to use.
107 virtual void StartSync( 101 virtual void StartSync(
108 Profile* profile, 102 Profile* profile,
109 const GaiaAuthConsumer::ClientLoginResult& credentials) = 0; 103 const GaiaAuthConsumer::ClientLoginResult& credentials) = 0;
110 104
111 // Sets the current background view. 105 // Sets the current background view.
(...skipping 23 matching lines...) Expand all
135 // given command line. 129 // given command line.
136 virtual std::string GetOffTheRecordCommandLine( 130 virtual std::string GetOffTheRecordCommandLine(
137 const GURL& start_url, 131 const GURL& start_url,
138 const CommandLine& base_command_line, 132 const CommandLine& base_command_line,
139 CommandLine* command_line) = 0; 133 CommandLine* command_line) = 0;
140 }; 134 };
141 135
142 } // namespace chromeos 136 } // namespace chromeos
143 137
144 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_UTILS_H_ 138 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698