Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(253)

Side by Side Diff: remoting/protocol/libjingle_transport_factory.cc

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: fixcaller Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « remoting/protocol/jingle_session.h ('k') | remoting/protocol/monitored_video_stub.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « remoting/protocol/jingle_session.h ('k') | remoting/protocol/monitored_video_stub.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698