OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "remoting/protocol/ice_transport_channel.h" | 5 #include "remoting/protocol/ice_transport_channel.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <utility> |
8 | 9 |
9 #include "base/callback.h" | 10 #include "base/callback.h" |
10 #include "base/callback_helpers.h" | 11 #include "base/callback_helpers.h" |
11 #include "base/single_thread_task_runner.h" | 12 #include "base/single_thread_task_runner.h" |
12 #include "base/thread_task_runner_handle.h" | 13 #include "base/thread_task_runner_handle.h" |
13 #include "jingle/glue/utils.h" | 14 #include "jingle/glue/utils.h" |
14 #include "net/base/net_errors.h" | 15 #include "net/base/net_errors.h" |
15 #include "remoting/protocol/channel_socket_adapter.h" | 16 #include "remoting/protocol/channel_socket_adapter.h" |
16 #include "remoting/protocol/transport_context.h" | 17 #include "remoting/protocol/transport_context.h" |
17 #include "third_party/webrtc/base/network.h" | 18 #include "third_party/webrtc/base/network.h" |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 | 279 |
279 // Restart ICE by resetting ICE password. | 280 // Restart ICE by resetting ICE password. |
280 std::string ice_password = rtc::CreateRandomString(cricket::ICE_PWD_LENGTH); | 281 std::string ice_password = rtc::CreateRandomString(cricket::ICE_PWD_LENGTH); |
281 delegate_->OnTransportIceCredentials(this, ice_username_fragment_, | 282 delegate_->OnTransportIceCredentials(this, ice_username_fragment_, |
282 ice_password); | 283 ice_password); |
283 channel_->SetIceCredentials(ice_username_fragment_, ice_password); | 284 channel_->SetIceCredentials(ice_username_fragment_, ice_password); |
284 } | 285 } |
285 | 286 |
286 } // namespace protocol | 287 } // namespace protocol |
287 } // namespace remoting | 288 } // namespace remoting |
OLD | NEW |