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

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

Issue 9566006: [cros] Resolve online login attempt on UI thread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 8 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/online_attempt_host.cc » ('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) 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_ONLINE_ATTEMPT_HOST_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_ONLINE_ATTEMPT_HOST_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_ONLINE_ATTEMPT_HOST_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_ONLINE_ATTEMPT_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 25 matching lines...) Expand all
36 // a time (the newest call stops the old one, if called with another username 36 // a time (the newest call stops the old one, if called with another username
37 // and password combination). 37 // and password combination).
38 void Check(Profile* profile, 38 void Check(Profile* profile,
39 const std::string &username, 39 const std::string &username,
40 const std::string &password); 40 const std::string &password);
41 41
42 // Resets the checking process. 42 // Resets the checking process.
43 void Reset(); 43 void Reset();
44 44
45 // AuthAttemptStateResolver overrides. 45 // AuthAttemptStateResolver overrides.
46 // Executed on IO thread.
46 virtual void Resolve() OVERRIDE; 47 virtual void Resolve() OVERRIDE;
47 48
49 // Does an actual resolve on UI thread.
50 void ResolveOnUIThread(bool success);
51
48 private: 52 private:
49 Delegate* delegate_; 53 Delegate* delegate_;
50 std::string current_attempt_hash_; 54 std::string current_attempt_hash_;
51 std::string current_username_; 55 std::string current_username_;
52 scoped_refptr<OnlineAttempt> online_attempt_; 56 scoped_refptr<OnlineAttempt> online_attempt_;
53 scoped_ptr<AuthAttemptState> state_; 57 scoped_ptr<AuthAttemptState> state_;
54 58
55 DISALLOW_COPY_AND_ASSIGN(OnlineAttemptHost); 59 DISALLOW_COPY_AND_ASSIGN(OnlineAttemptHost);
56 }; 60 };
57 61
58 } // chromeos 62 } // chromeos
59 63
60 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_ONLINE_ATTEMPT_HOST_H_ 64 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_ONLINE_ATTEMPT_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/online_attempt_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698