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

Side by Side Diff: content/renderer/media/peer_connection_tracker.h

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, 4 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 4
5 #ifndef CONTENT_RENDERER_MEDIA_PEERCONNECTION_TRACKER_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_PEERCONNECTION_TRACKER_H_
6 #define CONTENT_RENDERER_MEDIA_PEERCONNECTION_TRACKER_H_ 6 #define CONTENT_RENDERER_MEDIA_PEERCONNECTION_TRACKER_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 62
63 // Sends an update when a PeerConnection has been created in Javascript. 63 // Sends an update when a PeerConnection has been created in Javascript.
64 // This should be called once and only once for each PeerConnection. 64 // This should be called once and only once for each PeerConnection.
65 // The |pc_handler| is the handler object associated with the PeerConnection, 65 // The |pc_handler| is the handler object associated with the PeerConnection,
66 // the |servers| are the server configurations used to establish the 66 // the |servers| are the server configurations used to establish the
67 // connection, the |constraints| are the media constraints used to initialize 67 // connection, the |constraints| are the media constraints used to initialize
68 // the PeerConnection, the |frame| is the WebFrame object representing the 68 // the PeerConnection, the |frame| is the WebFrame object representing the
69 // page in which the PeerConnection is created. 69 // page in which the PeerConnection is created.
70 void RegisterPeerConnection( 70 void RegisterPeerConnection(
71 RTCPeerConnectionHandler* pc_handler, 71 RTCPeerConnectionHandler* pc_handler,
72 const std::vector<webrtc::PeerConnectionInterface::IceServer>& servers, 72 const webrtc::PeerConnectionInterface::RTCConfiguration& config,
73 const RTCMediaConstraints& constraints, 73 const RTCMediaConstraints& constraints,
74 const blink::WebFrame* frame); 74 const blink::WebFrame* frame);
75 75
76 // Sends an update when a PeerConnection has been destroyed. 76 // Sends an update when a PeerConnection has been destroyed.
77 virtual void UnregisterPeerConnection(RTCPeerConnectionHandler* pc_handler); 77 virtual void UnregisterPeerConnection(RTCPeerConnectionHandler* pc_handler);
78 78
79 // Sends an update when createOffer/createAnswer has been called. 79 // Sends an update when createOffer/createAnswer has been called.
80 // The |pc_handler| is the handler object associated with the PeerConnection, 80 // The |pc_handler| is the handler object associated with the PeerConnection,
81 // the |constraints| is the media constraints used to create the offer/answer. 81 // the |constraints| is the media constraints used to create the offer/answer.
82 virtual void TrackCreateOffer(RTCPeerConnectionHandler* pc_handler, 82 virtual void TrackCreateOffer(RTCPeerConnectionHandler* pc_handler,
83 const RTCMediaConstraints& constraints); 83 const RTCMediaConstraints& constraints);
84 virtual void TrackCreateAnswer(RTCPeerConnectionHandler* pc_handler, 84 virtual void TrackCreateAnswer(RTCPeerConnectionHandler* pc_handler,
85 const RTCMediaConstraints& constraints); 85 const RTCMediaConstraints& constraints);
86 86
87 // Sends an update when setLocalDescription or setRemoteDescription is called. 87 // Sends an update when setLocalDescription or setRemoteDescription is called.
88 virtual void TrackSetSessionDescription( 88 virtual void TrackSetSessionDescription(
89 RTCPeerConnectionHandler* pc_handler, 89 RTCPeerConnectionHandler* pc_handler,
90 const blink::WebRTCSessionDescription& desc, Source source); 90 const blink::WebRTCSessionDescription& desc, Source source);
91 91
92 // Sends an update when Ice candidates are updated. 92 // Sends an update when Ice candidates are updated.
93 virtual void TrackUpdateIce( 93 virtual void TrackUpdateIce(
94 RTCPeerConnectionHandler* pc_handler, 94 RTCPeerConnectionHandler* pc_handler,
95 const std::vector<webrtc::PeerConnectionInterface::IceServer>& servers, 95 const webrtc::PeerConnectionInterface::RTCConfiguration& config,
96 const RTCMediaConstraints& options); 96 const RTCMediaConstraints& options);
97 97
98 // Sends an update when an Ice candidate is added. 98 // Sends an update when an Ice candidate is added.
99 virtual void TrackAddIceCandidate( 99 virtual void TrackAddIceCandidate(
100 RTCPeerConnectionHandler* pc_handler, 100 RTCPeerConnectionHandler* pc_handler,
101 const blink::WebRTCICECandidate& candidate, Source source); 101 const blink::WebRTCICECandidate& candidate, Source source);
102 102
103 // Sends an update when a media stream is added. 103 // Sends an update when a media stream is added.
104 virtual void TrackAddStream( 104 virtual void TrackAddStream(
105 RTCPeerConnectionHandler* pc_handler, 105 RTCPeerConnectionHandler* pc_handler,
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 171
172 // This keeps track of the next available local ID. 172 // This keeps track of the next available local ID.
173 int next_lid_; 173 int next_lid_;
174 174
175 DISALLOW_COPY_AND_ASSIGN(PeerConnectionTracker); 175 DISALLOW_COPY_AND_ASSIGN(PeerConnectionTracker);
176 }; 176 };
177 177
178 } // namespace content 178 } // namespace content
179 179
180 #endif // CONTENT_RENDERER_MEDIA_PEERCONNECTION_TRACKER_H_ 180 #endif // CONTENT_RENDERER_MEDIA_PEERCONNECTION_TRACKER_H_
OLDNEW
« no previous file with comments | « content/common/media/peer_connection_tracker_messages.h ('k') | content/renderer/media/peer_connection_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698