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

Issue 2780063002: Pulled a significant portion of Socket implementation into BaseSocket in order to prepare for the s… (Closed)

Created:
3 years, 8 months ago by bkonyi
Modified:
3 years, 8 months ago
Reviewers:
zra, rmacnak
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Pulled a significant portion of Socket implementation into BaseSocket in order to prepare for the synchronous socket impementations which will also use these common methods. BUG= R=zra@google.com Committed: https://github.com/dart-lang/sdk/commit/04229201426063e98a752f379b400f922761ed1b

Patch Set 1 #

Total comments: 1

Patch Set 2 : Updated copyright date, fixed incorrect items in socket_common_macos.h #

Total comments: 3

Patch Set 3 : Rebased on top of Zach's recent changes #

Patch Set 4 : Minor change to socket_common_unsupported.cc #

Total comments: 11

Patch Set 5 : Readded socket_*.cc to keep Socket methods apart from the SocketBase methods #

Patch Set 6 : Pulled a significant portion of Socket implementation into SocketBase in order to prepare for the s… #

Total comments: 6

Patch Set 7 : Addressed comments, re-added socket_unsupported.cc #

Total comments: 5

Patch Set 8 : Changed TARGET_OS_* to HOST_OS_*, removed extra include #

Total comments: 9

Patch Set 9 : Final patch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+813 lines, -3601 lines) Patch
M runtime/bin/file_system_watcher_linux.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M runtime/bin/io_impl_sources.gypi View 1 2 3 4 5 6 1 chunk +13 lines, -5 lines 0 comments Download
M runtime/bin/io_natives.cc View 1 2 3 4 1 chunk +10 lines, -10 lines 0 comments Download
M runtime/bin/socket.h View 1 2 3 4 4 chunks +4 lines, -289 lines 0 comments Download
M runtime/bin/socket.cc View 1 2 3 4 26 chunks +28 lines, -59 lines 0 comments Download
D runtime/bin/socket_android.h View 1 chunk +0 lines, -16 lines 0 comments Download
D runtime/bin/socket_android.cc View 1 2 3 4 5 6 7 8 6 chunks +3 lines, -364 lines 0 comments Download
A + runtime/bin/socket_base.h View 1 2 3 4 5 6 7 5 chunks +13 lines, -197 lines 0 comments Download
A runtime/bin/socket_base.cc View 1 2 3 4 5 6 7 1 chunk +62 lines, -0 lines 0 comments Download
A + runtime/bin/socket_base_android.h View 1 2 3 4 1 chunk +5 lines, -5 lines 0 comments Download
A + runtime/bin/socket_base_android.cc View 1 2 3 4 5 6 7 8 25 chunks +57 lines, -251 lines 0 comments Download
A + runtime/bin/socket_base_fuchsia.h View 1 2 3 4 1 chunk +5 lines, -5 lines 0 comments Download
A runtime/bin/socket_base_fuchsia.cc View 1 2 3 4 5 6 7 8 1 chunk +370 lines, -0 lines 0 comments Download
A + runtime/bin/socket_base_linux.h View 1 2 3 4 1 chunk +5 lines, -5 lines 0 comments Download
A + runtime/bin/socket_base_linux.cc View 1 2 3 4 5 6 7 8 26 chunks +57 lines, -227 lines 0 comments Download
A + runtime/bin/socket_base_macos.h View 1 2 3 4 1 chunk +5 lines, -5 lines 0 comments Download
A + runtime/bin/socket_base_macos.cc View 1 2 3 4 5 6 7 8 25 chunks +57 lines, -241 lines 0 comments Download
A runtime/bin/socket_base_unsupported.cc View 1 2 3 4 5 6 1 chunk +38 lines, -0 lines 0 comments Download
A + runtime/bin/socket_base_win.h View 1 2 3 4 2 chunks +5 lines, -5 lines 0 comments Download
A + runtime/bin/socket_base_win.cc View 1 2 3 4 5 6 7 8 22 chunks +57 lines, -303 lines 0 comments Download
D runtime/bin/socket_fuchsia.h View 1 chunk +0 lines, -16 lines 0 comments Download
D runtime/bin/socket_fuchsia.cc View 1 2 3 4 5 6 7 8 6 chunks +5 lines, -306 lines 0 comments Download
D runtime/bin/socket_linux.h View 1 chunk +0 lines, -16 lines 0 comments Download
D runtime/bin/socket_linux.cc View 1 2 3 4 5 6 7 8 7 chunks +5 lines, -406 lines 0 comments Download
D runtime/bin/socket_macos.h View 1 chunk +0 lines, -16 lines 0 comments Download
D runtime/bin/socket_macos.cc View 1 2 3 4 5 6 7 8 6 chunks +3 lines, -420 lines 0 comments Download
M runtime/bin/socket_patch.dart View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
D runtime/bin/socket_unsupported.cc View 1 2 3 4 5 6 2 chunks +0 lines, -17 lines 0 comments Download
D runtime/bin/socket_win.h View 1 chunk +0 lines, -17 lines 0 comments Download
D runtime/bin/socket_win.cc View 1 2 3 4 5 6 7 8 8 chunks +4 lines, -398 lines 0 comments Download

Messages

