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

Issue 2632613002: Adding OrtcFactory, and changing UdpTransport to match current plan. (Closed)

Created:
3 years, 11 months ago by Taylor Brandstetter
Modified:
3 years, 11 months ago
Reviewers:
pthatcher1
CC:
webrtc-reviews_webrtc.org, the sun, tterriberry_mozilla.com
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Adding OrtcFactory, and changing UdpTransport to match current plan. The factory follows the same principles as PeerConnectionFactory; various modules can be passed into its constructor but default implementations are provided. Currently the only object the factory can create is a UdpTransport (need to start somewhere). UdpTransportChannel (renamed to UdpTransport) will now accept a socket passed into its constructor, relying on the factory to create the socket. This allows some simplifications to be made, such as getting rid of "State" since the only states are now "has destination set or doesn't". BUG=webrtc:7013 Review-Url: https://codereview.webrtc.org/2632613002 Cr-Commit-Position: refs/heads/master@{#16154} Committed: https://chromium.googlesource.com/external/webrtc/+/d1c0998730443e4901ec329ee816fd1f115b6223

Patch Set 1 #

Total comments: 1

Patch Set 2 : Fixing some log statements/comments. #

Patch Set 3 : . #

Patch Set 4 : Lint error #

Patch Set 5 : Splitting proxy changes from this CL #

Total comments: 12

Patch Set 6 : Responding to pthatcher's comments. #

Patch Set 7 : Adding OrtcFactoryInterface and factory method #

Total comments: 2

Patch Set 8 : Rebase and remove worker_thread from API #

Unified diffs Side-by-side diffs Delta from patch set Stats (+634 lines, -508 lines) Patch
M webrtc/api/BUILD.gn View 1 2 3 4 5 6 7 3 chunks +5 lines, -0 lines 0 comments Download
A webrtc/api/ortcfactory.h View 1 2 3 4 5 6 7 1 chunk +64 lines, -0 lines 0 comments Download
A webrtc/api/ortcfactory.cc View 1 2 3 4 5 6 7 1 chunk +119 lines, -0 lines 0 comments Download
A webrtc/api/ortcfactory_unittest.cc View 1 2 3 4 5 6 7 1 chunk +122 lines, -0 lines 0 comments Download
A webrtc/api/ortcfactoryinterface.h View 1 2 3 4 5 6 7 1 chunk +81 lines, -0 lines 0 comments Download
A webrtc/api/udptransportinterface.h View 1 2 3 4 5 6 1 chunk +57 lines, -0 lines 0 comments Download
M webrtc/p2p/BUILD.gn View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
A + webrtc/p2p/base/udptransport.h View 1 2 3 chunks +25 lines, -36 lines 0 comments Download
A webrtc/p2p/base/udptransport.cc View 1 2 3 1 chunk +104 lines, -0 lines 0 comments Download
A + webrtc/p2p/base/udptransport_unittest.cc View 1 2 6 chunks +54 lines, -44 lines 0 comments Download
M webrtc/p2p/base/udptransportchannel.h View 1 2 1 chunk +0 lines, -96 lines 0 comments Download
M webrtc/p2p/base/udptransportchannel.cc View 1 2 1 chunk +0 lines, -144 lines 0 comments Download
M webrtc/p2p/base/udptransportchannel_unittest.cc View 1 2 1 chunk +0 lines, -185 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 17 (9 generated)
Taylor Brandstetter
https://codereview.webrtc.org/2632613002/diff/1/webrtc/api/proxy.h File webrtc/api/proxy.h (right): https://codereview.webrtc.org/2632613002/diff/1/webrtc/api/proxy.h#newcode366 webrtc/api/proxy.h:366: #define BEGIN_NON_REFCOUNTED_PROXY_MAP(c) \ Before you say "wow these macros ...
3 years, 11 months ago (2017-01-13 07:52:29 UTC) #1
pthatcher1
https://codereview.webrtc.org/2632613002/diff/80001/webrtc/api/ortcfactory.cc File webrtc/api/ortcfactory.cc (right): https://codereview.webrtc.org/2632613002/diff/80001/webrtc/api/ortcfactory.cc#newcode36 webrtc/api/ortcfactory.cc:36: owns_network_thread_ = true; With the alternative approach, this is ...
3 years, 11 months ago (2017-01-17 20:04:36 UTC) #4
Taylor Brandstetter
https://codereview.webrtc.org/2632613002/diff/80001/webrtc/api/ortcfactory.cc File webrtc/api/ortcfactory.cc (right): https://codereview.webrtc.org/2632613002/diff/80001/webrtc/api/ortcfactory.cc#newcode97 webrtc/api/ortcfactory.cc:97: LOG(INFO) << "Local socket allocation failure."; On 2017/01/17 20:04:36, ...
3 years, 11 months ago (2017-01-18 02:31:38 UTC) #5
pthatcher1
lgtm, other than the incorrect comment. If anything just leave off the comment for now ...
3 years, 11 months ago (2017-01-18 02:42:46 UTC) #6
Taylor Brandstetter
https://codereview.webrtc.org/2632613002/diff/120001/webrtc/api/ortcfactoryinterface.h File webrtc/api/ortcfactoryinterface.h (right): https://codereview.webrtc.org/2632613002/diff/120001/webrtc/api/ortcfactoryinterface.h#newcode41 webrtc/api/ortcfactoryinterface.h:41: // If null, a new rtc::Thread is created. On ...
3 years, 11 months ago (2017-01-18 22:19:04 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2632613002/140001
3 years, 11 months ago (2017-01-18 22:21:40 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2632613002/140001
3 years, 11 months ago (2017-01-18 22:35:25 UTC) #14
commit-bot: I haz the power
3 years, 11 months ago (2017-01-18 23:16:41 UTC) #17
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/external/webrtc/+/d1c0998730443e4901ec329ee...

Powered by Google App Engine
This is Rietveld 408576698