diff options
author | perkj@chromium.org <perkj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-27 17:20:40 +0000 |
---|---|---|
committer | perkj@chromium.org <perkj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-27 17:20:40 +0000 |
commit | 275cc06144eeb80f766bb62aac14fc4d3a85a01e (patch) | |
tree | 08e660f64cac642563e836834eaba6e02ef2961f /content/renderer/media/rtc_peer_connection_handler.h | |
parent | 7e18fe1ea62bff56e9c8e6cac9c57a17170d4020 (diff) | |
download | chromium_src-275cc06144eeb80f766bb62aac14fc4d3a85a01e.zip chromium_src-275cc06144eeb80f766bb62aac14fc4d3a85a01e.tar.gz chromium_src-275cc06144eeb80f766bb62aac14fc4d3a85a01e.tar.bz2 |
Refactored to provide a new PortAllocatorFactory per PeerConnection.
This refactor MediaStreamDependencyFactory to create one PortAllocatorFactory per created PeerConnection. The reason is that the PortAllocator need a valid WebFrame that belongs to the
webpage that creates the PeerConnection. The valid WebFrame will be provided in a later cl from WebKit.
Roles libjingle to revision 195.
BUG=148366,150755
TEST= existing unit tests and https://apprtc.appspot.com/?r= between two tabs.
Review URL: https://chromiumcodereview.appspot.com/10977035
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159056 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer/media/rtc_peer_connection_handler.h')
-rw-r--r-- | content/renderer/media/rtc_peer_connection_handler.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/content/renderer/media/rtc_peer_connection_handler.h b/content/renderer/media/rtc_peer_connection_handler.h index 433e24f..5dab126 100644 --- a/content/renderer/media/rtc_peer_connection_handler.h +++ b/content/renderer/media/rtc_peer_connection_handler.h @@ -26,6 +26,11 @@ class CONTENT_EXPORT RTCPeerConnectionHandler MediaStreamDependencyFactory* dependency_factory); virtual ~RTCPeerConnectionHandler(); + // Initialize method only used for unit test. + bool InitializeForTest( + const WebKit::WebRTCConfiguration& server_configuration, + const WebKit::WebMediaConstraints& options); + // WebKit::WebRTCPeerConnectionHandler implementation virtual bool initialize( const WebKit::WebRTCConfiguration& server_configuration, |