Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(322)

Side by Side Diff: net/base/network_change_notifier_linux.h

Issue 10689015: [net] Adds AddressTrackerLinux which keeps track of interface addresses using rtnetlink. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added NET_EXPORT_PRIVATE for tests. Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/base/network_change_notifier.cc ('k') | net/base/network_change_notifier_linux.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_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 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 16 matching lines...) Expand all
27 27
28 private: 28 private:
29 class Thread; 29 class Thread;
30 30
31 explicit NetworkChangeNotifierLinux(dbus::Bus* bus); 31 explicit NetworkChangeNotifierLinux(dbus::Bus* bus);
32 virtual ~NetworkChangeNotifierLinux(); 32 virtual ~NetworkChangeNotifierLinux();
33 33
34 // NetworkChangeNotifier: 34 // NetworkChangeNotifier:
35 virtual ConnectionType GetCurrentConnectionType() const OVERRIDE; 35 virtual ConnectionType GetCurrentConnectionType() const OVERRIDE;
36 36
37 virtual const internal::AddressTrackerLinux*
38 GetAddressTrackerInternal() const OVERRIDE;
39
37 // The thread used to listen for notifications. This relays the notification 40 // The thread used to listen for notifications. This relays the notification
38 // 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
39 // was created on. 42 // was created on.
40 // Also used for DnsConfigWatcher which requires TYPE_IO message loop. 43 // Also used for DnsConfigWatcher which requires TYPE_IO message loop.
41 scoped_ptr<Thread> notifier_thread_; 44 scoped_ptr<Thread> notifier_thread_;
42 45
43 DISALLOW_COPY_AND_ASSIGN(NetworkChangeNotifierLinux); 46 DISALLOW_COPY_AND_ASSIGN(NetworkChangeNotifierLinux);
44 }; 47 };
45 48
46 } // namespace net 49 } // namespace net
47 50
48 #endif // NET_BASE_NETWORK_CHANGE_NOTIFIER_LINUX_H_ 51 #endif // NET_BASE_NETWORK_CHANGE_NOTIFIER_LINUX_H_
OLDNEW
« no previous file with comments | « net/base/network_change_notifier.cc ('k') | net/base/network_change_notifier_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698