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

Issue 571333002: Add serialization support to the JS DataSender and DataReceiver. (Closed)

Created:
6 years, 3 months ago by Sam McNally
Modified:
6 years, 2 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, chromium-apps-reviews_chromium.org, darin (slow to review), ben+mojo_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@stash-service
Project:
chromium
Visibility:
Public.

Description

Add serialization support to the JS DataSender and DataReceiver. To support persistent serial connections on mojo, serial.Connection and its dependencies must be serializable to mojo structs so it can be stashed. This adds serialization support to the two serial.Connection dependencies: DataSender and DataReceiver. BUG=389016 Committed: https://crrev.com/10fd1075c2bbe78be3c0603ff2d9f3fa69646454 Cr-Commit-Position: refs/heads/master@{#296658}

Patch Set 1 : #

Total comments: 6

Patch Set 2 : address comments #

Total comments: 46

Patch Set 3 : address comments #

Total comments: 3

Patch Set 4 : #

Total comments: 2

Patch Set 5 : clean up jsdoc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+750 lines, -307 lines) Patch
M device/serial/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
A device/serial/data_stream_serialization.mojom View 1 2 1 chunk +53 lines, -0 lines 0 comments Download
M device/serial/serial.gyp View 1 2 chunks +4 lines, -1 line 0 comments Download
M extensions/renderer/api/serial/data_receiver_unittest.cc View 1 2 2 chunks +33 lines, -0 lines 0 comments Download
M extensions/renderer/api/serial/data_sender_unittest.cc View 1 2 2 chunks +30 lines, -0 lines 0 comments Download
M extensions/renderer/api/serial/serial_api_unittest.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M extensions/renderer/resources/async_waiter.js View 1 2 3 4 3 chunks +4 lines, -4 lines 0 comments Download
M extensions/renderer/resources/data_receiver.js View 1 2 3 4 11 chunks +121 lines, -49 lines 0 comments Download
M extensions/renderer/resources/data_sender.js View 1 2 3 4 15 chunks +139 lines, -59 lines 0 comments Download
M extensions/renderer/resources/extensions_renderer_resources.grd View 1 1 chunk +1 line, -0 lines 0 comments Download
M extensions/test/data/data_receiver_unittest.js View 1 2 1 chunk +146 lines, -51 lines 0 comments Download
M extensions/test/data/data_sender_unittest.js View 1 2 2 chunks +216 lines, -143 lines 0 comments Download

Messages

Total messages: 17 (5 generated)
Sam McNally
6 years, 3 months ago (2014-09-17 00:39:30 UTC) #3
raymes
some initial thoughts :) https://codereview.chromium.org/571333002/diff/20001/device/serial/data_stream.mojom File device/serial/data_stream.mojom (right): https://codereview.chromium.org/571333002/diff/20001/device/serial/data_stream.mojom#newcode46 device/serial/data_stream.mojom:46: struct SerializedDataSender { As noted ...
6 years, 3 months ago (2014-09-17 02:05:04 UTC) #4
Sam McNally
https://codereview.chromium.org/571333002/diff/20001/device/serial/data_stream.mojom File device/serial/data_stream.mojom (right): https://codereview.chromium.org/571333002/diff/20001/device/serial/data_stream.mojom#newcode46 device/serial/data_stream.mojom:46: struct SerializedDataSender { On 2014/09/17 02:05:04, raymes wrote: > ...
6 years, 3 months ago (2014-09-17 08:07:14 UTC) #5
raymes
https://codereview.chromium.org/571333002/diff/40001/device/serial/data_stream_serialization.mojom File device/serial/data_stream_serialization.mojom (right): https://codereview.chromium.org/571333002/diff/40001/device/serial/data_stream_serialization.mojom#newcode9 device/serial/data_stream_serialization.mojom:9: // A serialized form of a JS DataSender. does ...
6 years, 3 months ago (2014-09-18 03:16:08 UTC) #6
Sam McNally
https://codereview.chromium.org/571333002/diff/40001/device/serial/data_stream_serialization.mojom File device/serial/data_stream_serialization.mojom (right): https://codereview.chromium.org/571333002/diff/40001/device/serial/data_stream_serialization.mojom#newcode9 device/serial/data_stream_serialization.mojom:9: // A serialized form of a JS DataSender. On ...
6 years, 3 months ago (2014-09-19 04:58:48 UTC) #8
raymes
lgtm with nit https://codereview.chromium.org/571333002/diff/80001/extensions/renderer/resources/data_receiver.js File extensions/renderer/resources/data_receiver.js (right): https://codereview.chromium.org/571333002/diff/80001/extensions/renderer/resources/data_receiver.js#newcode144 extensions/renderer/resources/data_receiver.js:144: source, dataPipe, fatalErrorValue, bytesReceived, pendingError, paused) ...
6 years, 3 months ago (2014-09-23 03:20:57 UTC) #9
Sam McNally
+rockot https://codereview.chromium.org/571333002/diff/80001/extensions/renderer/resources/data_receiver.js File extensions/renderer/resources/data_receiver.js (right): https://codereview.chromium.org/571333002/diff/80001/extensions/renderer/resources/data_receiver.js#newcode144 extensions/renderer/resources/data_receiver.js:144: source, dataPipe, fatalErrorValue, bytesReceived, pendingError, paused) { On ...
6 years, 3 months ago (2014-09-23 03:47:24 UTC) #11
Ken Rockot(use gerrit already)
lgtm but please take another pass over the jsdoc and make sure you're expressing correct ...
6 years, 3 months ago (2014-09-24 16:08:02 UTC) #12
Sam McNally
On 2014/09/24 16:08:02, Ken Rockot (slow this week) wrote: > lgtm but please take another ...
6 years, 2 months ago (2014-09-25 05:01:40 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/571333002/120001
6 years, 2 months ago (2014-09-25 05:03:37 UTC) #15
commit-bot: I haz the power
Committed patchset #5 (id:120001) as e9e907150c387b80115f6d31204cf45171986bf0
6 years, 2 months ago (2014-09-25 05:48:56 UTC) #16
commit-bot: I haz the power
6 years, 2 months ago (2014-09-25 05:49:55 UTC) #17
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/10fd1075c2bbe78be3c0603ff2d9f3fa69646454
Cr-Commit-Position: refs/heads/master@{#296658}

Powered by Google App Engine
This is Rietveld 408576698