webrtc/talk
tommi@webrtc.org 5b06b06cc0 Revert 6897 (i.e. Reland 6863) - "Revert 6863 "Refactor StatsCollector and associated..."
The bot that had the problem was using an old version of STL, so relanding.

> Revert 6863 "Refactor StatsCollector and associated types."
> 
> Breaks chrome compilation on Mac:
> 
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/bits/vector.tcc:252:8:
> error: no matching constructor for initialization of
> 'webrtc::StatsReport'
>           _Tp __x_copy = __x;
>               ^          ~~~
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/bits/stl_vector.h:608:4:
> note: in instantiation of member function
> 'std::vector<webrtc::StatsReport, std::allocator<webrtc::StatsReport>
> >::_M_insert_aux' requested here
>           _M_insert_aux(end(), __x);
>           ^
> ../../content/renderer/media/mock_peer_connection_impl.cc:282:11:
> note: in instantiation of member function
> 'std::vector<webrtc::StatsReport, std::allocator<webrtc::StatsReport>
> >::push_back' requested here
>   reports.push_back(report1);
>           ^
> ../../third_party/libjingle/source/talk/app/webrtc/statstypes.h:49:3:
> note: candidate constructor not viable: requires 0 arguments, but 1
> was provided
>   StatsReport() : timestamp(0) {}
> 
> 
> 
> > Refactor StatsCollector and associated types.
> > * Due to the type changes, I'm going to update the OnCompleted event in two phases to sync with Chrome. This is the first phase.
> > * Reports are now managed in a set, not a map, since it's enough to store the id in one place.
> > * Report ids are now const.
> > * Copying of data has been greatly reduced.
> > * This change includes preparation work for making GetStats fully async.
> > 
> > This is a reland of r6778 which was reverted due to fyi bots failing.
> > I found and fixed the issue which was that in a couple of places I needed to replace a report instead of finding+updating an existing one.
> > 
> > R=xians@webrtc.org
> > 
> > Review URL: https://webrtc-codereview.appspot.com/15119004
> 
> TBR=tommi@webrtc.org
> 
> Review URL: https://webrtc-codereview.appspot.com/21169004

TBR=niklas.enbom@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/22099004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@6908 4adac7df-926f-26a2-2b94-8c16560cd09d
2014-08-15 08:38:30 +00:00
..
app/webrtc Revert 6897 (i.e. Reland 6863) - "Revert 6863 "Refactor StatsCollector and associated..." 2014-08-15 08:38:30 +00:00
build Remove more dependencies on openssl, add dependency on boringssl. Continues on r6798 2014-08-11 21:06:30 +00:00
examples (Auto)update libjingle 73222930-> 73226398 2014-08-13 17:26:08 +00:00
media (Auto)update libjingle 73256845-> 73260148 2014-08-13 23:57:23 +00:00
p2p (Auto)update libjingle 73222930-> 73226398 2014-08-13 17:26:08 +00:00
session (Auto)update libjingle 73222930-> 73226398 2014-08-13 17:26:08 +00:00
sound (Auto)update libjingle 73222930-> 73226398 2014-08-13 17:26:08 +00:00
xmllite (Auto)update libjingle 73222930-> 73226398 2014-08-13 17:26:08 +00:00
xmpp (Auto)update libjingle 73222930-> 73226398 2014-08-13 17:26:08 +00:00
COPYING Libjingle in webrtc needs updated AUTHORS, COPYING, LICENSE_THIRD_PARTY AND README. 2013-07-16 18:04:56 +00:00
libjingle_examples.gyp (Auto)update libjingle 71753329-> 71766184 2014-07-23 19:07:53 +00:00
libjingle_media_unittest.isolate Pass GYP DEPTH variable to isolate. 2014-06-13 09:02:15 +00:00
libjingle_p2p_unittest.isolate Pass GYP DEPTH variable to isolate. 2014-06-13 09:02:15 +00:00
libjingle_peerconnection_unittest.isolate Pass GYP DEPTH variable to isolate. 2014-06-13 09:02:15 +00:00
libjingle_sound_unittest.isolate Pass GYP DEPTH variable to isolate. 2014-06-13 09:02:15 +00:00
libjingle_tests.gyp (Auto)update libjingle 72682155-> 72785180 2014-08-07 04:47:36 +00:00
libjingle_unittest.isolate Pass GYP DEPTH variable to isolate. 2014-06-13 09:02:15 +00:00
libjingle.gyp (Auto)update libjingle 72839629-> 72847605 2014-08-07 22:09:08 +00:00
LICENSE_THIRD_PARTY Libjingle in webrtc needs updated AUTHORS, COPYING, LICENSE_THIRD_PARTY AND README. 2013-07-16 18:04:56 +00:00
OWNERS Make everyone an OWNER for .gyp/.gypi add/delete purposes, talk/ edition. 2014-04-14 20:31:16 +00:00
PRESUBMIT.py Remove files from talk/PRESUBMIT.py blacklist. 2014-08-13 20:38:53 +00:00