| 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 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 private: | 29 private: |
| 30 class Thread; | 30 class Thread; |
| 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 virtual bool IsCurrentlyWatchingDNS() const OVERRIDE; |
| 39 |
| 38 // The thread used to listen for notifications. This relays the notification | 40 // The thread used to listen for notifications. This relays the notification |
| 39 // to the registered observers without posting back to the thread the object | 41 // to the registered observers without posting back to the thread the object |
| 40 // was created on. | 42 // was created on. |
| 41 scoped_ptr<Thread> notifier_thread_; | 43 scoped_ptr<Thread> notifier_thread_; |
| 42 | 44 |
| 43 DISALLOW_COPY_AND_ASSIGN(NetworkChangeNotifierLinux); | 45 DISALLOW_COPY_AND_ASSIGN(NetworkChangeNotifierLinux); |
| 44 }; | 46 }; |
| 45 | 47 |
| 46 } // namespace net | 48 } // namespace net |
| 47 | 49 |
| 48 #endif // NET_BASE_NETWORK_CHANGE_NOTIFIER_LINUX_H_ | 50 #endif // NET_BASE_NETWORK_CHANGE_NOTIFIER_LINUX_H_ |
| OLD | NEW |