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

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

Issue 11360108: Start calculating new combined NetworkChangeNotifier signal (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Switch to default argument constructor Created 8 years 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"
11 #include "net/base/net_export.h" 11 #include "net/base/net_export.h"
12 #include "net/base/network_change_notifier.h" 12 #include "net/base/network_change_notifier.h"
13 13
14 namespace net { 14 namespace net {
15 15
16 class NET_EXPORT_PRIVATE NetworkChangeNotifierLinux 16 class NET_EXPORT_PRIVATE NetworkChangeNotifierLinux
17 : public NetworkChangeNotifier { 17 : public NetworkChangeNotifier {
18 public: 18 public:
19 static NetworkChangeNotifierLinux* Create(); 19 static NetworkChangeNotifierLinux* Create();
20 20
21 private: 21 private:
22 class Thread; 22 class Thread;
23 23
24 NetworkChangeNotifierLinux(); 24 NetworkChangeNotifierLinux();
25 virtual ~NetworkChangeNotifierLinux(); 25 virtual ~NetworkChangeNotifierLinux();
26 static NetworkChangeCalculatorParams NetworkChangeCalculatorParamsLinux();
26 27
27 // NetworkChangeNotifier: 28 // NetworkChangeNotifier:
28 virtual ConnectionType GetCurrentConnectionType() const OVERRIDE; 29 virtual ConnectionType GetCurrentConnectionType() const OVERRIDE;
29 30
30 virtual const internal::AddressTrackerLinux* 31 virtual const internal::AddressTrackerLinux*
31 GetAddressTrackerInternal() const OVERRIDE; 32 GetAddressTrackerInternal() const OVERRIDE;
32 33
33 // The thread used to listen for notifications. This relays the notification 34 // The thread used to listen for notifications. This relays the notification
34 // to the registered observers without posting back to the thread the object 35 // to the registered observers without posting back to the thread the object
35 // was created on. 36 // was created on.
36 // Also used for DnsConfigService which requires TYPE_IO message loop. 37 // Also used for DnsConfigService which requires TYPE_IO message loop.
37 scoped_ptr<Thread> notifier_thread_; 38 scoped_ptr<Thread> notifier_thread_;
38 39
39 DISALLOW_COPY_AND_ASSIGN(NetworkChangeNotifierLinux); 40 DISALLOW_COPY_AND_ASSIGN(NetworkChangeNotifierLinux);
40 }; 41 };
41 42
42 } // namespace net 43 } // namespace net
43 44
44 #endif // NET_BASE_NETWORK_CHANGE_NOTIFIER_LINUX_H_ 45 #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