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

Issue 2313943002: Renamed RTCStatsReport to RTCLegacyStatsReport in objc files. (Closed)

Created:
4 years, 3 months ago by hbos
Modified:
4 years, 3 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Renamed RTCStatsReport to RTCLegacyStatsReport in objc files. This is to avoid a naming conflict with webrtc::RTCStatsReport that is surfaced if you try to include it in peerconnectioninterface.h. Background: The current stats is very much non-spec-compliant. A new stats collection API is underway that is meant to be spec-compliant. Some classes in Chromium and webrtc/sdk/objc have spec-compliant names but non-spec-compliant behavior. These are being renamed to "Legacy" so that new spec-compliant classes can be added with the correct names. BUG=chromium:627816 TBR=tkchin@webrtc.org NOTRY=True Committed: https://crrev.com/bd3dda6c8666b29641b941ffd92be01afca6647e Cr-Commit-Position: refs/heads/master@{#14150}

Patch Set 1 #

Patch Set 2 : Fix compile error #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -159 lines) Patch
M webrtc/examples/objc/AppRTCDemo/ARDStatsBuilder.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/examples/objc/AppRTCDemo/ARDStatsBuilder.m View 10 chunks +10 lines, -10 lines 0 comments Download
M webrtc/examples/objc/AppRTCDemo/ios/ARDStatsView.m View 1 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/sdk/BUILD.gn View 4 chunks +3 lines, -3 lines 0 comments Download
A + webrtc/sdk/objc/Framework/Classes/RTCLegacyStatsReport.mm View 2 chunks +3 lines, -3 lines 0 comments Download
A + webrtc/sdk/objc/Framework/Classes/RTCLegacyStatsReport+Private.h View 1 chunk +3 lines, -3 lines 0 comments Download
M webrtc/sdk/objc/Framework/Classes/RTCPeerConnection.mm View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/sdk/objc/Framework/Classes/RTCPeerConnection+Stats.mm View 5 chunks +6 lines, -6 lines 1 comment Download
D webrtc/sdk/objc/Framework/Classes/RTCStatsReport.mm View 1 chunk +0 lines, -60 lines 0 comments Download
D webrtc/sdk/objc/Framework/Classes/RTCStatsReport+Private.h View 1 chunk +0 lines, -24 lines 0 comments Download
A + webrtc/sdk/objc/Framework/Headers/WebRTC/RTCLegacyStatsReport.h View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/sdk/objc/Framework/Headers/WebRTC/RTCPeerConnection.h View 2 chunks +2 lines, -2 lines 1 comment Download
D webrtc/sdk/objc/Framework/Headers/WebRTC/RTCStatsReport.h View 1 chunk +0 lines, -37 lines 0 comments Download
M webrtc/sdk/objc/Framework/Headers/WebRTC/WebRTC.h View 1 2 chunks +1 line, -1 line 0 comments Download
M webrtc/sdk/sdk.gyp View 1 6 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 34 (15 generated)
hbos
Please take a look magjed. tkchin OOO...
4 years, 3 months ago (2016-09-06 13:05:58 UTC) #4
hbos
On 2016/09/06 13:05:58, hbos wrote: > Please take a look magjed. tkchin OOO...
4 years, 3 months ago (2016-09-07 06:45:35 UTC) #5
magjed_webrtc
lgtm You still need to TBR tkchin.
4 years, 3 months ago (2016-09-07 09:42:02 UTC) #6
hbos
On 2016/09/07 09:42:02, magjed_webrtc wrote: > lgtm > > You still need to TBR tkchin. ...
4 years, 3 months ago (2016-09-08 12:51:44 UTC) #7
hbos
On 2016/09/08 12:51:44, hbos wrote: > On 2016/09/07 09:42:02, magjed_webrtc wrote: > > lgtm > ...
4 years, 3 months ago (2016-09-09 07:25:58 UTC) #8
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/2313943002/40001
4 years, 3 months ago (2016-09-09 07:27:04 UTC) #11
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/2313943002/40001
4 years, 3 months ago (2016-09-09 07:27:14 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: ios_arm64_rel on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/ios_arm64_rel/builds/12676)
4 years, 3 months ago (2016-09-09 07:37:44 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/2313943002/40001
4 years, 3 months ago (2016-09-09 08:05:53 UTC) #17
hbos
On 2016/09/09 08:05:53, commit-bot: I haz the power wrote: > CQ is trying da patch. ...
4 years, 3 months ago (2016-09-09 08:27:32 UTC) #19
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/2313943002/40001
4 years, 3 months ago (2016-09-09 08:28:13 UTC) #22
commit-bot: I haz the power
Committed patchset #2 (id:40001)
4 years, 3 months ago (2016-09-09 08:36:31 UTC) #24
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/bd3dda6c8666b29641b941ffd92be01afca6647e Cr-Commit-Position: refs/heads/master@{#14150}
4 years, 3 months ago (2016-09-09 08:36:41 UTC) #26
tkchin_webrtc
What's the timeline for the new spec-compliant bits? It might have been good to wait ...
4 years, 3 months ago (2016-09-14 10:00:20 UTC) #27
hbos
On 2016/09/14 10:00:20, tkchin_webrtc_OOO_till_Sept_12 wrote: > What's the timeline for the new spec-compliant bits? It ...
4 years, 3 months ago (2016-09-14 12:41:02 UTC) #28
tkchin_webrtc
On 2016/09/14 12:41:02, hbos wrote: > On 2016/09/14 10:00:20, tkchin_webrtc_OOO_till_Sept_12 wrote: > > What's the ...
4 years, 3 months ago (2016-09-15 11:05:09 UTC) #29
hbos
> On 2016/09/14 12:41:02, hbos wrote: > > ... > > Gotcha. There shouldn't have ...
4 years, 3 months ago (2016-09-15 20:20:43 UTC) #30
hbos
Ah, cut already done :)
4 years, 3 months ago (2016-09-15 20:22:17 UTC) #31
tkchin_webrtc
4 years, 3 months ago (2016-09-20 17:39:12 UTC) #34
Message was sent while issue was closed.
On 2016/09/15 20:20:43, hbos wrote:
> > On 2016/09/14 12:41:02, hbos wrote:
> > > ...
> > 
> > Gotcha. There shouldn't have been naming conflicts in ObjC land though?
Since
> > only C++ ifaces where one is being deprecated and renamed, and a new one is
> > incoming?
> > 
> > Renaming the current stats required changes in at least one project that I
> know
> > of - cc-ed you there. It's not hard to rename, just inconvenient, and I
> thought
> > we wanted to transition official public headers more smoothly than causing
> build
> > breaks on updating WebRTC version. We can probably still release the pod
with
> an
> > extra comment that new stats APIs are coming.
> > 
> > There are no namespaces in ObjC unfortunately so this is the best we can do
> > right now if we want to alert clients that the API is going away now. It's
> also
> > a special case of sorts since we are reimplementing a class and keeping the
> > name.
> 
> The naming conflict was introduced when I included new stats-classes in
> peerconnectioninterface.h and there are ObjC files that use both that and
> RTCStatsReports.
> Now the CL looks like this:
>
https://codereview.webrtc.org/2331373004/diff/160001/webrtc/api/peerconnectio...
> In hindsight I wound up only needing a pointer to a callback class, which
could
> be declared without including stats stuff. We may very well be able to avoid
the
> conflict like that.
> 
> Sooner or later this name conflict will emerge, but it might be possible to
> revert this CL and wait until we are ready to deprecate the old stats API. Or
we
> add support for both stats APIs from the start, as the intention is to do in
C++
> and Chromium. Thoughts? (I'm OOO Friday)

I defer to pthatcher here. Likely iOS APIs will follow same migration plan as
C++ APIs. Peter, wdyt?

Powered by Google App Engine
This is Rietveld 408576698