Total messages: 18 (3 generated)
bkonyi
https://codereview.chromium.org/2780063002/diff/1/runtime/bin/socket_common_macos.h File runtime/bin/socket_common_macos.h (right): https://codereview.chromium.org/2780063002/diff/1/runtime/bin/socket_common_macos.h#newcode1 runtime/bin/socket_common_macos.h:1: // Copyright (c) 2012, the Dart project authors. Please ...
3 years, 8 months ago (2017-03-28 23:18:35 UTC) #2
zra
I landed changes to sockets this morning, so you'll need to rebase and merge those ...
3 years, 8 months ago (2017-03-29 02:37:26 UTC) #3
bkonyi
https://codereview.chromium.org/2780063002/diff/20001/runtime/bin/socket.h File runtime/bin/socket.h (right): https://codereview.chromium.org/2780063002/diff/20001/runtime/bin/socket.h#newcode22 runtime/bin/socket.h:22: class Socket : public BaseSocket { On 2017/03/29 02:37:25, ...
3 years, 8 months ago (2017-03-29 04:09:28 UTC) #4
bkonyi
https://codereview.chromium.org/2780063002/diff/20001/runtime/bin/socket.h File runtime/bin/socket.h (right): https://codereview.chromium.org/2780063002/diff/20001/runtime/bin/socket.h#newcode22 runtime/bin/socket.h:22: class Socket : public BaseSocket { On 2017/03/29 02:37:25, ...
3 years, 8 months ago (2017-03-29 19:11:40 UTC) #5
zra
High level comments: 1. BaseSocket -> SocketBase, socket_common -> socket_base. 2. Keep the socket_*.cc files ...
3 years, 8 months ago (2017-03-30 19:59:45 UTC) #6
bkonyi
Please take a look when you have a chance. Also, response for comment 4: I'll ...
3 years, 8 months ago (2017-04-01 23:41:18 UTC) #7
zra
Looks like the socket_*.cc files still need to be added back to the CL
3 years, 8 months ago (2017-04-02 15:51:16 UTC) #8
bkonyi
On 2017/04/02 15:51:16, zra wrote: > Looks like the socket_*.cc files still need to be ...
3 years, 8 months ago (2017-04-02 17:43:33 UTC) #9
zra
Huh, weird. https://codereview.chromium.org/2780063002/diff/100001/runtime/bin/io_impl_sources.gypi File runtime/bin/io_impl_sources.gypi (right): https://codereview.chromium.org/2780063002/diff/100001/runtime/bin/io_impl_sources.gypi#newcode71 runtime/bin/io_impl_sources.gypi:71: 'socket_base.cc', Alphabetize. https://codereview.chromium.org/2780063002/diff/100001/runtime/bin/socket_android.cc File runtime/bin/socket_android.cc (right): https://codereview.chromium.org/2780063002/diff/100001/runtime/bin/socket_android.cc#newcode11 ...
3 years, 8 months ago (2017-04-02 21:39:27 UTC) #10
bkonyi
Addressed your comments. PTAL. https://codereview.chromium.org/2780063002/diff/100001/runtime/bin/io_impl_sources.gypi File runtime/bin/io_impl_sources.gypi (right): https://codereview.chromium.org/2780063002/diff/100001/runtime/bin/io_impl_sources.gypi#newcode71 runtime/bin/io_impl_sources.gypi:71: 'socket_base.cc', On 2017/04/02 21:39:27, zra ...
3 years, 8 months ago (2017-04-02 22:09:29 UTC) #11
zra
+rmacnak for question about HOST_OS_ vs. TARGET_OS_. https://codereview.chromium.org/2780063002/diff/110001/runtime/bin/socket_base.cc File runtime/bin/socket_base.cc (right): https://codereview.chromium.org/2780063002/diff/110001/runtime/bin/socket_base.cc#newcode8 runtime/bin/socket_base.cc:8: #include "bin/socket.h" ...
3 years, 8 months ago (2017-04-03 03:40:23 UTC) #13
rmacnak
https://codereview.chromium.org/2780063002/diff/110001/runtime/bin/socket_base.h File runtime/bin/socket_base.h (right): https://codereview.chromium.org/2780063002/diff/110001/runtime/bin/socket_base.h#newcode14 runtime/bin/socket_base.h:14: #if defined(TARGET_OS_ANDROID) On 2017/04/03 03:40:23, zra wrote: > I ...
3 years, 8 months ago (2017-04-03 16:03:56 UTC) #14
bkonyi
Addressed comments. PTAL. https://codereview.chromium.org/2780063002/diff/110001/runtime/bin/socket_base.cc File runtime/bin/socket_base.cc (right): https://codereview.chromium.org/2780063002/diff/110001/runtime/bin/socket_base.cc#newcode8 runtime/bin/socket_base.cc:8: #include "bin/socket.h" On 2017/04/03 03:40:23, zra ...
3 years, 8 months ago (2017-04-03 16:09:57 UTC) #15
zra
lgtm with more include order nits. https://codereview.chromium.org/2780063002/diff/130001/runtime/bin/socket_base_android.cc File runtime/bin/socket_base_android.cc (right): https://codereview.chromium.org/2780063002/diff/130001/runtime/bin/socket_base_android.cc#newcode10 runtime/bin/socket_base_android.cc:10: #include "bin/socket.h" If ...
3 years, 8 months ago (2017-04-03 20:30:35 UTC) #16
bkonyi
3 years, 8 months ago (2017-04-04 00:05:21 UTC) #18
Message was sent while issue was closed.
Committed patchset #9 (id:150001) manually as
04229201426063e98a752f379b400f922761ed1b (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698