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

Side by Side Diff: chrome/common/net/gaia/gaia_authenticator.cc

Issue 5574006: Start deinlining non-empty virtual methods. (This will be automatically checked (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove virtual from VideoFrame::type() Created 10 years 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
« no previous file with comments | « chrome/common/net/gaia/gaia_authenticator.h ('k') | chrome/common/pref_store.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 #include "chrome/common/net/gaia/gaia_authenticator.h" 5 #include "chrome/common/net/gaia/gaia_authenticator.h"
6 6
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 return false; 189 return false;
190 } 190 }
191 191
192 return LookupEmail(results); 192 return LookupEmail(results);
193 } else { 193 } else {
194 results->auth_error = Unknown; 194 results->auth_error = Unknown;
195 return false; 195 return false;
196 } 196 }
197 } 197 }
198 198
199 bool GaiaAuthenticator::Post(const GURL& url,
200 const std::string& post_body,
201 unsigned long* response_code,
202 std::string* response_body) {
203 return false;
204 }
205
199 bool GaiaAuthenticator::LookupEmail(AuthResults* results) { 206 bool GaiaAuthenticator::LookupEmail(AuthResults* results) {
200 DCHECK_EQ(MessageLoop::current(), message_loop_); 207 DCHECK_EQ(MessageLoop::current(), message_loop_);
201 // Use the provided Gaia server, but change the path to what V1 expects. 208 // Use the provided Gaia server, but change the path to what V1 expects.
202 GURL url(gaia_url_); // Gaia server. 209 GURL url(gaia_url_); // Gaia server.
203 GURL::Replacements repl; 210 GURL::Replacements repl;
204 // Needs to stay in scope till GURL is out of scope. 211 // Needs to stay in scope till GURL is out of scope.
205 string path(kGetUserInfoPath); 212 string path(kGetUserInfoPath);
206 repl.SetPathStr(path); 213 repl.SetPathStr(path);
207 url = url.ReplaceComponents(repl); 214 url = url.ReplaceComponents(repl);
208 215
(...skipping 22 matching lines...) Expand all
231 DCHECK_EQ("GOOGLE", i->second); 238 DCHECK_EQ("GOOGLE", i->second);
232 } else if ("email" == i->first) { 239 } else if ("email" == i->first) {
233 results->primary_email = i->second; 240 results->primary_email = i->second;
234 } 241 }
235 } 242 }
236 return true; 243 return true;
237 } 244 }
238 return false; 245 return false;
239 } 246 }
240 247
248 int GaiaAuthenticator::GetBackoffDelaySeconds(int current_backoff_delay) {
249 NOTREACHED();
250 return current_backoff_delay;
251 }
252
241 // We need to call this explicitly when we need to obtain a long-lived session 253 // We need to call this explicitly when we need to obtain a long-lived session
242 // token. 254 // token.
243 bool GaiaAuthenticator::IssueAuthToken(AuthResults* results, 255 bool GaiaAuthenticator::IssueAuthToken(AuthResults* results,
244 const string& service_id) { 256 const string& service_id) {
245 DCHECK_EQ(MessageLoop::current(), message_loop_); 257 DCHECK_EQ(MessageLoop::current(), message_loop_);
246 // Use the provided Gaia server, but change the path to what V1 expects. 258 // Use the provided Gaia server, but change the path to what V1 expects.
247 GURL url(gaia_url_); // Gaia server. 259 GURL url(gaia_url_); // Gaia server.
248 GURL::Replacements repl; 260 GURL::Replacements repl;
249 // Needs to stay in scope till GURL is out of scope. 261 // Needs to stay in scope till GURL is out of scope.
250 string path(kGaiaV1IssueAuthTokenPath); 262 string path(kGaiaV1IssueAuthTokenPath);
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 bool GaiaAuthenticator::Authenticate(const string& user_name, 388 bool GaiaAuthenticator::Authenticate(const string& user_name,
377 const string& password) { 389 const string& password) {
378 DCHECK_EQ(MessageLoop::current(), message_loop_); 390 DCHECK_EQ(MessageLoop::current(), message_loop_);
379 const string empty; 391 const string empty;
380 return Authenticate(user_name, password, empty, 392 return Authenticate(user_name, password, empty,
381 empty); 393 empty);
382 } 394 }
383 395
384 } // namepace gaia 396 } // namepace gaia
385 397
OLDNEW
« no previous file with comments | « chrome/common/net/gaia/gaia_authenticator.h ('k') | chrome/common/pref_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698