| OLD | NEW |
| 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_PROXY_PROXY_CONFIG_SERVICE_MAC_H_ | 5 #ifndef NET_PROXY_PROXY_CONFIG_SERVICE_MAC_H_ |
| 6 #define NET_PROXY_PROXY_CONFIG_SERVICE_MAC_H_ | 6 #define NET_PROXY_PROXY_CONFIG_SERVICE_MAC_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/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 // Methods directly called by the NetworkConfigWatcherMac::Delegate: | 58 // Methods directly called by the NetworkConfigWatcherMac::Delegate: |
| 59 void SetDynamicStoreNotificationKeys(SCDynamicStoreRef store); | 59 void SetDynamicStoreNotificationKeys(SCDynamicStoreRef store); |
| 60 void OnNetworkConfigChange(CFArrayRef changed_keys); | 60 void OnNetworkConfigChange(CFArrayRef changed_keys); |
| 61 | 61 |
| 62 // Called when the proxy configuration has changed, to notify the observers. | 62 // Called when the proxy configuration has changed, to notify the observers. |
| 63 void OnProxyConfigChanged(const ProxyConfig& new_config); | 63 void OnProxyConfigChanged(const ProxyConfig& new_config); |
| 64 | 64 |
| 65 Forwarder forwarder_; | 65 Forwarder forwarder_; |
| 66 scoped_ptr<const NetworkConfigWatcherMac> config_watcher_; | 66 scoped_ptr<const NetworkConfigWatcherMac> config_watcher_; |
| 67 | 67 |
| 68 ObserverList<Observer> observers_; | 68 base::ObserverList<Observer> observers_; |
| 69 | 69 |
| 70 // Holds the last system proxy settings that we fetched. | 70 // Holds the last system proxy settings that we fetched. |
| 71 bool has_fetched_config_; | 71 bool has_fetched_config_; |
| 72 ProxyConfig last_config_fetched_; | 72 ProxyConfig last_config_fetched_; |
| 73 | 73 |
| 74 scoped_refptr<Helper> helper_; | 74 scoped_refptr<Helper> helper_; |
| 75 | 75 |
| 76 // The thread that we expect to be operated on. | 76 // The thread that we expect to be operated on. |
| 77 const scoped_refptr<base::SingleThreadTaskRunner> io_thread_task_runner_; | 77 const scoped_refptr<base::SingleThreadTaskRunner> io_thread_task_runner_; |
| 78 | 78 |
| 79 DISALLOW_COPY_AND_ASSIGN(ProxyConfigServiceMac); | 79 DISALLOW_COPY_AND_ASSIGN(ProxyConfigServiceMac); |
| 80 }; | 80 }; |
| 81 | 81 |
| 82 } // namespace net | 82 } // namespace net |
| 83 | 83 |
| 84 #endif // NET_PROXY_PROXY_CONFIG_SERVICE_MAC_H_ | 84 #endif // NET_PROXY_PROXY_CONFIG_SERVICE_MAC_H_ |
| OLD | NEW |