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: jingle/notifier/communicator/login.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, 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 | « google_apis/gcm/engine/connection_handler_impl.h ('k') | media/audio/agc_audio_stream.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 #ifndef JINGLE_NOTIFIER_COMMUNICATOR_LOGIN_H_ 5 #ifndef JINGLE_NOTIFIER_COMMUNICATOR_LOGIN_H_
6 #define JINGLE_NOTIFIER_COMMUNICATOR_LOGIN_H_ 6 #define JINGLE_NOTIFIER_COMMUNICATOR_LOGIN_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 // The actual function (called by |reconnect_timer_|) that does the 114 // The actual function (called by |reconnect_timer_|) that does the
115 // reconnection. 115 // reconnection.
116 void DoReconnect(); 116 void DoReconnect();
117 117
118 Delegate* const delegate_; 118 Delegate* const delegate_;
119 LoginSettings login_settings_; 119 LoginSettings login_settings_;
120 scoped_ptr<SingleLoginAttempt> single_attempt_; 120 scoped_ptr<SingleLoginAttempt> single_attempt_;
121 121
122 // reconnection state. 122 // reconnection state.
123 base::TimeDelta reconnect_interval_; 123 base::TimeDelta reconnect_interval_;
124 base::OneShotTimer<Login> reconnect_timer_; 124 base::OneShotTimer reconnect_timer_;
125 125
126 DISALLOW_COPY_AND_ASSIGN(Login); 126 DISALLOW_COPY_AND_ASSIGN(Login);
127 }; 127 };
128 128
129 } // namespace notifier 129 } // namespace notifier
130 130
131 #endif // JINGLE_NOTIFIER_COMMUNICATOR_LOGIN_H_ 131 #endif // JINGLE_NOTIFIER_COMMUNICATOR_LOGIN_H_
OLDNEW
« no previous file with comments | « google_apis/gcm/engine/connection_handler_impl.h ('k') | media/audio/agc_audio_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698