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

Issue 1551583003: Implementation and fixes for Blimp client/engine E2E communication. (Closed)

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

Description

Implementation and fixes for Blimp client/engine E2E communication. This CL allows the Linux client and engine to connect and perform the auth handshake. * Add Blimp net components to Linux client. * Add a getter for the common client ConnectionManager, to allow it to be accessed and modified by platform impl code. * client: replaced interim feature mappings with NullProcessors until the MessagePipe is wired in. * BlimpConnection: add verbose logging lines. * BlimpConnection: make DrainableIOBuffers throwaway, while only reusing the IOBuffer. * BlimpConnection: propagate errors to ObserverList * BlimpConnection: add WeakPtr to BlimpMessageSender to fix use-after-free callback error. * BlimpMessageDemultiplexer: fix bug in error handling for the missing receiver case, add unit test to verify fix * BlimpMessagePump: add error handling path. * ClientConnectionManager: add ErrorObserver handling logic. * StreamPacketReader: remap EOF result to a net::Error to distinguish it from net::OK. (Ugh, conflating success/error codes, yuck.) BUG= R=haibinlu@chromium.org Committed: https://crrev.com/af9548724a29784a397c1902ecc798a1e2093850 Cr-Commit-Position: refs/heads/master@{#367429}

Patch Set 1 #

Total comments: 40

Patch Set 2 : Addressed haibin's feedback, made an ObserverList for ConnectionErrorObserver #

Total comments: 25

Patch Set 3 : Address haibinlu's feedback #

Total comments: 1

Patch Set 4 : Haibin feedback #

Total comments: 1

Patch Set 5 : Add missing proto deps in client targets. #

Patch Set 6 : Fixed misplaced EXPORT directive #

