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

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

Issue 899573002: Add WiFi SSID getter to NetworkChangeNotifier. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build Created 5 years, 10 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
« no previous file with comments | « net/base/network_change_notifier_linux.cc ('k') | net/base/network_change_notifier_mac.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_MAC_H_ 5 #ifndef NET_BASE_NETWORK_CHANGE_NOTIFIER_MAC_H_
6 #define NET_BASE_NETWORK_CHANGE_NOTIFIER_MAC_H_ 6 #define NET_BASE_NETWORK_CHANGE_NOTIFIER_MAC_H_
7 7
8 #include <SystemConfiguration/SystemConfiguration.h> 8 #include <SystemConfiguration/SystemConfiguration.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/mac/scoped_cftyperef.h" 12 #include "base/mac/scoped_cftyperef.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/synchronization/condition_variable.h" 14 #include "base/synchronization/condition_variable.h"
15 #include "base/synchronization/lock.h" 15 #include "base/synchronization/lock.h"
16 #include "net/base/network_change_notifier.h" 16 #include "net/base/network_change_notifier.h"
17 #include "net/base/network_config_watcher_mac.h" 17 #include "net/base/network_config_watcher_mac.h"
18 18
19 namespace net { 19 namespace net {
20 20
21 class NetworkChangeNotifierMac: public NetworkChangeNotifier { 21 class NetworkChangeNotifierMac: public NetworkChangeNotifier {
22 public: 22 public:
23 NetworkChangeNotifierMac(); 23 NetworkChangeNotifierMac();
24 ~NetworkChangeNotifierMac() override; 24 ~NetworkChangeNotifierMac() override;
25 25
26 // NetworkChangeNotifier implementation: 26 // NetworkChangeNotifier implementation:
27 ConnectionType GetCurrentConnectionType() const override; 27 ConnectionType GetCurrentConnectionType() const override;
28 std::string GetCurrentWiFiSSID() const override;
28 29
29 // Forwarder just exists to keep the NetworkConfigWatcherMac API out of 30 // Forwarder just exists to keep the NetworkConfigWatcherMac API out of
30 // NetworkChangeNotifierMac's public API. 31 // NetworkChangeNotifierMac's public API.
31 class Forwarder : public NetworkConfigWatcherMac::Delegate { 32 class Forwarder : public NetworkConfigWatcherMac::Delegate {
32 public: 33 public:
33 explicit Forwarder(NetworkChangeNotifierMac* net_config_watcher) 34 explicit Forwarder(NetworkChangeNotifierMac* net_config_watcher)
34 : net_config_watcher_(net_config_watcher) {} 35 : net_config_watcher_(net_config_watcher) {}
35 36
36 // NetworkConfigWatcherMac::Delegate implementation: 37 // NetworkConfigWatcherMac::Delegate implementation:
37 void Init() override; 38 void Init() override;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 scoped_ptr<const NetworkConfigWatcherMac> config_watcher_; 74 scoped_ptr<const NetworkConfigWatcherMac> config_watcher_;
74 75
75 scoped_ptr<DnsConfigServiceThread> dns_config_service_thread_; 76 scoped_ptr<DnsConfigServiceThread> dns_config_service_thread_;
76 77
77 DISALLOW_COPY_AND_ASSIGN(NetworkChangeNotifierMac); 78 DISALLOW_COPY_AND_ASSIGN(NetworkChangeNotifierMac);
78 }; 79 };
79 80
80 } // namespace net 81 } // namespace net
81 82
82 #endif // NET_BASE_NETWORK_CHANGE_NOTIFIER_MAC_H_ 83 #endif // NET_BASE_NETWORK_CHANGE_NOTIFIER_MAC_H_
OLDNEW
« no previous file with comments | « net/base/network_change_notifier_linux.cc ('k') | net/base/network_change_notifier_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698