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

Side by Side Diff: talk/app/webrtc/jsepicecandidate.h

Issue 1648813004: Remove candidates when doing continual gathering (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Created 4 years, 10 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 /* 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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698