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

Side by Side Diff: jingle/notifier/communicator/login.cc

Issue 18156002: Use a direct include of time headers in courgette/, crypto/, dbus/, device/, google_apis/, gpu/, ip… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « jingle/notifier/communicator/login.h ('k') | jingle/notifier/communicator/login_settings.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 "jingle/notifier/communicator/login.h" 5 #include "jingle/notifier/communicator/login.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/rand_util.h" 10 #include "base/rand_util.h"
11 #include "base/time.h" 11 #include "base/time/time.h"
12 #include "net/base/host_port_pair.h" 12 #include "net/base/host_port_pair.h"
13 #include "talk/base/common.h" 13 #include "talk/base/common.h"
14 #include "talk/base/firewallsocketserver.h" 14 #include "talk/base/firewallsocketserver.h"
15 #include "talk/base/logging.h" 15 #include "talk/base/logging.h"
16 #include "talk/base/physicalsocketserver.h" 16 #include "talk/base/physicalsocketserver.h"
17 #include "talk/base/taskrunner.h" 17 #include "talk/base/taskrunner.h"
18 #include "talk/xmllite/xmlelement.h" 18 #include "talk/xmllite/xmlelement.h"
19 #include "talk/xmpp/asyncsocket.h" 19 #include "talk/xmpp/asyncsocket.h"
20 #include "talk/xmpp/prexmppauth.h" 20 #include "talk/xmpp/prexmppauth.h"
21 #include "talk/xmpp/xmppclient.h" 21 #include "talk/xmpp/xmppclient.h"
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 const base::TimeDelta kMaxReconnectInterval = 139 const base::TimeDelta kMaxReconnectInterval =
140 base::TimeDelta::FromMinutes(30); 140 base::TimeDelta::FromMinutes(30);
141 reconnect_interval_ *= 2; 141 reconnect_interval_ *= 2;
142 if (reconnect_interval_ > kMaxReconnectInterval) 142 if (reconnect_interval_ > kMaxReconnectInterval)
143 reconnect_interval_ = kMaxReconnectInterval; 143 reconnect_interval_ = kMaxReconnectInterval;
144 DVLOG(1) << "Reconnecting..."; 144 DVLOG(1) << "Reconnecting...";
145 StartConnection(); 145 StartConnection();
146 } 146 }
147 147
148 } // namespace notifier 148 } // namespace notifier
OLDNEW
« no previous file with comments | « jingle/notifier/communicator/login.h ('k') | jingle/notifier/communicator/login_settings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698