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

Issue 634713002: Implement parts of the Mojo TCP interfaces. (Closed)

Created:
6 years, 2 months ago by brettw
Modified:
6 years, 2 months ago
Reviewers:
yzshen1, viettrungluu
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Implement parts of the Mojo TCP interfaces. Does some cleanup on the interfaces themselves and implements most of the plumbing except actually connecting, reading, and writing data to a connected socket. That will be done in a followup. Renames TCPClientSocket to TCPConnectedSocket for clarity. Implements a simple TCP server for testing and demo purposes. Adds net address type convertrs from an un-checked-in patch by Yuzhu: https://codereview.chromium.org/596383002/ R=yzshen@chromium.org Committed: https://crrev.com/b9f57823fd24753ed51e395486db293c5da5d817 Cr-Commit-Position: refs/heads/master@{#298931}

Patch Set 1 #

Patch Set 2 : #

Total comments: 15

Patch Set 3 : #

Total comments: 3

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : fixes #

Patch Set 7 : missing file in gyp #

Unified diffs Side-by-side diffs Delta from patch set Stats (+607 lines, -72 lines) Patch
M mojo/examples/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
A + mojo/examples/http_server/BUILD.gn View 1 chunk +7 lines, -7 lines 0 comments Download
A mojo/examples/http_server/http_server.cc View 1 2 1 chunk +74 lines, -0 lines 0 comments Download
M mojo/mojo_examples.gypi View 1 2 3 4 5 1 chunk +16 lines, -0 lines 0 comments Download
M mojo/mojo_services.gypi View 1 2 3 4 5 6 1 chunk +10 lines, -0 lines 0 comments Download
M mojo/services/network/BUILD.gn View 1 chunk +10 lines, -0 lines 0 comments Download
A mojo/services/network/net_adapters.h View 1 chunk +16 lines, -0 lines 0 comments Download
A mojo/services/network/net_adapters.cc View 1 2 3 1 chunk +19 lines, -0 lines 0 comments Download
A mojo/services/network/net_address_type_converters.h View 1 chunk +26 lines, -0 lines 0 comments Download
A mojo/services/network/net_address_type_converters.cc View 1 chunk +64 lines, -0 lines 0 comments Download
M mojo/services/network/network_service_impl.h View 1 chunk +2 lines, -2 lines 0 comments Download
M mojo/services/network/network_service_impl.cc View 2 chunks +39 lines, -6 lines 0 comments Download
A mojo/services/network/tcp_bound_socket_impl.h View 1 chunk +43 lines, -0 lines 0 comments Download
A mojo/services/network/tcp_bound_socket_impl.cc View 1 2 1 chunk +82 lines, -0 lines 0 comments Download
A mojo/services/network/tcp_connected_socket_impl.h View 1 chunk +30 lines, -0 lines 0 comments Download
A mojo/services/network/tcp_connected_socket_impl.cc View 1 chunk +21 lines, -0 lines 0 comments Download
A mojo/services/network/tcp_server_socket_impl.h View 1 2 1 chunk +51 lines, -0 lines 0 comments Download
A mojo/services/network/tcp_server_socket_impl.cc View 1 2 1 chunk +69 lines, -0 lines 0 comments Download
M mojo/services/network/url_loader_impl.cc View 2 chunks +1 line, -7 lines 0 comments Download
M mojo/services/public/interfaces/network/BUILD.gn View 1 chunk +1 line, -1 line 0 comments Download
M mojo/services/public/interfaces/network/network_service.mojom View 3 chunks +7 lines, -7 lines 0 comments Download
M mojo/services/public/interfaces/network/tcp_bound_socket.mojom View 1 2 3 chunks +7 lines, -5 lines 0 comments Download
D mojo/services/public/interfaces/network/tcp_client_socket.mojom View 1 chunk +0 lines, -16 lines 0 comments Download
A + mojo/services/public/interfaces/network/tcp_connected_socket.mojom View 1 1 chunk +3 lines, -3 lines 0 comments Download
M mojo/services/public/interfaces/network/tcp_server_socket.mojom View 1 2 1 chunk +7 lines, -17 lines 0 comments Download
M mojo/services/public/mojo_services_public.gyp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 18 (7 generated)
yzshen1
https://codereview.chromium.org/634713002/diff/20001/mojo/examples/http_server/http_server.cc File mojo/examples/http_server/http_server.cc (right): https://codereview.chromium.org/634713002/diff/20001/mojo/examples/http_server/http_server.cc#newcode12 mojo/examples/http_server/http_server.cc:12: #include "mojo/public/cpp/utility/run_loop.h" nit: this is not needed. https://codereview.chromium.org/634713002/diff/20001/mojo/examples/http_server/http_server.cc#newcode51 mojo/examples/http_server/http_server.cc:51: ...
6 years, 2 months ago (2014-10-07 20:14:35 UTC) #2
brettw
Should have gotten the rest of the comments, thanks! https://codereview.chromium.org/634713002/diff/40001/mojo/services/network/tcp_server_socket_impl.cc File mojo/services/network/tcp_server_socket_impl.cc (right): https://codereview.chromium.org/634713002/diff/40001/mojo/services/network/tcp_server_socket_impl.cc#newcode56 mojo/services/network/tcp_server_socket_impl.cc:56: ...
6 years, 2 months ago (2014-10-07 23:12:16 UTC) #3
yzshen1
LGTM https://codereview.chromium.org/634713002/diff/40001/mojo/services/network/net_adapters.cc File mojo/services/network/net_adapters.cc (right): https://codereview.chromium.org/634713002/diff/40001/mojo/services/network/net_adapters.cc#newcode14 mojo/services/network/net_adapters.cc:14: if (error_code < 0) nit: <= 0 https://codereview.chromium.org/634713002/diff/40001/mojo/services/network/tcp_server_socket_impl.cc ...
6 years, 2 months ago (2014-10-07 23:51:36 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/634713002/60001
6 years, 2 months ago (2014-10-07 23:58:18 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_arm64_dbg_recipe/builds/10916) android_dbg_tests_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg_tests_recipe/builds/16262) mac_chromium_compile_dbg ...
6 years, 2 months ago (2014-10-08 00:15:59 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/634713002/100001
6 years, 2 months ago (2014-10-08 18:05:26 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg/builds/23096) mac_chromium_rel_swarming on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_swarming/builds/21762) win8_chromium_rel ...
6 years, 2 months ago (2014-10-08 19:02:46 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/634713002/120001
6 years, 2 months ago (2014-10-08 19:12:12 UTC) #14
commit-bot: I haz the power
Exceeded time limit waiting for builds to trigger.
6 years, 2 months ago (2014-10-09 01:21:18 UTC) #16
brettw
Committed patchset #7 (id:120001) manually as b9f57823fd24753ed51e395486db293c5da5d817 (presubmit successful).
6 years, 2 months ago (2014-10-09 17:50:48 UTC) #17
commit-bot: I haz the power
6 years, 2 months ago (2014-10-09 17:50:48 UTC) #18
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/b9f57823fd24753ed51e395486db293c5da5d817
Cr-Commit-Position: refs/heads/master@{#298931}

Powered by Google App Engine
This is Rietveld 408576698