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

Issue 1324263003: Blimp: create MessageDispatcher class. (Closed)

Created:
5 years, 3 months ago by Kevin M
Modified:
5 years, 2 months ago
Reviewers:
Dirk Pranke, Wez, nyquist
CC:
cbentzel+watch_chromium.org, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@blimp-protos
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Blimp: create MessageDispatcher class. This class routes incoming BlimpMessages to registered handlers based on the messages' types. R=wez@chromium.org,nyquist@chromium.org BUG=525766 Committed: https://crrev.com/1b78a36c7edf36f97214600b83e715291146c01c Cr-Commit-Position: refs/heads/master@{#353924}

Patch Set 1 #

Patch Set 2 : Use ostream message for error message #

Patch Set 3 : Add unit tests; refactor BUILD.gns #

Total comments: 4

Patch Set 4 : Restore BUILD files, disable compositor code that won't compile. #

Patch Set 5 : Addressed nyquist's feedback #

Total comments: 6

Patch Set 6 : Add Blimp common unittests to buildbot waterfalls #

Total comments: 2

Patch Set 7 : Added test entry to tryserver.chromium.linux.json #

Patch Set 8 : Remove testonly annotation #

Total comments: 6

Patch Set 9 : Remove tabs from multiplexing key #

Patch Set 10 : Resync with master #

Total comments: 9

Patch Set 11 : Fix tryserver entries. #

Total comments: 4

Patch Set 12 : Addressed dpranke's feedback #

Total comments: 17

Patch Set 13 : Addressed wez/nyquist feedback #

Total comments: 9

Patch Set 14 : Addressed wez's feedback. #

Total comments: 21

Patch Set 15 : Addressed wez's feedback #

Patch Set 16 : Resync with master #

Patch Set 17 : Update buildbot targets #

Patch Set 18 : Resync with master. #

Patch Set 19 : Remove build rules from common #

Patch Set 20 : Add GYP "_run" compatibility rule. #

Patch Set 21 : Resolve naming collision for "net" #

