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

Side by Side Diff: Source/platform/exported/WebRTCConfiguration.cpp

Issue 1353673002: Remove unused functions. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « no previous file | public/platform/WebRTCConfiguration.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 void WebRTCConfiguration::assign(const WebRTCConfiguration& other) 106 void WebRTCConfiguration::assign(const WebRTCConfiguration& other)
107 { 107 {
108 m_private = other.m_private; 108 m_private = other.m_private;
109 } 109 }
110 110
111 void WebRTCConfiguration::reset() 111 void WebRTCConfiguration::reset()
112 { 112 {
113 m_private.reset(); 113 m_private.reset();
114 } 114 }
115 115
116 // TODO(guoweis): Remove this function when WebKit rolls into Chromium.
117 size_t WebRTCConfiguration::numberOfServers() const
118 {
119 ASSERT(!isNull());
120 if (!m_private->iceServers()) {
121 return 0;
122 }
123 return m_private->iceServers()->numberOfServers();
124 }
125
126 // TODO(guoweis): Remove this function when WebKit rolls into Chromium.
127 WebRTCICEServer WebRTCConfiguration::server(size_t index) const
128 {
129 ASSERT(!isNull());
130 return WebRTCICEServer(m_private->iceServers()->server(index));
131 }
132
133 WebRTCIceTransports WebRTCConfiguration::iceTransports() const 116 WebRTCIceTransports WebRTCConfiguration::iceTransports() const
134 { 117 {
135 ASSERT(!isNull()); 118 ASSERT(!isNull());
136 switch (m_private->iceTransports()) { 119 switch (m_private->iceTransports()) {
137 case RTCIceTransportsNone: 120 case RTCIceTransportsNone:
138 return WebRTCIceTransportsNone; 121 return WebRTCIceTransportsNone;
139 case RTCIceTransportsRelay: 122 case RTCIceTransportsRelay:
140 return WebRTCIceTransportsRelay; 123 return WebRTCIceTransportsRelay;
141 case RTCIceTransportsAll: 124 case RTCIceTransportsAll:
142 return WebRTCIceTransportsAll; 125 return WebRTCIceTransportsAll;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 return WebRTCRtcpMuxPolicyNegotiate; 159 return WebRTCRtcpMuxPolicyNegotiate;
177 } 160 }
178 161
179 WebRTCICEServerArray WebRTCConfiguration::iceServers() const 162 WebRTCICEServerArray WebRTCConfiguration::iceServers() const
180 { 163 {
181 ASSERT(!isNull()); 164 ASSERT(!isNull());
182 return WebRTCICEServerArray(m_private->iceServers()); 165 return WebRTCICEServerArray(m_private->iceServers());
183 } 166 }
184 167
185 } // namespace blink 168 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | public/platform/WebRTCConfiguration.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698