OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_LINUX_H_ | 5 #ifndef NET_BASE_NETWORK_CHANGE_NOTIFIER_LINUX_H_ |
6 #define NET_BASE_NETWORK_CHANGE_NOTIFIER_LINUX_H_ | 6 #define NET_BASE_NETWORK_CHANGE_NOTIFIER_LINUX_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 | 31 |
32 explicit NetworkChangeNotifierLinux(dbus::Bus* bus); | 32 explicit NetworkChangeNotifierLinux(dbus::Bus* bus); |
33 virtual ~NetworkChangeNotifierLinux(); | 33 virtual ~NetworkChangeNotifierLinux(); |
34 | 34 |
35 // NetworkChangeNotifier: | 35 // NetworkChangeNotifier: |
36 virtual bool IsCurrentlyOffline() const OVERRIDE; | 36 virtual bool IsCurrentlyOffline() const OVERRIDE; |
37 | 37 |
38 // The thread used to listen for notifications. This relays the notification | 38 // The thread used to listen for notifications. This relays the notification |
39 // to the registered observers without posting back to the thread the object | 39 // to the registered observers without posting back to the thread the object |
40 // was created on. | 40 // was created on. |
| 41 // Also used for DnsConfigWatcher which requires TYPE_IO message loop. |
41 scoped_ptr<Thread> notifier_thread_; | 42 scoped_ptr<Thread> notifier_thread_; |
42 | 43 |
43 DISALLOW_COPY_AND_ASSIGN(NetworkChangeNotifierLinux); | 44 DISALLOW_COPY_AND_ASSIGN(NetworkChangeNotifierLinux); |
44 }; | 45 }; |
45 | 46 |
46 } // namespace net | 47 } // namespace net |
47 | 48 |
48 #endif // NET_BASE_NETWORK_CHANGE_NOTIFIER_LINUX_H_ | 49 #endif // NET_BASE_NETWORK_CHANGE_NOTIFIER_LINUX_H_ |
OLD | NEW |