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

Side by Side Diff: remoting/host/cast_extension_session.h

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, 2 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/host/audio_capturer_win.cc ('k') | remoting/host/cast_video_capturer_adapter.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef REMOTING_HOST_CAST_EXTENSION_SESSION_H_ 5 #ifndef REMOTING_HOST_CAST_EXTENSION_SESSION_H_
6 #define REMOTING_HOST_CAST_EXTENSION_SESSION_H_ 6 #define REMOTING_HOST_CAST_EXTENSION_SESSION_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 // Interface to interact with ClientSession. 205 // Interface to interact with ClientSession.
206 ClientSessionControl* client_session_control_; 206 ClientSessionControl* client_session_control_;
207 207
208 // Interface through which messages can be sent to the client. 208 // Interface through which messages can be sent to the client.
209 protocol::ClientStub* client_stub_; 209 protocol::ClientStub* client_stub_;
210 210
211 // Used to track webrtc connection statistics. 211 // Used to track webrtc connection statistics.
212 rtc::scoped_refptr<webrtc::StatsObserver> stats_observer_; 212 rtc::scoped_refptr<webrtc::StatsObserver> stats_observer_;
213 213
214 // Used to repeatedly poll stats from the |peer_connection_|. 214 // Used to repeatedly poll stats from the |peer_connection_|.
215 base::RepeatingTimer<CastExtensionSession> stats_polling_timer_; 215 base::RepeatingTimer stats_polling_timer_;
216 216
217 // True if a PeerConnection offer from the client has been received. This 217 // True if a PeerConnection offer from the client has been received. This
218 // necessarily means that the host is not the caller in this attempted 218 // necessarily means that the host is not the caller in this attempted
219 // peer connection. 219 // peer connection.
220 bool received_offer_; 220 bool received_offer_;
221 221
222 // True if the webrtc::ScreenCapturer has been grabbed through the 222 // True if the webrtc::ScreenCapturer has been grabbed through the
223 // OnCreateVideoCapturer() callback. 223 // OnCreateVideoCapturer() callback.
224 bool has_grabbed_capturer_; 224 bool has_grabbed_capturer_;
225 225
226 // PeerConnection signaling and worker threads created from 226 // PeerConnection signaling and worker threads created from
227 // JingleThreadWrappers. Each is created by calling 227 // JingleThreadWrappers. Each is created by calling
228 // jingle_glue::EnsureForCurrentMessageLoop() and thus deletes itself 228 // jingle_glue::EnsureForCurrentMessageLoop() and thus deletes itself
229 // automatically when the associated MessageLoop is destroyed. 229 // automatically when the associated MessageLoop is destroyed.
230 rtc::Thread* signaling_thread_wrapper_; 230 rtc::Thread* signaling_thread_wrapper_;
231 rtc::Thread* worker_thread_wrapper_; 231 rtc::Thread* worker_thread_wrapper_;
232 232
233 // Worker thread that is wrapped to create |worker_thread_wrapper_|. 233 // Worker thread that is wrapped to create |worker_thread_wrapper_|.
234 base::Thread worker_thread_; 234 base::Thread worker_thread_;
235 235
236 DISALLOW_COPY_AND_ASSIGN(CastExtensionSession); 236 DISALLOW_COPY_AND_ASSIGN(CastExtensionSession);
237 }; 237 };
238 238
239 } // namespace remoting 239 } // namespace remoting
240 240
241 #endif // REMOTING_HOST_CAST_EXTENSION_SESSION_H_ 241 #endif // REMOTING_HOST_CAST_EXTENSION_SESSION_H_
OLDNEW
« no previous file with comments | « remoting/host/audio_capturer_win.cc ('k') | remoting/host/cast_video_capturer_adapter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698