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

Issue 1891083002: Blimp: Add BlobChannelReceiver and bindings interface. (Closed)

Created:
4 years, 8 months ago by Kevin M
Modified:
4 years, 7 months ago
Reviewers:
haibinlu, Wez
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
Base URL:
https://chromium.googlesource.com/chromium/src.git@blobchannel-sender
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Blimp: Implement BlobChannelReceiver. This class is responsible for routing blob reads to locally cached entries, or if they aren't available, issuing requests for the data to a remote BlobChannelReceiver. The transport-specific details are provided by a delegate object, the implementation of which is out of scope for this CL. Add a BlobCache mock class. R=wez@chromium.org,nyquist@chromium.org BUG=600719 Committed: https://crrev.com/eaac155c0dd775c2b295c94b1b3ed85dab453908 Cr-Commit-Position: refs/heads/master@{#391394}

Patch Set 1 #

Patch Set 2 : moar bindings commentz! #

Total comments: 9

Patch Set 3 : wez feedback #

Patch Set 4 : git rm *bindings* #

Total comments: 12

Patch Set 5 : Sync only! #

Total comments: 21

Patch Set 6 : wez feedback #

Total comments: 4

Patch Set 7 : wez feedback #

Total comments: 10

Patch Set 8 : wez feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+265 lines, -5 lines) Patch
M blimp/common/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +16 lines, -0 lines 0 comments Download
A blimp/common/blob_cache/mock_blob_cache.h View 1 2 3 4 5 1 chunk +28 lines, -0 lines 0 comments Download
A + blimp/common/blob_cache/mock_blob_cache.cc View 1 2 3 4 1 chunk +5 lines, -5 lines 0 comments Download
M blimp/net/BUILD.gn View 1 2 3 4 5 6 7 3 chunks +4 lines, -0 lines 0 comments Download
A blimp/net/blob_channel/blob_channel_receiver.h View 1 2 3 4 5 6 7 1 chunk +69 lines, -0 lines 0 comments Download
A blimp/net/blob_channel/blob_channel_receiver.cc View 1 2 3 4 5 6 7 1 chunk +55 lines, -0 lines 0 comments Download
A blimp/net/blob_channel/blob_channel_receiver_unittest.cc View 1 2 3 4 5 6 7 1 chunk +88 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (8 generated)
Kevin M
4 years, 8 months ago (2016-04-15 00:26:35 UTC) #1
Wez
https://codereview.chromium.org/1891083002/diff/20001/blimp/net/blob_channel/blob_channel_bindings.h File blimp/net/blob_channel/blob_channel_bindings.h (right): https://codereview.chromium.org/1891083002/diff/20001/blimp/net/blob_channel/blob_channel_bindings.h#newcode27 blimp/net/blob_channel/blob_channel_bindings.h:27: class Delegate { Why is this callback wrapped in ...
4 years, 8 months ago (2016-04-15 17:27:43 UTC) #2
Kevin M
https://codereview.chromium.org/1891083002/diff/20001/blimp/net/blob_channel/blob_channel_bindings.h File blimp/net/blob_channel/blob_channel_bindings.h (right): https://codereview.chromium.org/1891083002/diff/20001/blimp/net/blob_channel/blob_channel_bindings.h#newcode27 blimp/net/blob_channel/blob_channel_bindings.h:27: class Delegate { On 2016/04/15 17:27:43, Wez wrote: > ...
4 years, 8 months ago (2016-04-15 23:53:44 UTC) #3
Wez
https://codereview.chromium.org/1891083002/diff/60001/blimp/net/blob_channel/blob_channel_receiver.cc File blimp/net/blob_channel/blob_channel_receiver.cc (right): https://codereview.chromium.org/1891083002/diff/60001/blimp/net/blob_channel/blob_channel_receiver.cc#newcode16 blimp/net/blob_channel/blob_channel_receiver.cc:16: BlobChannelReceiver::Delegate::~Delegate() {} Your API contract is that Delegate MUST ...
4 years, 8 months ago (2016-04-18 22:40:41 UTC) #4
Wez
https://codereview.chromium.org/1891083002/diff/20001/blimp/net/blob_channel/blob_channel_receiver.h File blimp/net/blob_channel/blob_channel_receiver.h (right): https://codereview.chromium.org/1891083002/diff/20001/blimp/net/blob_channel/blob_channel_receiver.h#newcode41 blimp/net/blob_channel/blob_channel_receiver.h:41: // Can be called on any thread. Holds |lock_|. ...
4 years, 8 months ago (2016-04-18 22:44:47 UTC) #5
Wez
https://codereview.chromium.org/1891083002/diff/60001/blimp/net/blob_channel/blob_channel_receiver.h File blimp/net/blob_channel/blob_channel_receiver.h (right): https://codereview.chromium.org/1891083002/diff/60001/blimp/net/blob_channel/blob_channel_receiver.h#newcode79 blimp/net/blob_channel/blob_channel_receiver.h:79: Delegate* delegate_ = nullptr; nit: You have no default ...
4 years, 8 months ago (2016-04-18 22:56:11 UTC) #6
Kevin M
PTAL. Code is now sync-only, we can add async in a later CL when an ...
4 years, 8 months ago (2016-04-20 21:22:46 UTC) #7
Wez
https://codereview.chromium.org/1891083002/diff/80001/blimp/common/blob_cache/mock_blob_cache.h File blimp/common/blob_cache/mock_blob_cache.h (right): https://codereview.chromium.org/1891083002/diff/80001/blimp/common/blob_cache/mock_blob_cache.h#newcode21 blimp/common/blob_cache/mock_blob_cache.h:21: }; DISALLOW_COPY_AND_ASSIGN? https://codereview.chromium.org/1891083002/diff/80001/blimp/net/blob_channel/blob_channel_receiver.cc File blimp/net/blob_channel/blob_channel_receiver.cc (right): https://codereview.chromium.org/1891083002/diff/80001/blimp/net/blob_channel/blob_channel_receiver.cc#newcode15 blimp/net/blob_channel/blob_channel_receiver.cc:15: BlobChannelReceiver::Delegate::~Delegate() ...
4 years, 8 months ago (2016-04-21 00:55:02 UTC) #11
Kevin M
https://codereview.chromium.org/1891083002/diff/80001/blimp/common/blob_cache/mock_blob_cache.h File blimp/common/blob_cache/mock_blob_cache.h (right): https://codereview.chromium.org/1891083002/diff/80001/blimp/common/blob_cache/mock_blob_cache.h#newcode21 blimp/common/blob_cache/mock_blob_cache.h:21: }; On 2016/04/21 00:55:02, Wez wrote: > DISALLOW_COPY_AND_ASSIGN? Done. ...
4 years, 8 months ago (2016-04-21 21:24:08 UTC) #12
Wez
https://codereview.chromium.org/1891083002/diff/80001/blimp/net/blob_channel/blob_channel_receiver.h File blimp/net/blob_channel/blob_channel_receiver.h (right): https://codereview.chromium.org/1891083002/diff/80001/blimp/net/blob_channel/blob_channel_receiver.h#newcode59 blimp/net/blob_channel/blob_channel_receiver.h:59: // Guards against concurrent access to |cache_| and |active_read_callbacks_|. ...
4 years, 8 months ago (2016-04-21 22:52:51 UTC) #13
Kevin M
https://codereview.chromium.org/1891083002/diff/80001/blimp/net/blob_channel/blob_channel_receiver.h File blimp/net/blob_channel/blob_channel_receiver.h (right): https://codereview.chromium.org/1891083002/diff/80001/blimp/net/blob_channel/blob_channel_receiver.h#newcode59 blimp/net/blob_channel/blob_channel_receiver.h:59: // Guards against concurrent access to |cache_| and |active_read_callbacks_|. ...
4 years, 8 months ago (2016-04-22 00:21:25 UTC) #14
Kevin M
Adding haibin to reviewer list
4 years, 7 months ago (2016-05-03 21:04:44 UTC) #16
Wez
LGTM w/ nits. https://codereview.chromium.org/1891083002/diff/120001/blimp/net/blob_channel/blob_channel_receiver.cc File blimp/net/blob_channel/blob_channel_receiver.cc (right): https://codereview.chromium.org/1891083002/diff/120001/blimp/net/blob_channel/blob_channel_receiver.cc#newcode34 blimp/net/blob_channel/blob_channel_receiver.cc:34: DCHECK(delegate_); nit: Next line de-refs delegate_, ...
4 years, 7 months ago (2016-05-03 21:32:20 UTC) #17
Kevin M
https://codereview.chromium.org/1891083002/diff/120001/blimp/net/blob_channel/blob_channel_receiver.cc File blimp/net/blob_channel/blob_channel_receiver.cc (right): https://codereview.chromium.org/1891083002/diff/120001/blimp/net/blob_channel/blob_channel_receiver.cc#newcode34 blimp/net/blob_channel/blob_channel_receiver.cc:34: DCHECK(delegate_); On 2016/05/03 21:32:20, Wez wrote: > nit: Next ...
4 years, 7 months ago (2016-05-03 22:29:42 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1891083002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1891083002/140001
4 years, 7 months ago (2016-05-03 22:30:09 UTC) #21
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 7 months ago (2016-05-03 23:30:10 UTC) #23
commit-bot: I haz the power
4 years, 7 months ago (2016-05-03 23:31:46 UTC) #25
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/eaac155c0dd775c2b295c94b1b3ed85dab453908
Cr-Commit-Position: refs/heads/master@{#391394}

Powered by Google App Engine
This is Rietveld 408576698