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

Issue 9455070: Remove the dependency to ws2_32.dll from talk_base::ThreadManager and talk_base::Thread. (Closed)

Created:
8 years, 10 months ago by Ronghua Wu (Left Chromium)
Modified:
8 years, 9 months ago
CC:
chromium-reviews, DaleCurtis, Mallinath (Gone from Chromium)
Base URL:
https://src.chromium.org/svn/trunk/src/
Visibility:
Public.

Description

* Remove the dependency to ws2_32.dll from talk_base::ThreadManager and talk_base::Thread. * Remove the denendency to the htons(), htonl(), ntohs(), ntohl(). * Implement inet_pton_v4 without using ws2. * Update the remoting_unittests. BUG=115501 TEST=Build and run webrtc test on Windows. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=124434

Patch Set 1 : #

Total comments: 4

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 11

Patch Set 5 : #

Total comments: 14

Patch Set 6 : #

Total comments: 32

Patch Set 7 : #

Total comments: 22

Patch Set 8 : #

Total comments: 6

Patch Set 9 : #

Total comments: 20

Patch Set 10 : #

Total comments: 4

Patch Set 11 : #

Patch Set 12 : #

Patch Set 13 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+160 lines, -50 lines) Patch
M jingle/glue/thread_wrapper.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M jingle/glue/thread_wrapper.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -1 line 0 comments Download
M remoting/protocol/jingle_session_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 8 chunks +11 lines, -9 lines 0 comments Download
M third_party/libjingle/libjingle.gyp View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +12 lines, -7 lines 0 comments Download
M third_party/libjingle/overrides/talk/base/byteorder.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M third_party/libjingle/overrides/talk/base/messagequeue.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +7 lines, -2 lines 0 comments Download
M third_party/libjingle/overrides/talk/base/messagequeue.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +61 lines, -12 lines 0 comments Download
M third_party/libjingle/overrides/talk/base/thread.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -1 line 0 comments Download
M third_party/libjingle/overrides/talk/base/thread.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +15 lines, -8 lines 0 comments Download
M third_party/libjingle/overrides/talk/base/win32.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +9 lines, -0 lines 0 comments Download
M third_party/libjingle/overrides/talk/base/win32.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +37 lines, -9 lines 0 comments Download

Messages

