|
[Chrome OS] Infrastucture for doing offline/online login simultaneously
These are meant to wrap and replace large chunks of code in GoogleAuthenticator,
once I rewrite that code to do offline and online login at the same time.
That's why there's some code that's still in GoogleAuthenticator that's
refactored into some of these classes.
Essentially, one creates an AuthAttemptState object, which will only allow
its mutable contents to be read/written on the IO thread. Then, you pass it
to an OnlineAttempt which, when done, stores results in the AuthAttemptState.
You can do the same thing with the various CryptohomeOp classes. They call out
over DBus to asynchronously do stuff with the user's cryptohome and then,
when the callbacks come in, these object post a call over to the IO thread to
update the contents of the AuthAttemptState instance they're holding on to.
BUG= chromium-os:4929
TEST=unit testss
Total comments: 1
Total comments: 22
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1401 lines, -43 lines) |
Patch |
 |
M |
chrome/browser/chromeos/cros/mock_cryptohome_library.h
|
View
|
|
2 chunks |
+50 lines, -1 line |
0 comments
|
Download
|
 |
A |
chrome/browser/chromeos/login/auth_attempt_state.h
|
View
|
1
2
3
|
1 chunk |
+83 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/chromeos/login/auth_attempt_state.cc
|
View
|
1
2
3
|
1 chunk |
+88 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/chromeos/login/auth_attempt_state_resolver.h
|
View
|
1
2
3
|
1 chunk |
+22 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/chromeos/login/auth_attempt_state_resolver.cc
|
View
|
|
1 chunk |
+13 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/chromeos/login/cryptohome_op.h
|
View
|
1
2
3
|
1 chunk |
+102 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/chromeos/login/cryptohome_op.cc
|
View
|
|
1 chunk |
+122 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/chromeos/login/cryptohome_op_unittest.cc
|
View
|
1
2
3
|
1 chunk |
+226 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/login/google_authenticator_unittest.cc
|
View
|
|
2 chunks |
+1 line, -36 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/login/login_status_consumer.h
|
View
|
|
2 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/chromeos/login/mock_auth_attempt_state_resolver.h
|
View
|
|
1 chunk |
+25 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/chromeos/login/mock_url_fetchers.h
|
View
|
|
1 chunk |
+57 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/chromeos/login/mock_url_fetchers.cc
|
View
|
|
1 chunk |
+67 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/chromeos/login/online_attempt.h
|
View
|
1
2
3
|
1 chunk |
+71 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/chromeos/login/online_attempt.cc
|
View
|
1
|
1 chunk |
+124 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/chromeos/login/online_attempt_unittest.cc
|
View
|
1
2
3
|
1 chunk |
+230 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/chromeos/login/test_attempt_state.h
|
View
|
|
1 chunk |
+51 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/chromeos/login/test_attempt_state.cc
|
View
|
|
1 chunk |
+43 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/chrome_browser.gypi
|
View
|
1
2
3
4
|
5 chunks |
+16 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/chrome_tests.gypi
|
View
|
1
2
3
4
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
Total messages: 11 (0 generated)
|