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

Issue 1492643003: [Blimp Net] Add EngineAuthHandler. (Closed)

Created:
5 years ago by haibinlu
Modified:
5 years ago
Reviewers:
Kevin M, Wez, maniscalco
CC:
cbentzel+watch_chromium.org, chromium-reviews, dtrainor+watch-blimp_chromium.org, kmarshall+watch-blimp_chromium.org, maniscalco+watch-blimp_chromium.org, maniscalco, marcinjb+watch-blimp_chromium.org, nyquist+watch-blimp_chromium.org, sriramsr+watch-blimp_chromium.org, Sriram
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Blimp Net] Add EngineAuthHandler. It is a ConnectionHandler which expects each new connection to supply a StartConnection message with a valid client authentication token, verifies it, and if successful then hands the connection off to the main ConnectionHandler. BUG=567817 Committed: https://crrev.com/9fa0095471e61a1de43d902974567355585157fe Cr-Commit-Position: refs/heads/master@{#363880}

Patch Set 1 #

Total comments: 8

Patch Set 2 : #

Patch Set 3 : rebase #

Total comments: 32

Patch Set 4 : Addresses Kevin's comments. #

Total comments: 14

Patch Set 5 : #

Total comments: 32

Patch Set 6 : Addresses Wez's comments #

Total comments: 7

Patch Set 7 : Addresses comments and adds unit tests #

Total comments: 32

Patch Set 8 : Adds a test case for failed authentication due to timeout #

Patch Set 9 : Addresses wez's comments #

Total comments: 8

