| OLD | NEW |
| 1 /* | 1 /* |
| 2 * libjingle | 2 * libjingle |
| 3 * Copyright 2012 Google Inc. | 3 * Copyright 2012 Google Inc. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
| 9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 return candidates_.size(); | 75 return candidates_.size(); |
| 76 } | 76 } |
| 77 virtual bool HasCandidate(const IceCandidateInterface* candidate) const; | 77 virtual bool HasCandidate(const IceCandidateInterface* candidate) const; |
| 78 // Adds and takes ownership of the JsepIceCandidate. | 78 // Adds and takes ownership of the JsepIceCandidate. |
| 79 virtual void add(JsepIceCandidate* candidate) { | 79 virtual void add(JsepIceCandidate* candidate) { |
| 80 candidates_.push_back(candidate); | 80 candidates_.push_back(candidate); |
| 81 } | 81 } |
| 82 virtual const IceCandidateInterface* at(size_t index) const { | 82 virtual const IceCandidateInterface* at(size_t index) const { |
| 83 return candidates_[index]; | 83 return candidates_[index]; |
| 84 } | 84 } |
| 85 virtual int remove(const IceCandidateInterface* candidate); |
| 85 | 86 |
| 86 private: | 87 private: |
| 87 std::vector<JsepIceCandidate*> candidates_; | 88 std::vector<JsepIceCandidate*> candidates_; |
| 88 }; | 89 }; |
| 89 | 90 |
| 90 } // namespace webrtc | 91 } // namespace webrtc |
| 91 | 92 |
| 92 #endif // TALK_APP_WEBRTC_JSEPICECANDIDATE_H_ | 93 #endif // TALK_APP_WEBRTC_JSEPICECANDIDATE_H_ |
| OLD | NEW |