Total messages: 32 (0 generated)
Ronghua Wu (Left Chromium)
Hi Sergey, I'm still testing this, but what do you think about this CL as ...
8 years, 10 months ago (2012-02-24 23:39:16 UTC) #1
Sergey Ulanov
Haven't looked at it yet. Some high-level comments for now: 1. It may be better ...
8 years, 10 months ago (2012-02-25 00:34:40 UTC) #2
Ronghua Wu (Left Chromium)
I don't have a git ws in hand. Is there a way to do it ...
8 years, 10 months ago (2012-02-25 01:00:11 UTC) #3
Sergey Ulanov
On 2012/02/25 01:00:11, Ronghua Wu wrote: > I don't have a git ws in hand. ...
8 years, 10 months ago (2012-02-25 02:05:29 UTC) #4
Ronghua Wu (Left Chromium)
On Fri, Feb 24, 2012 at 6:05 PM, <sergeyu@chromium.org> wrote: > On 2012/02/25 01:00:11, Ronghua ...
8 years, 10 months ago (2012-02-25 02:42:16 UTC) #5
Ronghua Wu (Left Chromium)
Updated cl to remove dependency from talk_base::ThreadManager and talk_base::Thread. However, start seeing more dependencies from ...
8 years, 10 months ago (2012-02-25 07:13:33 UTC) #6
tommi (sloooow) - chröme
Please measure the impact on the binary size also well (release). Sent from my phone. ...
8 years, 10 months ago (2012-02-25 07:36:26 UTC) #7
Mallinath (Gone from Chromium)
On 2012/02/25 07:36:26, tommi wrote: > Please measure the impact on the binary size also ...
8 years, 10 months ago (2012-02-25 07:44:41 UTC) #8
Ronghua Wu (Left Chromium)
I'm a bit concern now if we can fix everything quickly in this cl. Previously ...
8 years, 10 months ago (2012-02-25 08:03:01 UTC) #9
Ronghua Wu (Left Chromium)
Merged with the latest so now you can see the diff.
8 years, 9 months ago (2012-02-27 19:33:31 UTC) #10
Ronghua Wu (Left Chromium)
Removed dependencies to the ntohl, ntohs, htonl, htons and inet_addr. http://codereview.chromium.org/9455070/diff/19001/third_party/libjingle/overrides/talk/base/byteorder.h File third_party/libjingle/overrides/talk/base/byteorder.h (right): http://codereview.chromium.org/9455070/diff/19001/third_party/libjingle/overrides/talk/base/byteorder.h#newcode36 ...
8 years, 9 months ago (2012-02-28 00:10:33 UTC) #11
Ronghua Wu (Left Chromium)
Added libsrtp changes. We should now have removed all the dependencies to ws2_32.dll in order ...
8 years, 9 months ago (2012-02-28 01:24:36 UTC) #12
Sergey Ulanov
http://codereview.chromium.org/9455070/diff/19001/third_party/libjingle/overrides/talk/base/win32.cc File third_party/libjingle/overrides/talk/base/win32.cc (right): http://codereview.chromium.org/9455070/diff/19001/third_party/libjingle/overrides/talk/base/win32.cc#newcode183 third_party/libjingle/overrides/talk/base/win32.cc:183: unsigned char as_array[4]; unsigned char* as_array = dst? Maybe ...
8 years, 9 months ago (2012-02-28 07:14:32 UTC) #13
Ronghua Wu (Left Chromium)
http://codereview.chromium.org/9455070/diff/19001/third_party/libjingle/overrides/talk/base/win32.cc File third_party/libjingle/overrides/talk/base/win32.cc (right): http://codereview.chromium.org/9455070/diff/19001/third_party/libjingle/overrides/talk/base/win32.cc#newcode183 third_party/libjingle/overrides/talk/base/win32.cc:183: unsigned char as_array[4]; On 2012/02/28 07:14:32, sergeyu wrote: > ...
8 years, 9 months ago (2012-02-28 17:50:46 UTC) #14
Ronghua Wu (Left Chromium)
Merged with the latest, you should see the diff now.
8 years, 9 months ago (2012-02-28 21:20:51 UTC) #15
tommi (sloooow) - chröme
drive-by. good work Ronghua. http://codereview.chromium.org/9455070/diff/24001/third_party/libjingle/overrides/talk/base/byteorder.h File third_party/libjingle/overrides/talk/base/byteorder.h (right): http://codereview.chromium.org/9455070/diff/24001/third_party/libjingle/overrides/talk/base/byteorder.h#newcode3 third_party/libjingle/overrides/talk/base/byteorder.h:3: * Copyright 2004--2005, Google Inc. ...
8 years, 9 months ago (2012-02-28 21:32:17 UTC) #16
Sergey Ulanov
Looks mostly good, but I have more comments http://codereview.chromium.org/9455070/diff/16011/third_party/libjingle/overrides/talk/base/messagequeue.cc File third_party/libjingle/overrides/talk/base/messagequeue.cc (right): http://codereview.chromium.org/9455070/diff/16011/third_party/libjingle/overrides/talk/base/messagequeue.cc#newcode152 third_party/libjingle/overrides/talk/base/messagequeue.cc:152: ss_ ...
8 years, 9 months ago (2012-02-28 21:54:01 UTC) #17
Ronghua Wu (Left Chromium)
Another look please. http://codereview.chromium.org/9455070/diff/24001/third_party/libjingle/overrides/talk/base/byteorder.h File third_party/libjingle/overrides/talk/base/byteorder.h (right): http://codereview.chromium.org/9455070/diff/24001/third_party/libjingle/overrides/talk/base/byteorder.h#newcode3 third_party/libjingle/overrides/talk/base/byteorder.h:3: * Copyright 2004--2005, Google Inc. On ...
8 years, 9 months ago (2012-02-28 23:16:56 UTC) #18
Sergey Ulanov
http://codereview.chromium.org/9455070/diff/38002/third_party/libjingle/overrides/talk/base/messagequeue.cc File third_party/libjingle/overrides/talk/base/messagequeue.cc (right): http://codereview.chromium.org/9455070/diff/38002/third_party/libjingle/overrides/talk/base/messagequeue.cc#newcode147 third_party/libjingle/overrides/talk/base/messagequeue.cc:147: default_ss_.reset(new PhysicalSocketServer()); please rename default_ss_ to owned_ss_ and set ...
8 years, 9 months ago (2012-02-29 00:09:51 UTC) #19
Ronghua Wu (Left Chromium)
http://codereview.chromium.org/9455070/diff/38002/third_party/libjingle/overrides/talk/base/messagequeue.cc File third_party/libjingle/overrides/talk/base/messagequeue.cc (right): http://codereview.chromium.org/9455070/diff/38002/third_party/libjingle/overrides/talk/base/messagequeue.cc#newcode147 third_party/libjingle/overrides/talk/base/messagequeue.cc:147: default_ss_.reset(new PhysicalSocketServer()); On 2012/02/29 00:09:52, sergeyu wrote: > please ...
8 years, 9 months ago (2012-02-29 04:31:22 UTC) #20
Sergey Ulanov
have some style nits. LGTM when they are addressed. http://codereview.chromium.org/9455070/diff/40001/third_party/libjingle/overrides/talk/base/messagequeue.cc File third_party/libjingle/overrides/talk/base/messagequeue.cc (right): http://codereview.chromium.org/9455070/diff/40001/third_party/libjingle/overrides/talk/base/messagequeue.cc#newcode72 third_party/libjingle/overrides/talk/base/messagequeue.cc:72: ...
8 years, 9 months ago (2012-02-29 05:30:31 UTC) #21
tommi (sloooow) - chröme
http://codereview.chromium.org/9455070/diff/24001/third_party/libjingle/overrides/talk/base/byteorder.h File third_party/libjingle/overrides/talk/base/byteorder.h (right): http://codereview.chromium.org/9455070/diff/24001/third_party/libjingle/overrides/talk/base/byteorder.h#newcode3 third_party/libjingle/overrides/talk/base/byteorder.h:3: * Copyright 2004--2005, Google Inc. On 2012/02/28 23:16:57, Ronghua ...
8 years, 9 months ago (2012-02-29 09:54:22 UTC) #22
tommi (sloooow) - chröme
lgtm.
8 years, 9 months ago (2012-02-29 21:09:21 UTC) #23
Ronghua Wu (Left Chromium)
http://codereview.chromium.org/9455070/diff/24001/third_party/libjingle/overrides/talk/base/messagequeue.cc File third_party/libjingle/overrides/talk/base/messagequeue.cc (right): http://codereview.chromium.org/9455070/diff/24001/third_party/libjingle/overrides/talk/base/messagequeue.cc#newcode63 third_party/libjingle/overrides/talk/base/messagequeue.cc:63: return NULL; On 2012/02/29 09:54:22, tommi wrote: > On ...
8 years, 9 months ago (2012-03-01 00:50:13 UTC) #24
Sergey Ulanov
just two more nits. LGTM otherwise. http://codereview.chromium.org/9455070/diff/47004/third_party/libjingle/overrides/talk/base/win32.cc File third_party/libjingle/overrides/talk/base/win32.cc (right): http://codereview.chromium.org/9455070/diff/47004/third_party/libjingle/overrides/talk/base/win32.cc#newcode187 third_party/libjingle/overrides/talk/base/win32.cc:187: return 0; nit: ...
8 years, 9 months ago (2012-03-01 01:18:11 UTC) #25
Ronghua Wu (Left Chromium)
Thanks! http://codereview.chromium.org/9455070/diff/47004/third_party/libjingle/overrides/talk/base/win32.cc File third_party/libjingle/overrides/talk/base/win32.cc (right): http://codereview.chromium.org/9455070/diff/47004/third_party/libjingle/overrides/talk/base/win32.cc#newcode187 third_party/libjingle/overrides/talk/base/win32.cc:187: return 0; On 2012/03/01 01:18:11, sergeyu wrote: > ...
8 years, 9 months ago (2012-03-01 01:21:56 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ronghuawu@chromium.org/9455070/48020
8 years, 9 months ago (2012-03-01 01:24:08 UTC) #27
commit-bot: I haz the power
Try job failure for 9455070-48020 (retry) on win_rel for steps "remoting_unittests, ui_tests". It's a second ...
8 years, 9 months ago (2012-03-01 04:58:20 UTC) #28
Ronghua Wu (Left Chromium)
Fixes for the remoting_unittests.
8 years, 9 months ago (2012-03-01 05:59:55 UTC) #29
Ronghua Wu (Left Chromium)
Changed jingle/glue/thread_wrapper.h to include from overrides.
8 years, 9 months ago (2012-03-01 07:26:48 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ronghuawu@chromium.org/9455070/60005
8 years, 9 months ago (2012-03-01 17:02:03 UTC) #31
commit-bot: I haz the power
8 years, 9 months ago (2012-03-01 18:35:10 UTC) #32
Change committed as 124434

Powered by Google App Engine
This is Rietveld 408576698