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

Side by Side Diff: content/browser/renderer_host/media/peer_connection_tracker_host.cc

Issue 396193005: Converts RTCOfferOptions to constriants in the glue code for createOffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix sync Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 #include "content/browser/renderer_host/media/peer_connection_tracker_host.h" 4 #include "content/browser/renderer_host/media/peer_connection_tracker_host.h"
5 5
6 #include "content/browser/media/webrtc_internals.h" 6 #include "content/browser/media/webrtc_internals.h"
7 #include "content/common/media/peer_connection_tracker_messages.h" 7 #include "content/common/media/peer_connection_tracker_messages.h"
8 8
9 namespace content { 9 namespace content {
10 10
(...skipping 27 matching lines...) Expand all
38 PeerConnectionTrackerHost::~PeerConnectionTrackerHost() { 38 PeerConnectionTrackerHost::~PeerConnectionTrackerHost() {
39 } 39 }
40 40
41 void PeerConnectionTrackerHost::OnAddPeerConnection( 41 void PeerConnectionTrackerHost::OnAddPeerConnection(
42 const PeerConnectionInfo& info) { 42 const PeerConnectionInfo& info) {
43 WebRTCInternals::GetInstance()->OnAddPeerConnection( 43 WebRTCInternals::GetInstance()->OnAddPeerConnection(
44 render_process_id_, 44 render_process_id_,
45 peer_pid(), 45 peer_pid(),
46 info.lid, 46 info.lid,
47 info.url, 47 info.url,
48 info.servers, 48 info.rtc_configuration,
49 info.constraints); 49 info.constraints);
50 } 50 }
51 51
52 void PeerConnectionTrackerHost::OnRemovePeerConnection(int lid) { 52 void PeerConnectionTrackerHost::OnRemovePeerConnection(int lid) {
53 WebRTCInternals::GetInstance()->OnRemovePeerConnection(peer_pid(), lid); 53 WebRTCInternals::GetInstance()->OnRemovePeerConnection(peer_pid(), lid);
54 } 54 }
55 55
56 void PeerConnectionTrackerHost::OnUpdatePeerConnection( 56 void PeerConnectionTrackerHost::OnUpdatePeerConnection(
57 int lid, const std::string& type, const std::string& value) { 57 int lid, const std::string& type, const std::string& value) {
58 WebRTCInternals::GetInstance()->OnUpdatePeerConnection( 58 WebRTCInternals::GetInstance()->OnUpdatePeerConnection(
(...skipping 17 matching lines...) Expand all
76 WebRTCInternals::GetInstance()->OnGetUserMedia(render_process_id_, 76 WebRTCInternals::GetInstance()->OnGetUserMedia(render_process_id_,
77 peer_pid(), 77 peer_pid(),
78 origin, 78 origin,
79 audio, 79 audio,
80 video, 80 video,
81 audio_constraints, 81 audio_constraints,
82 video_constraints); 82 video_constraints);
83 } 83 }
84 84
85 } // namespace content 85 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/media/webrtc_internals_unittest.cc ('k') | content/browser/resources/media/webrtc_internals.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698