| 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 30 matching lines...) Expand all Loading... |
| 41 public: | 41 public: |
| 42 static PassRefPtr<WebRTCICECandidatePrivate> create(const WebString& candida
te, const WebString& sdpMid, unsigned short sdpMLineIndex) | 42 static PassRefPtr<WebRTCICECandidatePrivate> create(const WebString& candida
te, const WebString& sdpMid, unsigned short sdpMLineIndex) |
| 43 { | 43 { |
| 44 return adoptRef(new WebRTCICECandidatePrivate(candidate, sdpMid, sdpMLin
eIndex)); | 44 return adoptRef(new WebRTCICECandidatePrivate(candidate, sdpMid, sdpMLin
eIndex)); |
| 45 } | 45 } |
| 46 | 46 |
| 47 const WebString& candidate() const { return m_candidate; } | 47 const WebString& candidate() const { return m_candidate; } |
| 48 const WebString& sdpMid() const { return m_sdpMid; } | 48 const WebString& sdpMid() const { return m_sdpMid; } |
| 49 unsigned short sdpMLineIndex() const { return m_sdpMLineIndex; } | 49 unsigned short sdpMLineIndex() const { return m_sdpMLineIndex; } |
| 50 | 50 |
| 51 BLINK_PLATFORM_EXPORT void setCandidate(WebString candidate) { m_candidate =
candidate; } |
| 52 BLINK_PLATFORM_EXPORT void setSdpMid(WebString sdpMid) { m_sdpMid = sdpMid;
} |
| 53 BLINK_PLATFORM_EXPORT void setSdpMLineIndex(unsigned short sdpMLineIndex) {
m_sdpMLineIndex = sdpMLineIndex; } |
| 54 |
| 51 private: | 55 private: |
| 52 WebRTCICECandidatePrivate(const WebString& candidate, const WebString& sdpMi
d, unsigned short sdpMLineIndex); | 56 WebRTCICECandidatePrivate(const WebString& candidate, const WebString& sdpMi
d, unsigned short sdpMLineIndex); |
| 53 | 57 |
| 54 WebString m_candidate; | 58 WebString m_candidate; |
| 55 WebString m_sdpMid; | 59 WebString m_sdpMid; |
| 56 unsigned short m_sdpMLineIndex; | 60 unsigned short m_sdpMLineIndex; |
| 57 }; | 61 }; |
| 58 | 62 |
| 59 WebRTCICECandidatePrivate::WebRTCICECandidatePrivate(const WebString& candidate,
const WebString& sdpMid, unsigned short sdpMLineIndex) | 63 WebRTCICECandidatePrivate::WebRTCICECandidatePrivate(const WebString& candidate,
const WebString& sdpMid, unsigned short sdpMLineIndex) |
| 60 : m_candidate(candidate) | 64 : m_candidate(candidate) |
| (...skipping 28 matching lines...) Expand all Loading... |
| 89 ASSERT(!m_private.isNull()); | 93 ASSERT(!m_private.isNull()); |
| 90 return m_private->sdpMid(); | 94 return m_private->sdpMid(); |
| 91 } | 95 } |
| 92 | 96 |
| 93 unsigned short WebRTCICECandidate::sdpMLineIndex() const | 97 unsigned short WebRTCICECandidate::sdpMLineIndex() const |
| 94 { | 98 { |
| 95 ASSERT(!m_private.isNull()); | 99 ASSERT(!m_private.isNull()); |
| 96 return m_private->sdpMLineIndex(); | 100 return m_private->sdpMLineIndex(); |
| 97 } | 101 } |
| 98 | 102 |
| 103 void WebRTCICECandidate::setCandidate(WebString candidate) |
| 104 { |
| 105 ASSERT(!m_private.isNull()); |
| 106 m_private->setCandidate(candidate); |
| 107 } |
| 108 |
| 109 void WebRTCICECandidate::setSdpMid(WebString sdpMid) |
| 110 { |
| 111 ASSERT(!m_private.isNull()); |
| 112 m_private->setSdpMid(sdpMid); |
| 113 } |
| 114 |
| 115 void WebRTCICECandidate::setSdpMLineIndex(unsigned short sdpMLineIndex) |
| 116 { |
| 117 ASSERT(!m_private.isNull()); |
| 118 m_private->setSdpMLineIndex(sdpMLineIndex); |
| 119 } |
| 120 |
| 99 } // namespace blink | 121 } // namespace blink |
| OLD | NEW |