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

Issue 1970463004: Blimp: Add BlobChannel Helium messages and delegate impls. (Closed)

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

Description

Blimp: Add BlobChannel Helium messages and delegate impls. * Add BlobChannelMessage protobuf definition. * Add prettyprint logging for BlobChannelMessage. * Add CreateBlimpMessage specialization for BlobChannelMessage. * Add targeted unit tests for new Helium delegates. * Move BlobData constness into BlobDataPtr, so that BlobData objects are mutable following their creation (necessary for passing payload buffers w/o copies). * Refactor CreateBlobDataPtr into common location. * Turn BlobChannelReceiver into an abstract interface for testing, moving implementation to BlobChannelReceiverImpl. R=haibinlu@chromium.org,nyquist@chromium.org CC=wez@chromium.org BUG=600719 Committed: https://crrev.com/9dced9059d886d9fecdd3316db84ac9a931d3cc7 Cr-Commit-Position: refs/heads/master@{#396271}

Patch Set 1 #

Total comments: 14

Patch Set 2 : haibinlu feedback #

Total comments: 45

Patch Set 3 : wez feedback #

Total comments: 13

Patch Set 4 : wez feedback #

Total comments: 12

Patch Set 5 : wez, nyquist feedback #

Patch Set 6 : fix BUILD.gn #

