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

Side by Side Diff: chrome/common/net/notifier/communicator/auto_reconnect.cc

Issue 1956001: Moved XMPP notifier library from chrome/browser/sync to chrome/common.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 7 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
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "chrome/browser/sync/notifier/communicator/auto_reconnect.h" 5 #include "chrome/common/net/notifier/communicator/auto_reconnect.h"
6 6
7 #include "chrome/browser/sync/notifier/base/network_status_detector_task.h" 7 #include "chrome/common/net/notifier/base/network_status_detector_task.h"
8 #include "chrome/browser/sync/notifier/base/time.h" 8 #include "chrome/common/net/notifier/base/time.h"
9 #include "chrome/browser/sync/notifier/base/timer.h" 9 #include "chrome/common/net/notifier/base/timer.h"
10 #include "talk/base/common.h" 10 #include "talk/base/common.h"
11 11
12 namespace notifier { 12 namespace notifier {
13 13
14 const int kResetReconnectInfoDelaySec = 2; 14 const int kResetReconnectInfoDelaySec = 2;
15 15
16 AutoReconnect::AutoReconnect(talk_base::Task* parent, 16 AutoReconnect::AutoReconnect(talk_base::Task* parent,
17 NetworkStatusDetectorTask* network_status) 17 NetworkStatusDetectorTask* network_status)
18 : reconnect_interval_ns_(0), 18 : reconnect_interval_ns_(0),
19 reconnect_timer_(NULL), 19 reconnect_timer_(NULL),
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 delayed_reset_timer_ = new Timer(parent_, 147 delayed_reset_timer_ = new Timer(parent_,
148 kResetReconnectInfoDelaySec, 148 kResetReconnectInfoDelaySec,
149 false); // Repeat. 149 false); // Repeat.
150 delayed_reset_timer_->SignalTimeout.connect(this, 150 delayed_reset_timer_->SignalTimeout.connect(this,
151 &AutoReconnect::ResetState); 151 &AutoReconnect::ResetState);
152 break; 152 break;
153 } 153 }
154 } 154 }
155 155
156 } // namespace notifier 156 } // namespace notifier
OLDNEW
« no previous file with comments | « chrome/common/net/notifier/communicator/auto_reconnect.h ('k') | chrome/common/net/notifier/communicator/connection_options.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698