| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 #ifndef WEBRTC_P2P_BASE_CANDIDATE_H_ | 11 #ifndef WEBRTC_P2P_BASE_CANDIDATE_H_ |
| 12 #define WEBRTC_P2P_BASE_CANDIDATE_H_ | 12 #define WEBRTC_P2P_BASE_CANDIDATE_H_ |
| 13 | 13 |
| 14 #include <limits.h> | 14 #include <limits.h> |
| 15 #include <math.h> | 15 #include <math.h> |
| 16 #include <stdint.h> | 16 #include <stdint.h> |
| 17 | 17 |
| 18 #include <algorithm> | 18 #include <algorithm> |
| 19 #include <iomanip> | 19 #include <iomanip> |
| 20 #include <sstream> | 20 #include <sstream> |
| 21 #include <string> | 21 #include <string> |
| 22 | 22 |
| 23 #include "webrtc/p2p/base/p2pconstants.h" | 23 #include "webrtc/p2p/base/p2pconstants.h" |
| 24 #include "webrtc/rtc_base/checks.h" | 24 #include "webrtc/base/checks.h" |
| 25 #include "webrtc/rtc_base/helpers.h" | 25 #include "webrtc/base/helpers.h" |
| 26 #include "webrtc/rtc_base/network.h" | 26 #include "webrtc/base/network.h" |
| 27 #include "webrtc/rtc_base/socketaddress.h" | 27 #include "webrtc/base/socketaddress.h" |
| 28 | 28 |
| 29 namespace cricket { | 29 namespace cricket { |
| 30 | 30 |
| 31 // Candidate for ICE based connection discovery. | 31 // Candidate for ICE based connection discovery. |
| 32 | 32 |
| 33 class Candidate { | 33 class Candidate { |
| 34 public: | 34 public: |
| 35 // TODO: Match the ordering and param list as per RFC 5245 | 35 // TODO: Match the ordering and param list as per RFC 5245 |
| 36 // candidate-attribute syntax. http://tools.ietf.org/html/rfc5245#section-15.1 | 36 // candidate-attribute syntax. http://tools.ietf.org/html/rfc5245#section-15.1 |
| 37 Candidate() | 37 Candidate() |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 virtual ~CandidateTranslator() {} | 298 virtual ~CandidateTranslator() {} |
| 299 virtual bool GetChannelNameFromComponent( | 299 virtual bool GetChannelNameFromComponent( |
| 300 int component, std::string* channel_name) const = 0; | 300 int component, std::string* channel_name) const = 0; |
| 301 virtual bool GetComponentFromChannelName( | 301 virtual bool GetComponentFromChannelName( |
| 302 const std::string& channel_name, int* component) const = 0; | 302 const std::string& channel_name, int* component) const = 0; |
| 303 }; | 303 }; |
| 304 | 304 |
| 305 } // namespace cricket | 305 } // namespace cricket |
| 306 | 306 |
| 307 #endif // WEBRTC_P2P_BASE_CANDIDATE_H_ | 307 #endif // WEBRTC_P2P_BASE_CANDIDATE_H_ |
| OLD | NEW |