| OLD | NEW |
| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 } | 88 } |
| 89 | 89 |
| 90 void WebRTCICECandidate::Initialize(const WebString& candidate, | 90 void WebRTCICECandidate::Initialize(const WebString& candidate, |
| 91 const WebString& sdp_mid, | 91 const WebString& sdp_mid, |
| 92 unsigned short sdp_m_line_index) { | 92 unsigned short sdp_m_line_index) { |
| 93 private_ = | 93 private_ = |
| 94 WebRTCICECandidatePrivate::Create(candidate, sdp_mid, sdp_m_line_index); | 94 WebRTCICECandidatePrivate::Create(candidate, sdp_mid, sdp_m_line_index); |
| 95 } | 95 } |
| 96 | 96 |
| 97 WebString WebRTCICECandidate::Candidate() const { | 97 WebString WebRTCICECandidate::Candidate() const { |
| 98 ASSERT(!private_.IsNull()); | 98 DCHECK(!private_.IsNull()); |
| 99 return private_->Candidate(); | 99 return private_->Candidate(); |
| 100 } | 100 } |
| 101 | 101 |
| 102 WebString WebRTCICECandidate::SdpMid() const { | 102 WebString WebRTCICECandidate::SdpMid() const { |
| 103 ASSERT(!private_.IsNull()); | 103 DCHECK(!private_.IsNull()); |
| 104 return private_->SdpMid(); | 104 return private_->SdpMid(); |
| 105 } | 105 } |
| 106 | 106 |
| 107 unsigned short WebRTCICECandidate::SdpMLineIndex() const { | 107 unsigned short WebRTCICECandidate::SdpMLineIndex() const { |
| 108 ASSERT(!private_.IsNull()); | 108 DCHECK(!private_.IsNull()); |
| 109 return private_->SdpMLineIndex(); | 109 return private_->SdpMLineIndex(); |
| 110 } | 110 } |
| 111 | 111 |
| 112 void WebRTCICECandidate::SetCandidate(WebString candidate) { | 112 void WebRTCICECandidate::SetCandidate(WebString candidate) { |
| 113 ASSERT(!private_.IsNull()); | 113 DCHECK(!private_.IsNull()); |
| 114 private_->SetCandidate(candidate); | 114 private_->SetCandidate(candidate); |
| 115 } | 115 } |
| 116 | 116 |
| 117 void WebRTCICECandidate::SetSdpMid(WebString sdp_mid) { | 117 void WebRTCICECandidate::SetSdpMid(WebString sdp_mid) { |
| 118 ASSERT(!private_.IsNull()); | 118 DCHECK(!private_.IsNull()); |
| 119 private_->SetSdpMid(sdp_mid); | 119 private_->SetSdpMid(sdp_mid); |
| 120 } | 120 } |
| 121 | 121 |
| 122 void WebRTCICECandidate::SetSdpMLineIndex(unsigned short sdp_m_line_index) { | 122 void WebRTCICECandidate::SetSdpMLineIndex(unsigned short sdp_m_line_index) { |
| 123 ASSERT(!private_.IsNull()); | 123 DCHECK(!private_.IsNull()); |
| 124 private_->SetSdpMLineIndex(sdp_m_line_index); | 124 private_->SetSdpMLineIndex(sdp_m_line_index); |
| 125 } | 125 } |
| 126 | 126 |
| 127 } // namespace blink | 127 } // namespace blink |
| OLD | NEW |