diff options
author | jiayl@chromium.org <jiayl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-06 19:20:37 +0000 |
---|---|---|
committer | jiayl@chromium.org <jiayl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-06 19:20:37 +0000 |
commit | 6efd5f23fdb17fc6c0eb3eeec4e5e0bc8f0f573d (patch) | |
tree | 229f6d5134007183306fcd424eb3b74e6385b513 /content/browser/renderer_host/media/peer_connection_tracker_host.h | |
parent | 26d88169e4fd54fb2c97e21615d1bb22959a085f (diff) | |
download | chromium_src-6efd5f23fdb17fc6c0eb3eeec4e5e0bc8f0f573d.zip chromium_src-6efd5f23fdb17fc6c0eb3eeec4e5e0bc8f0f573d.tar.gz chromium_src-6efd5f23fdb17fc6c0eb3eeec4e5e0bc8f0f573d.tar.bz2 |
Adds getting PeerConnection stats for webrtc-internals.
It also fixes an issue of out-of-order update for PeerConnection async API callbacks by calling PeerConnectionTracker::Track* methods before the default handling.
In addition, we should call PeerConnectionTracker::Track* methods first for SetLocalDescription and SetRemoteDescription because the SessionDescriptionInterface object may get destroyed after native_peer_connection_->SetLocalDescription is called.
BUG=168232, 172986
Review URL: https://chromiumcodereview.appspot.com/12084030
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181019 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/renderer_host/media/peer_connection_tracker_host.h')
-rw-r--r-- | content/browser/renderer_host/media/peer_connection_tracker_host.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/content/browser/renderer_host/media/peer_connection_tracker_host.h b/content/browser/renderer_host/media/peer_connection_tracker_host.h index 37ac30e..2803e7b 100644 --- a/content/browser/renderer_host/media/peer_connection_tracker_host.h +++ b/content/browser/renderer_host/media/peer_connection_tracker_host.h @@ -9,6 +9,10 @@ struct PeerConnectionInfo; +namespace base { +class ListValue; +} // namespace base + namespace content { // This class is the host for PeerConnectionTracker in the browser process @@ -33,6 +37,7 @@ class PeerConnectionTrackerHost : public BrowserMessageFilter { void OnRemovePeerConnection(int lid); void OnUpdatePeerConnection( int lid, const std::string& type, const std::string& value); + void OnAddStats(int lid, const base::ListValue& value); int render_process_id_; |