Unified diffs Side-by-side diffs Delta from patch set Stats (+386 lines, -137 lines) Patch
M blimp/client/BUILD.gn View 1 2 3 4 3 chunks +4 lines, -0 lines 0 comments Download
M blimp/client/linux/blimp_main.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M blimp/client/session/blimp_client_session.h View 1 2 2 chunks +15 lines, -4 lines 0 comments Download
M blimp/client/session/blimp_client_session.cc View 1 2 3 4 1 chunk +77 lines, -16 lines 0 comments Download
M blimp/engine/app/blimp_content_main_delegate.cc View 1 2 chunks +18 lines, -0 lines 0 comments Download
M blimp/engine/app/blimp_main.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M blimp/engine/browser/blimp_engine_session.h View 1 3 chunks +5 lines, -2 lines 0 comments Download
M blimp/engine/browser/blimp_engine_session.cc View 1 2 7 chunks +22 lines, -21 lines 0 comments Download
M blimp/net/blimp_connection.h View 1 2 2 chunks +13 lines, -5 lines 0 comments Download
M blimp/net/blimp_connection.cc View 1 2 4 chunks +46 lines, -13 lines 0 comments Download
M blimp/net/blimp_connection_unittest.cc View 1 2 3 chunks +13 lines, -3 lines 0 comments Download
M blimp/net/blimp_message_demultiplexer.cc View 1 2 chunks +3 lines, -9 lines 0 comments Download
M blimp/net/blimp_message_demultiplexer_unittest.cc View 1 1 chunk +7 lines, -0 lines 0 comments Download
M blimp/net/blimp_message_output_buffer.cc View 1 4 chunks +9 lines, -7 lines 0 comments Download
M blimp/net/blimp_message_pump.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M blimp/net/blimp_message_pump.cc View 4 chunks +10 lines, -2 lines 0 comments Download
M blimp/net/browser_connection_handler.cc View 1 2 1 chunk +14 lines, -16 lines 0 comments Download
M blimp/net/browser_connection_handler_unittest.cc View 1 2 chunks +4 lines, -1 line 0 comments Download
M blimp/net/client_connection_manager.h View 1 4 chunks +22 lines, -3 lines 0 comments Download
M blimp/net/client_connection_manager.cc View 1 5 chunks +30 lines, -8 lines 0 comments Download
M blimp/net/client_connection_manager_unittest.cc View 5 chunks +14 lines, -3 lines 0 comments Download
M blimp/net/common.h View 1 2 3 4 5 2 chunks +5 lines, -0 lines 0 comments Download
M blimp/net/common.cc View 1 2 3 4 1 chunk +12 lines, -0 lines 0 comments Download
M blimp/net/engine_authentication_handler.cc View 1 3 chunks +11 lines, -5 lines 0 comments Download
M blimp/net/engine_authentication_handler_unittest.cc View 1 6 chunks +4 lines, -13 lines 0 comments Download
M blimp/net/null_blimp_message_processor.cc View 1 2 chunks +3 lines, -0 lines 0 comments Download
M blimp/net/stream_packet_reader.cc View 1 2 chunks +11 lines, -4 lines 0 comments Download
M blimp/net/test_common.h View 1 2 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 15 (5 generated)
Kevin M
This CL depends on dtrainor's Linux client from cl/1528243002.
4 years, 12 months ago (2015-12-28 22:46:10 UTC) #1
haibinlu
https://codereview.chromium.org/1551583003/diff/1/blimp/client/linux/blimp_main.cc File blimp/client/linux/blimp_main.cc (right): https://codereview.chromium.org/1551583003/diff/1/blimp/client/linux/blimp_main.cc#newcode39 blimp/client/linux/blimp_main.cc:39: io_thread.message_loop()->PostTask( it is a little strange to run BlimpClientSession::Connect ...
4 years, 12 months ago (2015-12-29 00:51:46 UTC) #2
Kevin M
https://codereview.chromium.org/1551583003/diff/1/blimp/client/linux/blimp_main.cc File blimp/client/linux/blimp_main.cc (right): https://codereview.chromium.org/1551583003/diff/1/blimp/client/linux/blimp_main.cc#newcode39 blimp/client/linux/blimp_main.cc:39: io_thread.message_loop()->PostTask( On 2015/12/29 00:51:45, haibinlu wrote: > it is ...
4 years, 11 months ago (2015-12-30 23:08:49 UTC) #4
haibinlu
https://codereview.chromium.org/1551583003/diff/20001/blimp/BUILD.gn File blimp/BUILD.gn (right): https://codereview.chromium.org/1551583003/diff/20001/blimp/BUILD.gn#newcode26 blimp/BUILD.gn:26: "//blimp/client:blimp_shell", remove this? https://codereview.chromium.org/1551583003/diff/20001/blimp/client/session/blimp_client_session.cc File blimp/client/session/blimp_client_session.cc (right): https://codereview.chromium.org/1551583003/diff/20001/blimp/client/session/blimp_client_session.cc#newcode19 blimp/client/session/blimp_client_session.cc:19: ...
4 years, 11 months ago (2016-01-04 19:45:45 UTC) #5
Kevin M
https://codereview.chromium.org/1551583003/diff/20001/blimp/BUILD.gn File blimp/BUILD.gn (right): https://codereview.chromium.org/1551583003/diff/20001/blimp/BUILD.gn#newcode26 blimp/BUILD.gn:26: "//blimp/client:blimp_shell", On 2016/01/04 19:45:45, haibinlu wrote: > remove this? ...
4 years, 11 months ago (2016-01-04 20:42:13 UTC) #6
Kevin M
https://codereview.chromium.org/1551583003/diff/20001/blimp/BUILD.gn File blimp/BUILD.gn (right): https://codereview.chromium.org/1551583003/diff/20001/blimp/BUILD.gn#newcode26 blimp/BUILD.gn:26: "//blimp/client:blimp_shell", On 2016/01/04 20:42:12, Kevin M wrote: > On ...
4 years, 11 months ago (2016-01-04 21:09:10 UTC) #7
haibinlu
lgtm https://codereview.chromium.org/1551583003/diff/40001/blimp/client/session/blimp_client_session.cc File blimp/client/session/blimp_client_session.cc (right): https://codereview.chromium.org/1551583003/diff/40001/blimp/client/session/blimp_client_session.cc#newcode23 blimp/client/session/blimp_client_session.cc:23: // Just connect to localhost for now. add ...
4 years, 11 months ago (2016-01-04 21:17:12 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1551583003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1551583003/100001
4 years, 11 months ago (2016-01-05 00:15:19 UTC) #11
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 11 months ago (2016-01-05 00:38:41 UTC) #13
commit-bot: I haz the power
4 years, 11 months ago (2016-01-05 00:39:53 UTC) #15
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/af9548724a29784a397c1902ecc798a1e2093850
Cr-Commit-Position: refs/heads/master@{#367429}

Powered by Google App Engine
This is Rietveld 408576698