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

Side by Side Diff: net/proxy/proxy_config_service_mac.h

Issue 1162943002: Replace more ObserverList with base::ObserverList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@observer
Patch Set: Created 5 years, 6 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/proxy/proxy_config_service_linux.h ('k') | net/proxy/proxy_service_unittest.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_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
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_
OLDNEW
« no previous file with comments | « net/proxy/proxy_config_service_linux.h ('k') | net/proxy/proxy_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698