Patch Set 7 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+491 lines, -95 lines) Patch
M blimp/common/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M blimp/common/blob_cache/blob_cache.h View 1 2 1 chunk +5 lines, -2 lines 0 comments Download
M blimp/common/blob_cache/in_memory_blob_cache_unittest.cc View 1 2 3 4 2 chunks +1 line, -4 lines 0 comments Download
M blimp/common/create_blimp_message.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M blimp/common/create_blimp_message.cc View 1 2 3 4 2 chunks +8 lines, -0 lines 0 comments Download
M blimp/common/create_blimp_message_unittest.cc View 1 2 3 4 2 chunks +9 lines, -0 lines 0 comments Download
M blimp/common/logging.cc View 1 2 3 4 3 chunks +26 lines, -0 lines 0 comments Download
M blimp/common/logging_unittest.cc View 1 2 3 4 2 chunks +14 lines, -0 lines 0 comments Download
M blimp/common/proto/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M blimp/common/proto/blimp_message.proto View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
A + blimp/common/proto/blob_channel.proto View 1 2 3 4 1 chunk +11 lines, -4 lines 0 comments Download
M blimp/net/BUILD.gn View 1 2 3 4 5 6 3 chunks +7 lines, -0 lines 0 comments Download
M blimp/net/blob_channel/blob_channel_integration_test.cc View 1 2 3 4 3 chunks +22 lines, -22 lines 0 comments Download
M blimp/net/blob_channel/blob_channel_receiver.h View 1 2 3 4 1 chunk +10 lines, -31 lines 0 comments Download
M blimp/net/blob_channel/blob_channel_receiver.cc View 1 2 3 1 chunk +37 lines, -19 lines 0 comments Download
M blimp/net/blob_channel/blob_channel_receiver_unittest.cc View 1 2 3 4 4 chunks +15 lines, -13 lines 0 comments Download
A blimp/net/blob_channel/helium_blob_channel_unittest.cc View 1 2 1 chunk +73 lines, -0 lines 0 comments Download
A blimp/net/blob_channel/helium_blob_receiver_delegate.h View 1 2 3 1 chunk +43 lines, -0 lines 0 comments Download
A blimp/net/blob_channel/helium_blob_receiver_delegate.cc View 1 2 3 1 chunk +54 lines, -0 lines 0 comments Download
A blimp/net/blob_channel/helium_blob_sender_delegate.h View 1 2 1 chunk +47 lines, -0 lines 0 comments Download
A blimp/net/blob_channel/helium_blob_sender_delegate.cc View 1 2 1 chunk +40 lines, -0 lines 0 comments Download
A blimp/net/blob_channel/mock_blob_channel_receiver.h View 1 2 3 4 1 chunk +41 lines, -0 lines 0 comments Download
A blimp/net/blob_channel/mock_blob_channel_receiver.cc View 1 2 3 4 1 chunk +15 lines, -0 lines 0 comments Download
M blimp/net/test_common.h View 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (14 generated)
Kevin M
4 years, 7 months ago (2016-05-10 23:06:19 UTC) #1
Kevin M
4 years, 7 months ago (2016-05-10 23:06:51 UTC) #2
haibinlu
https://codereview.chromium.org/1970463004/diff/1/blimp/common/create_blimp_message.cc File blimp/common/create_blimp_message.cc (right): https://codereview.chromium.org/1970463004/diff/1/blimp/common/create_blimp_message.cc#newcode98 blimp/common/create_blimp_message.cc:98: std::unique_ptr<BlimpMessage> CreateBlimpMessage( add a unit test case? https://codereview.chromium.org/1970463004/diff/1/blimp/net/blob_channel/blob_channel_receiver.cc File ...
4 years, 7 months ago (2016-05-12 18:20:10 UTC) #4
Kevin M
+R wez@ (no longer OOO)
4 years, 7 months ago (2016-05-13 18:08:50 UTC) #7
Kevin M
https://codereview.chromium.org/1970463004/diff/1/blimp/common/create_blimp_message.cc File blimp/common/create_blimp_message.cc (right): https://codereview.chromium.org/1970463004/diff/1/blimp/common/create_blimp_message.cc#newcode98 blimp/common/create_blimp_message.cc:98: std::unique_ptr<BlimpMessage> CreateBlimpMessage( On 2016/05/12 18:20:09, haibinlu wrote: > add ...
4 years, 7 months ago (2016-05-13 18:40:24 UTC) #9
haibinlu
lgtm
4 years, 7 months ago (2016-05-13 21:06:17 UTC) #10
Kevin M
wez: friendly ping!
4 years, 7 months ago (2016-05-16 22:36:06 UTC) #12
Kevin M
pingz
4 years, 7 months ago (2016-05-20 18:32:56 UTC) #13
Wez
https://codereview.chromium.org/1970463004/diff/20001/blimp/common/blob_cache/blob_cache.h File blimp/common/blob_cache/blob_cache.h (right): https://codereview.chromium.org/1970463004/diff/20001/blimp/common/blob_cache/blob_cache.h#newcode18 blimp/common/blob_cache/blob_cache.h:18: using BlobDataPtr = scoped_refptr<const BlobData>; This seems peculiar - ...
4 years, 7 months ago (2016-05-20 21:46:18 UTC) #14
Kevin M
https://codereview.chromium.org/1970463004/diff/20001/blimp/common/blob_cache/blob_cache.h File blimp/common/blob_cache/blob_cache.h (right): https://codereview.chromium.org/1970463004/diff/20001/blimp/common/blob_cache/blob_cache.h#newcode18 blimp/common/blob_cache/blob_cache.h:18: using BlobDataPtr = scoped_refptr<const BlobData>; On 2016/05/20 21:46:17, Wez ...
4 years, 7 months ago (2016-05-23 20:48:08 UTC) #15
Wez
Looking good. https://codereview.chromium.org/1970463004/diff/20001/blimp/net/blob_channel/helium_blob_channel_unittest.cc File blimp/net/blob_channel/helium_blob_channel_unittest.cc (right): https://codereview.chromium.org/1970463004/diff/20001/blimp/net/blob_channel/helium_blob_channel_unittest.cc#newcode81 blimp/net/blob_channel/helium_blob_channel_unittest.cc:81: // Verifies that the Receiver understands messages ...
4 years, 7 months ago (2016-05-24 01:18:40 UTC) #16
Kevin M
https://codereview.chromium.org/1970463004/diff/40001/blimp/common/logging.cc File blimp/common/logging.cc (right): https://codereview.chromium.org/1970463004/diff/40001/blimp/common/logging.cc#newcode267 blimp/common/logging.cc:267: output); On 2016/05/24 01:18:40, Wez wrote: > break; explicitly ...
4 years, 7 months ago (2016-05-25 00:06:33 UTC) #17
Wez
LGTM w/ nits. https://codereview.chromium.org/1970463004/diff/40001/blimp/common/proto/blob_channel.proto File blimp/common/proto/blob_channel.proto (right): https://codereview.chromium.org/1970463004/diff/40001/blimp/common/proto/blob_channel.proto#newcode12 blimp/common/proto/blob_channel.proto:12: optional string blob_id = 2; On ...
4 years, 7 months ago (2016-05-25 02:47:44 UTC) #18
nyquist
lgtm https://codereview.chromium.org/1970463004/diff/60001/blimp/common/proto/blob_channel.proto File blimp/common/proto/blob_channel.proto (right): https://codereview.chromium.org/1970463004/diff/60001/blimp/common/proto/blob_channel.proto#newcode13 blimp/common/proto/blob_channel.proto:13: optional bytes payload = 1; Is there any ...
4 years, 7 months ago (2016-05-25 20:16:01 UTC) #19
Kevin M
https://codereview.chromium.org/1970463004/diff/60001/blimp/common/logging.cc File blimp/common/logging.cc (right): https://codereview.chromium.org/1970463004/diff/60001/blimp/common/logging.cc#newcode25 blimp/common/logging.cc:25: // explicit coverage of all enum values, including TYPE_NOT_SET. ...
4 years, 7 months ago (2016-05-25 20:23:38 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1970463004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1970463004/80001
4 years, 7 months ago (2016-05-25 20:24:26 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/71802) android_clang_dbg_recipe on tryserver.chromium.android (JOB_FAILED, ...
4 years, 7 months ago (2016-05-25 20:29:24 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1970463004/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1970463004/100001
4 years, 7 months ago (2016-05-25 23:43:34 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1970463004/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1970463004/120001
4 years, 7 months ago (2016-05-26 17:24:48 UTC) #31
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 7 months ago (2016-05-26 20:33:10 UTC) #33
commit-bot: I haz the power
4 years, 7 months ago (2016-05-26 20:34:16 UTC) #35
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/9dced9059d886d9fecdd3316db84ac9a931d3cc7
Cr-Commit-Position: refs/heads/master@{#396271}

Powered by Google App Engine
This is Rietveld 408576698