Unified diffs Side-by-side diffs Delta from patch set Stats (+264 lines, -1 line) Patch
M blimp/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +2 lines, -0 lines 0 comments Download
M blimp/common/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +2 lines, -0 lines 0 comments Download
M blimp/common/proto/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +8 lines, -1 line 0 comments Download
A blimp/net/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +48 lines, -0 lines 0 comments Download
A blimp/net/blimp_message_dispatcher.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +44 lines, -0 lines 0 comments Download
A blimp/net/blimp_message_dispatcher.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +45 lines, -0 lines 0 comments Download
A blimp/net/blimp_message_dispatcher_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +46 lines, -0 lines 0 comments Download
A blimp/net/blimp_message_receiver.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +27 lines, -0 lines 0 comments Download
A blimp/net/blimp_net_export.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +29 lines, -0 lines 0 comments Download
M testing/buildbot/chromium.linux.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +9 lines, -0 lines 0 comments Download
M testing/buildbot/gn_isolate_map.pyl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 63 (15 generated)
Kevin M
Will add unit tests to this CL if the overall code LGTY. Depends on CL ...
5 years, 3 months ago (2015-09-04 00:39:15 UTC) #1
Kevin M
Added unit tests. Also refactored the BUILDs to isolate the components better - doing so ...
5 years, 3 months ago (2015-09-04 20:59:55 UTC) #2
Kevin M
Impeding patch! After talking with nyquist@, I decided to create another CL to separate the ...
5 years, 3 months ago (2015-09-08 17:29:58 UTC) #3
nyquist
https://codereview.chromium.org/1324263003/diff/40001/blimp/common/net/message_dispatcher.cc File blimp/common/net/message_dispatcher.cc (right): https://codereview.chromium.org/1324263003/diff/40001/blimp/common/net/message_dispatcher.cc#newcode14 blimp/common/net/message_dispatcher.cc:14: std::string BlimpMessageToString(const BlimpMessage& message) { Nit: Could we make ...
5 years, 3 months ago (2015-09-08 17:30:12 UTC) #4
Kevin M
https://codereview.chromium.org/1324263003/diff/40001/blimp/common/net/message_dispatcher.cc File blimp/common/net/message_dispatcher.cc (right): https://codereview.chromium.org/1324263003/diff/40001/blimp/common/net/message_dispatcher.cc#newcode14 blimp/common/net/message_dispatcher.cc:14: std::string BlimpMessageToString(const BlimpMessage& message) { On 2015/09/08 17:30:12, nyquist ...
5 years, 3 months ago (2015-09-08 20:50:19 UTC) #5
Kevin M
OK, I undid the BUILD refactoring and just commented out the sections of the compositor ...
5 years, 3 months ago (2015-09-08 20:51:18 UTC) #6
nyquist
https://codereview.chromium.org/1324263003/diff/80001/BUILD.gn File BUILD.gn (right): https://codereview.chromium.org/1324263003/diff/80001/BUILD.gn#newcode620 BUILD.gn:620: "//blimp:unit_tests", Could you add this to: //testing/buildbot/chromium.linux.json under 'Android ...
5 years, 3 months ago (2015-09-10 00:18:49 UTC) #7
nyquist
https://codereview.chromium.org/1324263003/diff/80001/blimp/common/compositor/blimp_layer_tree_settings.cc File blimp/common/compositor/blimp_layer_tree_settings.cc (right): https://codereview.chromium.org/1324263003/diff/80001/blimp/common/compositor/blimp_layer_tree_settings.cc#newcode242 blimp/common/compositor/blimp_layer_tree_settings.cc:242: NOTIMPLEMENTED() << "Unresolved dependency TODO for native_theme."; This should ...
5 years, 3 months ago (2015-09-10 03:47:33 UTC) #8
nyquist
https://codereview.chromium.org/1324263003/diff/80001/blimp/BUILD.gn File blimp/BUILD.gn (right): https://codereview.chromium.org/1324263003/diff/80001/blimp/BUILD.gn#newcode6 blimp/BUILD.gn:6: group("unit_tests") { Could this be blimp_tests ? Or if ...
5 years, 3 months ago (2015-09-10 17:24:28 UTC) #9
Kevin M
https://codereview.chromium.org/1324263003/diff/80001/BUILD.gn File BUILD.gn (right): https://codereview.chromium.org/1324263003/diff/80001/BUILD.gn#newcode620 BUILD.gn:620: "//blimp:unit_tests", On 2015/09/10 00:18:48, nyquist wrote: > Could you ...
5 years, 3 months ago (2015-09-10 18:11:17 UTC) #10
nyquist
https://codereview.chromium.org/1324263003/diff/100001/testing/buildbot/chromium.linux.json File testing/buildbot/chromium.linux.json (right): https://codereview.chromium.org/1324263003/diff/100001/testing/buildbot/chromium.linux.json#newcode11 testing/buildbot/chromium.linux.json:11: "test": "blimp_common_unit_tests" Could we add these lines to tryserver.chromium.linux.json ...
5 years, 3 months ago (2015-09-10 18:19:39 UTC) #11
nyquist
blimp lgtm
5 years, 3 months ago (2015-09-10 18:20:35 UTC) #12
Kevin M
Done. Will hold off until LGTWez. https://codereview.chromium.org/1324263003/diff/100001/testing/buildbot/chromium.linux.json File testing/buildbot/chromium.linux.json (right): https://codereview.chromium.org/1324263003/diff/100001/testing/buildbot/chromium.linux.json#newcode11 testing/buildbot/chromium.linux.json:11: "test": "blimp_common_unit_tests" On ...
5 years, 3 months ago (2015-09-10 18:33:20 UTC) #13
nyquist
https://codereview.chromium.org/1324263003/diff/140001/blimp/BUILD.gn File blimp/BUILD.gn (right): https://codereview.chromium.org/1324263003/diff/140001/blimp/BUILD.gn#newcode17 blimp/BUILD.gn:17: "common:blimp_common_unit_tests", I see now that the style of this ...
5 years, 3 months ago (2015-09-10 20:12:09 UTC) #14
nyquist
https://codereview.chromium.org/1324263003/diff/140001/testing/buildbot/chromium.linux.json File testing/buildbot/chromium.linux.json (right): https://codereview.chromium.org/1324263003/diff/140001/testing/buildbot/chromium.linux.json#newcode275 testing/buildbot/chromium.linux.json:275: "test": "blimp_common_unit_tests" Could you add to Linux GN (dbg) ...
5 years, 3 months ago (2015-09-10 21:56:48 UTC) #15
Kevin M
Also removed tab ID from multiplexing key. Starting simple. We can add it later if ...
5 years, 3 months ago (2015-09-23 00:05:30 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1324263003/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1324263003/180001
5 years, 2 months ago (2015-09-25 16:24:55 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/103848) linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, ...
5 years, 2 months ago (2015-09-25 16:34:20 UTC) #21
nyquist
https://codereview.chromium.org/1324263003/diff/180001/testing/buildbot/tryserver.chromium.linux.json File testing/buildbot/tryserver.chromium.linux.json (right): https://codereview.chromium.org/1324263003/diff/180001/testing/buildbot/tryserver.chromium.linux.json#newcode186 testing/buildbot/tryserver.chromium.linux.json:186: "test": "blimp_common_unit_tests" I think you can move this to ...
5 years, 2 months ago (2015-09-25 22:21:29 UTC) #23
Kevin M
Dirk: friendly ping for buildbot configs.
5 years, 2 months ago (2015-09-30 23:52:53 UTC) #24
Kevin M
https://chromiumcodereview.appspot.com/1324263003/diff/180001/testing/buildbot/tryserver.chromium.linux.json File testing/buildbot/tryserver.chromium.linux.json (right): https://chromiumcodereview.appspot.com/1324263003/diff/180001/testing/buildbot/tryserver.chromium.linux.json#newcode186 testing/buildbot/tryserver.chromium.linux.json:186: "test": "blimp_common_unit_tests" On 2015/09/25 22:21:29, nyquist wrote: > I ...
5 years, 2 months ago (2015-10-01 00:02:37 UTC) #25
nyquist
https://chromiumcodereview.appspot.com/1324263003/diff/180001/testing/buildbot/tryserver.chromium.linux.json File testing/buildbot/tryserver.chromium.linux.json (right): https://chromiumcodereview.appspot.com/1324263003/diff/180001/testing/buildbot/tryserver.chromium.linux.json#newcode186 testing/buildbot/tryserver.chromium.linux.json:186: "test": "blimp_common_unit_tests" On 2015/10/01 00:02:36, Kevin M wrote: > ...
5 years, 2 months ago (2015-10-01 00:07:14 UTC) #26
Dirk Pranke
sorry for the delay, somehow I didn't see this patch until I was pinged. https://chromiumcodereview.appspot.com/1324263003/diff/180001/BUILD.gn ...
5 years, 2 months ago (2015-10-01 00:14:03 UTC) #27
Kevin M
https://chromiumcodereview.appspot.com/1324263003/diff/180001/testing/buildbot/tryserver.chromium.linux.json File testing/buildbot/tryserver.chromium.linux.json (right): https://chromiumcodereview.appspot.com/1324263003/diff/180001/testing/buildbot/tryserver.chromium.linux.json#newcode186 testing/buildbot/tryserver.chromium.linux.json:186: "test": "blimp_common_unit_tests" On 2015/10/01 00:14:03, Dirk Pranke wrote: > ...
5 years, 2 months ago (2015-10-01 00:23:02 UTC) #28
nyquist
https://chromiumcodereview.appspot.com/1324263003/diff/180001/testing/buildbot/tryserver.chromium.linux.json File testing/buildbot/tryserver.chromium.linux.json (right): https://chromiumcodereview.appspot.com/1324263003/diff/180001/testing/buildbot/tryserver.chromium.linux.json#newcode186 testing/buildbot/tryserver.chromium.linux.json:186: "test": "blimp_common_unit_tests" On 2015/10/01 00:23:01, Kevin M wrote: > ...
5 years, 2 months ago (2015-10-01 00:26:54 UTC) #29
Dirk Pranke
On 2015/10/01 00:26:54, nyquist wrote: > https://chromiumcodereview.appspot.com/1324263003/diff/180001/testing/buildbot/tryserver.chromium.linux.json > File testing/buildbot/tryserver.chromium.linux.json (right): > > https://chromiumcodereview.appspot.com/1324263003/diff/180001/testing/buildbot/tryserver.chromium.linux.json#newcode186 > ...
5 years, 2 months ago (2015-10-01 00:49:06 UTC) #30
Dirk Pranke
https://chromiumcodereview.appspot.com/1324263003/diff/200001/blimp/common/proto/BUILD.gn File blimp/common/proto/BUILD.gn (right): https://chromiumcodereview.appspot.com/1324263003/diff/200001/blimp/common/proto/BUILD.gn#newcode7 blimp/common/proto/BUILD.gn:7: static_library("proto") { my earlier question about why this isn't ...
5 years, 2 months ago (2015-10-01 00:50:48 UTC) #31
Kevin M
https://codereview.chromium.org/1324263003/diff/200001/blimp/common/proto/BUILD.gn File blimp/common/proto/BUILD.gn (right): https://codereview.chromium.org/1324263003/diff/200001/blimp/common/proto/BUILD.gn#newcode7 blimp/common/proto/BUILD.gn:7: static_library("proto") { On 2015/10/01 00:50:48, Dirk Pranke wrote: > ...
5 years, 2 months ago (2015-10-01 21:41:22 UTC) #32
nyquist
https://codereview.chromium.org/1324263003/diff/220001/blimp/BUILD.gn File blimp/BUILD.gn (right): https://codereview.chromium.org/1324263003/diff/220001/blimp/BUILD.gn#newcode27 blimp/BUILD.gn:27: "//blimp/common:blimp_common_unit_tests", Remind me why this is only for android ...
5 years, 2 months ago (2015-10-01 21:44:08 UTC) #33
Dirk Pranke
lgtm w/ nyquist's question addressed.
5 years, 2 months ago (2015-10-01 22:35:17 UTC) #34
Wez
Late Show review.... https://codereview.chromium.org/1324263003/diff/220001/blimp/common/net/message_dispatcher.cc File blimp/common/net/message_dispatcher.cc (right): https://codereview.chromium.org/1324263003/diff/220001/blimp/common/net/message_dispatcher.cc#newcode23 blimp/common/net/message_dispatcher.cc:23: DCHECK(thread_checker_.CalledOnValidThread()); nit: Doesn't thread-checker do this ...
5 years, 2 months ago (2015-10-02 01:10:30 UTC) #35
Wez
https://codereview.chromium.org/1324263003/diff/220001/blimp/common/net/message_dispatcher.cc File blimp/common/net/message_dispatcher.cc (right): https://codereview.chromium.org/1324263003/diff/220001/blimp/common/net/message_dispatcher.cc#newcode38 blimp/common/net/message_dispatcher.cc:38: auto handler_iter = feature_handler_map_.find(message.type()); Note that for the small ...
5 years, 2 months ago (2015-10-02 01:12:09 UTC) #36
Kevin M
https://codereview.chromium.org/1324263003/diff/220001/blimp/BUILD.gn File blimp/BUILD.gn (right): https://codereview.chromium.org/1324263003/diff/220001/blimp/BUILD.gn#newcode27 blimp/BUILD.gn:27: "//blimp/common:blimp_common_unit_tests", On 2015/10/01 21:44:08, nyquist wrote: > Remind me ...
5 years, 2 months ago (2015-10-02 22:02:00 UTC) #37
Wez
https://codereview.chromium.org/1324263003/diff/240001/blimp/common/net/message_dispatcher.h File blimp/common/net/message_dispatcher.h (right): https://codereview.chromium.org/1324263003/diff/240001/blimp/common/net/message_dispatcher.h#newcode19 blimp/common/net/message_dispatcher.h:19: class BLIMP_COMMON_EXPORT MessageDispatcher { Since this dispatches BlimpMessages, let's ...
5 years, 2 months ago (2015-10-07 00:20:15 UTC) #38
Kevin M
https://codereview.chromium.org/1324263003/diff/240001/blimp/common/net/message_dispatcher.h File blimp/common/net/message_dispatcher.h (right): https://codereview.chromium.org/1324263003/diff/240001/blimp/common/net/message_dispatcher.h#newcode19 blimp/common/net/message_dispatcher.h:19: class BLIMP_COMMON_EXPORT MessageDispatcher { On 2015/10/07 00:20:15, Wez wrote: ...
5 years, 2 months ago (2015-10-07 00:58:51 UTC) #39
Kevin M
https://codereview.chromium.org/1324263003/diff/240001/blimp/common/net/message_dispatcher.h File blimp/common/net/message_dispatcher.h (right): https://codereview.chromium.org/1324263003/diff/240001/blimp/common/net/message_dispatcher.h#newcode19 blimp/common/net/message_dispatcher.h:19: class BLIMP_COMMON_EXPORT MessageDispatcher { On 2015/10/07 00:20:15, Wez wrote: ...
5 years, 2 months ago (2015-10-07 00:58:52 UTC) #40
Wez
https://codereview.chromium.org/1324263003/diff/240001/blimp/common/net/message_dispatcher.h File blimp/common/net/message_dispatcher.h (right): https://codereview.chromium.org/1324263003/diff/240001/blimp/common/net/message_dispatcher.h#newcode24 blimp/common/net/message_dispatcher.h:24: virtual bool Validate(const BlimpMessage& message) const = 0; On ...
5 years, 2 months ago (2015-10-09 23:15:35 UTC) #41
Kevin M
https://codereview.chromium.org/1324263003/diff/240001/blimp/common/net/message_dispatcher.h File blimp/common/net/message_dispatcher.h (right): https://codereview.chromium.org/1324263003/diff/240001/blimp/common/net/message_dispatcher.h#newcode24 blimp/common/net/message_dispatcher.h:24: virtual bool Validate(const BlimpMessage& message) const = 0; On ...
5 years, 2 months ago (2015-10-10 00:42:34 UTC) #42
Wez
lgtm https://codereview.chromium.org/1324263003/diff/260001/blimp/net/blimp_message_dispatcher.h File blimp/net/blimp_message_dispatcher.h (right): https://codereview.chromium.org/1324263003/diff/260001/blimp/net/blimp_message_dispatcher.h#newcode44 blimp/net/blimp_message_dispatcher.h:44: base::ThreadChecker thread_checker_; On 2015/10/10 at 00:42:34, Kevin M ...
5 years, 2 months ago (2015-10-12 23:47:22 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1324263003/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1324263003/300001
5 years, 2 months ago (2015-10-13 00:43:36 UTC) #46
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_rel/builds/143696)
5 years, 2 months ago (2015-10-13 00:54:05 UTC) #48
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1324263003/340001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1324263003/340001
5 years, 2 months ago (2015-10-13 21:50:08 UTC) #51
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_rel/builds/144185)
5 years, 2 months ago (2015-10-13 22:12:24 UTC) #53
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1324263003/360001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1324263003/360001
5 years, 2 months ago (2015-10-13 22:23:45 UTC) #56
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/126059)
5 years, 2 months ago (2015-10-13 22:52:42 UTC) #58
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1324263003/400001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1324263003/400001
5 years, 2 months ago (2015-10-14 00:23:51 UTC) #61
commit-bot: I haz the power
Committed patchset #21 (id:400001)
5 years, 2 months ago (2015-10-14 00:37:02 UTC) #62
commit-bot: I haz the power
5 years, 2 months ago (2015-10-14 00:38:26 UTC) #63
Message was sent while issue was closed.
Patchset 21 (id:??) landed as
https://crrev.com/1b78a36c7edf36f97214600b83e715291146c01c
Cr-Commit-Position: refs/heads/master@{#353924}

Powered by Google App Engine
This is Rietveld 408576698