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 | 16 |
17 #include <algorithm> | 17 #include <algorithm> |
18 #include <iomanip> | 18 #include <iomanip> |
19 #include <sstream> | 19 #include <sstream> |
20 #include <string> | 20 #include <string> |
21 | 21 |
22 #include "webrtc/p2p/base/constants.h" | 22 #include "webrtc/p2p/base/p2pconstants.h" |
23 #include "webrtc/base/basictypes.h" | 23 #include "webrtc/base/basictypes.h" |
24 #include "webrtc/base/helpers.h" | 24 #include "webrtc/base/helpers.h" |
25 #include "webrtc/base/network.h" | 25 #include "webrtc/base/network.h" |
26 #include "webrtc/base/socketaddress.h" | 26 #include "webrtc/base/socketaddress.h" |
27 | 27 |
28 namespace cricket { | 28 namespace cricket { |
29 | 29 |
30 const uint32_t kMaxNetworkCost = 999; | 30 const uint32_t kMaxNetworkCost = 999; |
31 | 31 |
32 // Candidate for ICE based connection discovery. | 32 // Candidate for ICE based connection discovery. |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 virtual ~CandidateTranslator() {} | 255 virtual ~CandidateTranslator() {} |
256 virtual bool GetChannelNameFromComponent( | 256 virtual bool GetChannelNameFromComponent( |
257 int component, std::string* channel_name) const = 0; | 257 int component, std::string* channel_name) const = 0; |
258 virtual bool GetComponentFromChannelName( | 258 virtual bool GetComponentFromChannelName( |
259 const std::string& channel_name, int* component) const = 0; | 259 const std::string& channel_name, int* component) const = 0; |
260 }; | 260 }; |
261 | 261 |
262 } // namespace cricket | 262 } // namespace cricket |
263 | 263 |
264 #endif // WEBRTC_P2P_BASE_CANDIDATE_H_ | 264 #endif // WEBRTC_P2P_BASE_CANDIDATE_H_ |
OLD | NEW |