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

Issue 12389010: Refactor of Authenticator to allow it to ProcessMessage asynchronously and then call a callback (Closed)

Created:
7 years, 9 months ago by rmsousa
Modified:
7 years, 9 months ago
Reviewers:
Sergey Ulanov
CC:
chromium-reviews, jamiewalch+watch_chromium.org, dcaiafa+watch_chromium.org, simonmorris+watch_chromium.org, hclam+watch_chromium.org, wez+watch_chromium.org, amit, sanjeevr, sail+watch_chromium.org, garykac+watch_chromium.org, lambroslambrou+watch_chromium.org, rmsousa+watch_chromium.org, alexeypa+watch_chromium.org, sergeyu+watch_chromium.org, Wez
Base URL:
http://git.chromium.org/chromium/src.git@host_key_pair
Visibility:
Public.

Description

Refactor of Authenticator to allow it to ProcessMessage asynchronously and then call a callback This is so that ProcessMessage can potentially require user input (or use the result of a network operation) without blocking the network thread on JingleSession. BUG=115899 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=185492

Patch Set 1 #

Total comments: 8

Patch Set 2 : Add new states #

Total comments: 3

Patch Set 3 : Remove useless include #

Total comments: 10

Patch Set 4 : Reorder params #

Patch Set 5 : Reapply over SVN base #

Patch Set 6 : Rebase missed one include #

Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -69 lines) Patch
M remoting/host/pam_authorization_factory_posix.cc View 1 2 3 4 chunks +16 lines, -4 lines 0 comments Download
M remoting/protocol/authenticator.h View 1 2 3 4 chunks +13 lines, -3 lines 0 comments Download
M remoting/protocol/authenticator_test_base.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M remoting/protocol/authenticator_test_base.cc View 1 2 3 4 1 chunk +21 lines, -30 lines 0 comments Download
M remoting/protocol/connection_to_client.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M remoting/protocol/connection_to_host.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M remoting/protocol/fake_authenticator.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M remoting/protocol/fake_authenticator.cc View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M remoting/protocol/jingle_session.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M remoting/protocol/jingle_session.cc View 1 2 3 8 chunks +20 lines, -15 lines 0 comments Download
M remoting/protocol/me2me_host_authenticator_factory.cc View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M remoting/protocol/negotiating_authenticator.h View 1 2 3 4 2 chunks +4 lines, -1 line 0 comments Download
M remoting/protocol/negotiating_authenticator.cc View 1 2 3 4 5 5 chunks +23 lines, -6 lines 0 comments Download
M remoting/protocol/session.h View 1 1 chunk +4 lines, -3 lines 0 comments Download
M remoting/protocol/v2_authenticator.h View 1 2 3 4 2 chunks +4 lines, -1 line 0 comments Download
M remoting/protocol/v2_authenticator.cc View 1 2 3 4 1 chunk +7 lines, -1 line 0 comments Download
M remoting/protocol/v2_authenticator_unittest.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
rmsousa
Hi Sergey, This is the authenticator refactor that wez suggested in https://codereview.chromium.org/12326090/ The existing authenticators ...
7 years, 9 months ago (2013-02-28 04:42:47 UTC) #1
Sergey Ulanov
https://codereview.chromium.org/12389010/diff/1/remoting/protocol/jingle_session.cc File remoting/protocol/jingle_session.cc (right): https://codereview.chromium.org/12389010/diff/1/remoting/protocol/jingle_session.cc#newcode156 remoting/protocol/jingle_session.cc:156: void JingleSession::ContinueAcceptIncomingConnection() { This change introduces another state that ...
7 years, 9 months ago (2013-02-28 08:05:15 UTC) #2
rmsousa
Thanks for the review, ptal https://codereview.chromium.org/12389010/diff/1/remoting/protocol/jingle_session.cc File remoting/protocol/jingle_session.cc (right): https://codereview.chromium.org/12389010/diff/1/remoting/protocol/jingle_session.cc#newcode156 remoting/protocol/jingle_session.cc:156: void JingleSession::ContinueAcceptIncomingConnection() { On ...
7 years, 9 months ago (2013-02-28 23:29:23 UTC) #3
Sergey Ulanov
LGTM provided my nits are addressed. https://codereview.chromium.org/12389010/diff/4001/remoting/protocol/session.h File remoting/protocol/session.h (left): https://codereview.chromium.org/12389010/diff/4001/remoting/protocol/session.h#oldcode34 remoting/protocol/session.h:34: // TODO(sergeyu): Do ...
7 years, 9 months ago (2013-03-01 01:28:30 UTC) #4
rmsousa
https://codereview.chromium.org/12389010/diff/7001/remoting/protocol/authenticator.h File remoting/protocol/authenticator.h (right): https://codereview.chromium.org/12389010/diff/7001/remoting/protocol/authenticator.h#newcode42 remoting/protocol/authenticator.h:42: // WAITING_MESSAGE -> PROCESSING_MESSAGE -> MESSAGE_READY On 2013/03/01 01:28:30, ...
7 years, 9 months ago (2013-03-01 02:22:11 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rmsousa@chromium.org/12389010/13001
7 years, 9 months ago (2013-03-01 02:24:49 UTC) #6
commit-bot: I haz the power
Failed to apply patch for remoting/protocol/negotiating_authenticator.h: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 9 months ago (2013-03-01 02:24:56 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rmsousa@chromium.org/12389010/7002
7 years, 9 months ago (2013-03-01 02:39:07 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rmsousa@chromium.org/12389010/6005
7 years, 9 months ago (2013-03-01 03:03:14 UTC) #9
commit-bot: I haz the power
7 years, 9 months ago (2013-03-01 07:59:42 UTC) #10
Message was sent while issue was closed.
Change committed as 185492

Powered by Google App Engine
This is Rietveld 408576698