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 #ifndef CHROME_BROWSER_SYNC_NOTIFIER_BASE_NETWORK_STATUS_DETECTOR_TASK_H_ | 5 #ifndef CHROME_COMMON_NET_NOTIFIER_BASE_NETWORK_STATUS_DETECTOR_TASK_H_ |
6 #define CHROME_BROWSER_SYNC_NOTIFIER_BASE_NETWORK_STATUS_DETECTOR_TASK_H_ | 6 #define CHROME_COMMON_NET_NOTIFIER_BASE_NETWORK_STATUS_DETECTOR_TASK_H_ |
7 | 7 |
8 #include "chrome/browser/sync/notifier/base/time.h" | 8 #include "chrome/common/net/notifier/base/time.h" |
9 #include "talk/base/sigslot.h" | 9 #include "talk/base/sigslot.h" |
10 #include "talk/base/task.h" | 10 #include "talk/base/task.h" |
11 | 11 |
12 namespace notifier { | 12 namespace notifier { |
13 | 13 |
14 class AsyncNetworkAlive; | 14 class AsyncNetworkAlive; |
15 | 15 |
16 // Detects the current network state and any changes to that. | 16 // Detects the current network state and any changes to that. |
17 class NetworkStatusDetectorTask : public talk_base::Task, | 17 class NetworkStatusDetectorTask : public talk_base::Task, |
18 public sigslot::has_slots<> { | 18 public sigslot::has_slots<> { |
(...skipping 29 matching lines...) Expand all Loading... |
48 | 48 |
49 private: | 49 private: |
50 bool initial_detection_done_; | 50 bool initial_detection_done_; |
51 bool is_alive_; | 51 bool is_alive_; |
52 | 52 |
53 DISALLOW_COPY_AND_ASSIGN(NetworkStatusDetectorTask); | 53 DISALLOW_COPY_AND_ASSIGN(NetworkStatusDetectorTask); |
54 }; | 54 }; |
55 | 55 |
56 } // namespace notifier | 56 } // namespace notifier |
57 | 57 |
58 #endif // CHROME_BROWSER_SYNC_NOTIFIER_BASE_NETWORK_STATUS_DETECTOR_TASK_H_ | 58 #endif // CHROME_COMMON_NET_NOTIFIER_BASE_NETWORK_STATUS_DETECTOR_TASK_H_ |
OLD | NEW |