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

Unified Diff: net/base/network_config_watcher_mac.h

Issue 992733002: Remove //net (except for Android test stuff) and sdch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/base/network_change_notifier_win_unittest.cc ('k') | net/base/network_config_watcher_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/network_config_watcher_mac.h
diff --git a/net/base/network_config_watcher_mac.h b/net/base/network_config_watcher_mac.h
deleted file mode 100644
index 850ad8a1c1057cd8702152ecc6297e1c6cad61e0..0000000000000000000000000000000000000000
--- a/net/base/network_config_watcher_mac.h
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef NET_BASE_NETWORK_CONFIG_WATCHER_MAC_H_
-#define NET_BASE_NETWORK_CONFIG_WATCHER_MAC_H_
-
-#include <SystemConfiguration/SCDynamicStore.h>
-
-#include "base/basictypes.h"
-#include "base/mac/scoped_cftyperef.h"
-#include "base/memory/scoped_ptr.h"
-
-namespace base {
-class Thread;
-}
-
-namespace net {
-
-// Helper class for watching the Mac OS system network settings.
-class NetworkConfigWatcherMac {
- public:
- // NOTE: The lifetime of Delegate is expected to exceed the lifetime of
- // NetworkConfigWatcherMac.
- class Delegate {
- public:
- virtual ~Delegate() {}
-
- // Called to let the delegate do any setup work the must be run on the
- // notifier thread immediately after it starts.
- virtual void Init() {}
-
- // Called to start receiving notifications from the SCNetworkReachability
- // API.
- // Will be called on the notifier thread.
- virtual void StartReachabilityNotifications() = 0;
-
- // Called to register the notification keys on |store|.
- // Implementors are expected to call SCDynamicStoreSetNotificationKeys().
- // Will be called on the notifier thread.
- virtual void SetDynamicStoreNotificationKeys(SCDynamicStoreRef store) = 0;
-
- // Called when one of the notification keys has changed.
- // Will be called on the notifier thread.
- virtual void OnNetworkConfigChange(CFArrayRef changed_keys) = 0;
- };
-
- explicit NetworkConfigWatcherMac(Delegate* delegate);
- ~NetworkConfigWatcherMac();
-
- private:
- // The thread used to listen for notifications. This relays the notification
- // to the registered observers without posting back to the thread the object
- // was created on.
- scoped_ptr<base::Thread> notifier_thread_;
-
- DISALLOW_COPY_AND_ASSIGN(NetworkConfigWatcherMac);
-};
-
-} // namespace net
-
-#endif // NET_BASE_NETWORK_CONFIG_WATCHER_MAC_H_
« no previous file with comments | « net/base/network_change_notifier_win_unittest.cc ('k') | net/base/network_config_watcher_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698