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

Issue 2564683002: Adding error enum to be used by PeerConnectionInterface methods. (Closed)

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

Description

Adding error enum to be used by PeerConnectionInterface methods. The enum is at about the same level of detail as DOMExceptions, and I looked through the spec making sure that chromium will be able to perform the DOMException mapping for each one. The new enum is called RtcError and is outside the PeerConnectionInterface scope, because we may want to use this for things not associated with a PeerConnection in the future. This CL doesn't yet use the error enum anywhere; that will probably happen in follow-up CLs for the individual methods. BUG=webrtc:6855 Committed: https://crrev.com/3edec7cf1b342e8b76fbf14ba25351f7338c0d42 Cr-Commit-Position: refs/heads/master@{#15526}

Patch Set 1 #

Total comments: 7

Patch Set 2 : Adding "NO_ERROR" and ostream operator. #

Patch Set 3 : Renaming "NO_ERROR" to "NONE" since the former is reserved on Windows... #

Patch Set 4 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -0 lines) Patch
M webrtc/api/peerconnection.cc View 1 2 3 1 chunk +19 lines, -0 lines 0 comments Download
M webrtc/api/peerconnectioninterface.h View 1 2 2 chunks +39 lines, -0 lines 0 comments Download
M webrtc/api/peerconnectioninterface_unittest.cc View 1 2 2 chunks +9 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (11 generated)
Taylor Brandstetter
PTAL Peter. Also adding Harald since he was involved in this discussion.
4 years ago (2016-12-08 23:23:40 UTC) #2
hta-webrtc
Advice. Principle looks good, but code isn't the way I'd have done it. https://codereview.webrtc.org/2564683002/diff/1/webrtc/api/peerconnectioninterface.h File ...
4 years ago (2016-12-09 10:13:16 UTC) #3
Taylor Brandstetter
https://codereview.webrtc.org/2564683002/diff/1/webrtc/api/peerconnectioninterface.h File webrtc/api/peerconnectioninterface.h (right): https://codereview.webrtc.org/2564683002/diff/1/webrtc/api/peerconnectioninterface.h#newcode146 webrtc/api/peerconnectioninterface.h:146: enum class RtcError { On 2016/12/09 10:13:16, hta-webrtc wrote: ...
4 years ago (2016-12-09 18:39:07 UTC) #4
pthatcher1
lgtm https://codereview.webrtc.org/2564683002/diff/1/webrtc/api/peerconnectioninterface.h File webrtc/api/peerconnectioninterface.h (right): https://codereview.webrtc.org/2564683002/diff/1/webrtc/api/peerconnectioninterface.h#newcode149 webrtc/api/peerconnectioninterface.h:149: UNSUPPORTED_PARAMETER, Yeah, we just had that discussion back ...
4 years ago (2016-12-10 02:14:44 UTC) #5
hta-webrtc
lgtm
4 years ago (2016-12-10 08:11:50 UTC) #6
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/2564683002/20001
4 years ago (2016-12-10 18:14:51 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: win_x64_dbg on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/win_x64_dbg/builds/4345)
4 years ago (2016-12-10 18:20:01 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/2564683002/40001
4 years ago (2016-12-10 19:06:58 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: linux_asan on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/linux_asan/builds/20306)
4 years ago (2016-12-10 19:16:49 UTC) #15
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/2564683002/60001
4 years ago (2016-12-10 19:19:18 UTC) #18
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years ago (2016-12-10 19:44:31 UTC) #21
commit-bot: I haz the power
4 years ago (2016-12-10 19:57:28 UTC) #23
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/3edec7cf1b342e8b76fbf14ba25351f7338c0d42
Cr-Commit-Position: refs/heads/master@{#15526}

Powered by Google App Engine
This is Rietveld 408576698