Patch Set 10 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+371 lines, -16 lines) Patch
M blimp/common/create_blimp_message.h View 1 2 3 4 5 6 7 8 3 chunks +7 lines, -0 lines 0 comments Download
M blimp/common/create_blimp_message.cc View 1 2 3 4 5 6 7 8 9 1 chunk +17 lines, -0 lines 0 comments Download
M blimp/common/create_blimp_message_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +15 lines, -0 lines 0 comments Download
M blimp/common/proto/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M blimp/common/proto/blimp_message.proto View 1 3 chunks +3 lines, -0 lines 0 comments Download
A + blimp/common/proto/protocol_control.proto View 1 2 3 4 5 6 7 8 1 chunk +9 lines, -13 lines 0 comments Download
M blimp/net/BUILD.gn View 1 2 3 4 5 6 2 chunks +3 lines, -0 lines 0 comments Download
M blimp/net/blimp_connection.h View 1 2 3 4 5 6 1 chunk +6 lines, -3 lines 0 comments Download
M blimp/net/blimp_connection.cc View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
A blimp/net/engine_authentication_handler.h View 1 2 3 4 5 6 7 8 1 chunk +40 lines, -0 lines 0 comments Download
A blimp/net/engine_authentication_handler.cc View 1 2 3 4 5 6 7 8 1 chunk +126 lines, -0 lines 0 comments Download
A blimp/net/engine_authentication_handler_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +123 lines, -0 lines 0 comments Download
M blimp/net/test_common.h View 1 2 3 4 5 6 2 chunks +15 lines, -0 lines 0 comments Download
M blimp/net/test_common.cc View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 36 (13 generated)
haibinlu
not ready for review - just want design input
5 years ago (2015-12-02 01:09:28 UTC) #3
Wez
https://codereview.chromium.org/1492643003/diff/1/blimp/common/proto/blimp_message.proto File blimp/common/proto/blimp_message.proto (right): https://codereview.chromium.org/1492643003/diff/1/blimp/common/proto/blimp_message.proto#newcode68 blimp/common/proto/blimp_message.proto:68: optional StartConnectionMessage start_connection = 1005; Let's either move these ...
5 years ago (2015-12-02 01:52:53 UTC) #4
maniscalco
https://codereview.chromium.org/1492643003/diff/1/blimp/common/proto/start_connection.proto File blimp/common/proto/start_connection.proto (right): https://codereview.chromium.org/1492643003/diff/1/blimp/common/proto/start_connection.proto#newcode13 blimp/common/proto/start_connection.proto:13: optional string auth_token = 1; Elsewhere we've called this ...
5 years ago (2015-12-02 17:09:36 UTC) #5
haibinlu
Ready for review. will add unit test. https://codereview.chromium.org/1492643003/diff/1/blimp/common/proto/blimp_message.proto File blimp/common/proto/blimp_message.proto (right): https://codereview.chromium.org/1492643003/diff/1/blimp/common/proto/blimp_message.proto#newcode68 blimp/common/proto/blimp_message.proto:68: optional StartConnectionMessage ...
5 years ago (2015-12-03 01:53:23 UTC) #7
Kevin M
https://codereview.chromium.org/1492643003/diff/40001/blimp/common/proto/protocol_control.proto File blimp/common/proto/protocol_control.proto (right): https://codereview.chromium.org/1492643003/diff/40001/blimp/common/proto/protocol_control.proto#newcode11 blimp/common/proto/protocol_control.proto:11: // Contains Client->Engine information to establish a authenticated connection. ...
5 years ago (2015-12-03 19:11:37 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1492643003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1492643003/40001
5 years ago (2015-12-03 21:07:10 UTC) #10
haibinlu
https://codereview.chromium.org/1492643003/diff/40001/blimp/common/proto/protocol_control.proto File blimp/common/proto/protocol_control.proto (right): https://codereview.chromium.org/1492643003/diff/40001/blimp/common/proto/protocol_control.proto#newcode12 blimp/common/proto/protocol_control.proto:12: message ProtocolControlMessage { On 2015/12/03 19:11:36, Kevin M wrote: ...
5 years ago (2015-12-03 22:28:35 UTC) #11
Kevin M
https://codereview.chromium.org/1492643003/diff/40001/blimp/common/proto/protocol_control.proto File blimp/common/proto/protocol_control.proto (right): https://codereview.chromium.org/1492643003/diff/40001/blimp/common/proto/protocol_control.proto#newcode11 blimp/common/proto/protocol_control.proto:11: // Contains Client->Engine information to establish a authenticated connection. ...
5 years ago (2015-12-03 23:12:05 UTC) #12
haibinlu
https://codereview.chromium.org/1492643003/diff/40001/blimp/common/proto/protocol_control.proto File blimp/common/proto/protocol_control.proto (right): https://codereview.chromium.org/1492643003/diff/40001/blimp/common/proto/protocol_control.proto#newcode11 blimp/common/proto/protocol_control.proto:11: // Contains Client->Engine information to establish a authenticated connection. ...
5 years ago (2015-12-03 23:42:21 UTC) #13
Wez
https://codereview.chromium.org/1492643003/diff/80001/blimp/common/proto/blimp_message.proto File blimp/common/proto/blimp_message.proto (right): https://codereview.chromium.org/1492643003/diff/80001/blimp/common/proto/blimp_message.proto#newcode43 blimp/common/proto/blimp_message.proto:43: PROTOCOL_CONTROL = 6; I'd prefer that this be something ...
5 years ago (2015-12-04 01:35:38 UTC) #14
haibinlu
PTAL. I used BlimpConnection.SetIncomingMessageProcessor(nullptr) in this patch, just to show that it is a nice ...
5 years ago (2015-12-04 02:50:41 UTC) #15
Kevin M
Discussed this with Wez. We'll add DCHECKs and comments to the MessagePump to ensure that ...
5 years ago (2015-12-04 19:12:05 UTC) #16
haibinlu
PTAL https://codereview.chromium.org/1492643003/diff/100001/blimp/net/connection_handler.h File blimp/net/connection_handler.h (right): https://codereview.chromium.org/1492643003/diff/100001/blimp/net/connection_handler.h#newcode17 blimp/net/connection_handler.h:17: // The receiving object is responsible for synchronously ...
5 years ago (2015-12-07 21:54:50 UTC) #18
Wez
https://codereview.chromium.org/1492643003/diff/120001/blimp/common/create_blimp_message.h File blimp/common/create_blimp_message.h (right): https://codereview.chromium.org/1492643003/diff/120001/blimp/common/create_blimp_message.h#newcode43 blimp/common/create_blimp_message.h:43: StartConnectionMessage** start_connection_message); Presumably we want to allow the caller ...
5 years ago (2015-12-08 00:31:41 UTC) #19
haibinlu
PTAL https://codereview.chromium.org/1492643003/diff/120001/blimp/common/create_blimp_message.h File blimp/common/create_blimp_message.h (right): https://codereview.chromium.org/1492643003/diff/120001/blimp/common/create_blimp_message.h#newcode43 blimp/common/create_blimp_message.h:43: StartConnectionMessage** start_connection_message); On 2015/12/08 00:31:41, Wez wrote: > ...
5 years ago (2015-12-08 01:54:50 UTC) #20
Wez
Do we have a bug # for this? Also, suggest making the CL description a ...
5 years ago (2015-12-08 18:52:14 UTC) #21
haibinlu
Updated description and added a bug. PTAL
5 years ago (2015-12-08 19:15:53 UTC) #23
Wez
lgtm https://codereview.chromium.org/1492643003/diff/160001/blimp/common/create_blimp_message.cc File blimp/common/create_blimp_message.cc (right): https://codereview.chromium.org/1492643003/diff/160001/blimp/common/create_blimp_message.cc#newcode49 blimp/common/create_blimp_message.cc:49: scoped_ptr<BlimpMessage> output(new BlimpMessage); nit: I'd suggest putting using ...
5 years ago (2015-12-08 22:59:59 UTC) #24
haibinlu
https://codereview.chromium.org/1492643003/diff/160001/blimp/common/create_blimp_message.cc File blimp/common/create_blimp_message.cc (right): https://codereview.chromium.org/1492643003/diff/160001/blimp/common/create_blimp_message.cc#newcode49 blimp/common/create_blimp_message.cc:49: scoped_ptr<BlimpMessage> output(new BlimpMessage); On 2015/12/08 22:59:59, Wez wrote: > ...
5 years ago (2015-12-09 00:02:33 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1492643003/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1492643003/180001
5 years ago (2015-12-09 00:14:52 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1492643003/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1492643003/180001
5 years ago (2015-12-09 00:46:13 UTC) #32
commit-bot: I haz the power
Committed patchset #10 (id:180001)
5 years ago (2015-12-09 01:43:30 UTC) #34
commit-bot: I haz the power
5 years ago (2015-12-09 01:45:15 UTC) #36
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/9fa0095471e61a1de43d902974567355585157fe
Cr-Commit-Position: refs/heads/master@{#363880}

Powered by Google App Engine
This is Rietveld 408576698