| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |