OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2012 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 #include "webrtc/p2p/base/transportdescriptionfactory.h" | 11 #include "webrtc/p2p/base/transportdescriptionfactory.h" |
12 | 12 |
13 #include <memory> | 13 #include <memory> |
14 | 14 |
15 #include "webrtc/p2p/base/transportdescription.h" | 15 #include "webrtc/p2p/base/transportdescription.h" |
16 #include "webrtc/base/helpers.h" | 16 #include "webrtc/rtc_base/helpers.h" |
17 #include "webrtc/base/logging.h" | 17 #include "webrtc/rtc_base/logging.h" |
18 #include "webrtc/base/messagedigest.h" | 18 #include "webrtc/rtc_base/messagedigest.h" |
19 #include "webrtc/base/sslfingerprint.h" | 19 #include "webrtc/rtc_base/sslfingerprint.h" |
20 | 20 |
21 namespace cricket { | 21 namespace cricket { |
22 | 22 |
23 TransportDescriptionFactory::TransportDescriptionFactory() | 23 TransportDescriptionFactory::TransportDescriptionFactory() |
24 : secure_(SEC_DISABLED) { | 24 : secure_(SEC_DISABLED) { |
25 } | 25 } |
26 | 26 |
27 TransportDescription* TransportDescriptionFactory::CreateOffer( | 27 TransportDescription* TransportDescriptionFactory::CreateOffer( |
28 const TransportOptions& options, | 28 const TransportOptions& options, |
29 const TransportDescription* current_description) const { | 29 const TransportDescription* current_description) const { |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 << digest_alg; | 133 << digest_alg; |
134 return false; | 134 return false; |
135 } | 135 } |
136 | 136 |
137 // Assign security role. | 137 // Assign security role. |
138 desc->connection_role = role; | 138 desc->connection_role = role; |
139 return true; | 139 return true; |
140 } | 140 } |
141 | 141 |
142 } // namespace cricket | 142 } // namespace cricket |
OLD | NEW |