| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/libjingle_transport_factory.h" | 5 #include "remoting/protocol/libjingle_transport_factory.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/callback_helpers.h" | 10 #include "base/callback_helpers.h" |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 Transport::ConnectedCallback callback_; | 103 Transport::ConnectedCallback callback_; |
| 104 std::string ice_username_fragment_; | 104 std::string ice_username_fragment_; |
| 105 | 105 |
| 106 bool can_start_; | 106 bool can_start_; |
| 107 | 107 |
| 108 std::string remote_ice_username_fragment_; | 108 std::string remote_ice_username_fragment_; |
| 109 std::string remote_ice_password_; | 109 std::string remote_ice_password_; |
| 110 std::list<cricket::Candidate> pending_candidates_; | 110 std::list<cricket::Candidate> pending_candidates_; |
| 111 scoped_ptr<cricket::P2PTransportChannel> channel_; | 111 scoped_ptr<cricket::P2PTransportChannel> channel_; |
| 112 int connect_attempts_left_; | 112 int connect_attempts_left_; |
| 113 base::RepeatingTimer<LibjingleTransport> reconnect_timer_; | 113 base::RepeatingTimer reconnect_timer_; |
| 114 | 114 |
| 115 base::WeakPtrFactory<LibjingleTransport> weak_factory_; | 115 base::WeakPtrFactory<LibjingleTransport> weak_factory_; |
| 116 | 116 |
| 117 DISALLOW_COPY_AND_ASSIGN(LibjingleTransport); | 117 DISALLOW_COPY_AND_ASSIGN(LibjingleTransport); |
| 118 }; | 118 }; |
| 119 | 119 |
| 120 LibjingleTransport::LibjingleTransport(cricket::PortAllocator* port_allocator, | 120 LibjingleTransport::LibjingleTransport(cricket::PortAllocator* port_allocator, |
| 121 const NetworkSettings& network_settings, | 121 const NetworkSettings& network_settings, |
| 122 TransportRole role) | 122 TransportRole role) |
| 123 : port_allocator_(port_allocator), | 123 : port_allocator_(port_allocator), |
| (...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 438 last_jingle_info_update_time_ = base::TimeTicks::Now(); | 438 last_jingle_info_update_time_ = base::TimeTicks::Now(); |
| 439 | 439 |
| 440 while (!on_jingle_info_callbacks_.empty()) { | 440 while (!on_jingle_info_callbacks_.empty()) { |
| 441 on_jingle_info_callbacks_.begin()->Run(); | 441 on_jingle_info_callbacks_.begin()->Run(); |
| 442 on_jingle_info_callbacks_.pop_front(); | 442 on_jingle_info_callbacks_.pop_front(); |
| 443 } | 443 } |
| 444 } | 444 } |
| 445 | 445 |
| 446 } // namespace protocol | 446 } // namespace protocol |
| 447 } // namespace remoting | 447 } // namespace remoting |
| OLD | NEW |