OLD | NEW |
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 NET_BASE_NETWORK_CHANGE_NOTIFIER_WIN_H_ | 5 #ifndef NET_BASE_NETWORK_CHANGE_NOTIFIER_WIN_H_ |
6 #define NET_BASE_NETWORK_CHANGE_NOTIFIER_WIN_H_ | 6 #define NET_BASE_NETWORK_CHANGE_NOTIFIER_WIN_H_ |
7 | 7 |
8 #include <windows.h> | 8 #include <windows.h> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
14 #include "base/threading/non_thread_safe.h" | 14 #include "base/threading/non_thread_safe.h" |
15 #include "base/timer.h" | 15 #include "base/timer/timer.h" |
16 #include "base/win/object_watcher.h" | 16 #include "base/win/object_watcher.h" |
17 #include "net/base/net_export.h" | 17 #include "net/base/net_export.h" |
18 #include "net/base/network_change_notifier.h" | 18 #include "net/base/network_change_notifier.h" |
19 | 19 |
20 namespace net { | 20 namespace net { |
21 | 21 |
22 // NetworkChangeNotifierWin inherits from NonThreadSafe, as all its internal | 22 // NetworkChangeNotifierWin inherits from NonThreadSafe, as all its internal |
23 // notification code must be called on the thread it is created and destroyed | 23 // notification code must be called on the thread it is created and destroyed |
24 // on. All the NetworkChangeNotifier methods it implements are threadsafe. | 24 // on. All the NetworkChangeNotifier methods it implements are threadsafe. |
25 class NET_EXPORT_PRIVATE NetworkChangeNotifierWin | 25 class NET_EXPORT_PRIVATE NetworkChangeNotifierWin |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 bool last_announced_offline_; | 100 bool last_announced_offline_; |
101 // Number of times polled to check if still offline. | 101 // Number of times polled to check if still offline. |
102 int offline_polls_; | 102 int offline_polls_; |
103 | 103 |
104 DISALLOW_COPY_AND_ASSIGN(NetworkChangeNotifierWin); | 104 DISALLOW_COPY_AND_ASSIGN(NetworkChangeNotifierWin); |
105 }; | 105 }; |
106 | 106 |
107 } // namespace net | 107 } // namespace net |
108 | 108 |
109 #endif // NET_BASE_NETWORK_CHANGE_NOTIFIER_WIN_H_ | 109 #endif // NET_BASE_NETWORK_CHANGE_NOTIFIER_WIN_H_ |
OLD | NEW |