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

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

Issue 10854063: Clean-up inline members of nested classes (net/) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add a NET_EXPOR_PRIVATE Created 8 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « net/http/http_proxy_client_socket_pool.cc ('k') | net/proxy/proxy_config_service_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_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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 // Forwarder just exists to keep the NetworkConfigWatcherMac API out of 44 // Forwarder just exists to keep the NetworkConfigWatcherMac API out of
45 // ProxyConfigServiceMac's public API. 45 // ProxyConfigServiceMac's public API.
46 class Forwarder : public NetworkConfigWatcherMac::Delegate { 46 class Forwarder : public NetworkConfigWatcherMac::Delegate {
47 public: 47 public:
48 explicit Forwarder(ProxyConfigServiceMac* proxy_config_service) 48 explicit Forwarder(ProxyConfigServiceMac* proxy_config_service)
49 : proxy_config_service_(proxy_config_service) {} 49 : proxy_config_service_(proxy_config_service) {}
50 50
51 // NetworkConfigWatcherMac::Delegate implementation: 51 // NetworkConfigWatcherMac::Delegate implementation:
52 virtual void StartReachabilityNotifications() OVERRIDE {} 52 virtual void StartReachabilityNotifications() OVERRIDE {}
53 virtual void SetDynamicStoreNotificationKeys(SCDynamicStoreRef store) 53 virtual void SetDynamicStoreNotificationKeys(
54 OVERRIDE { 54 SCDynamicStoreRef store) OVERRIDE;
55 proxy_config_service_->SetDynamicStoreNotificationKeys(store); 55 virtual void OnNetworkConfigChange(CFArrayRef changed_keys) OVERRIDE;
56 }
57 virtual void OnNetworkConfigChange(CFArrayRef changed_keys) OVERRIDE {
58 proxy_config_service_->OnNetworkConfigChange(changed_keys);
59 }
60 56
61 private: 57 private:
62 ProxyConfigServiceMac* const proxy_config_service_; 58 ProxyConfigServiceMac* const proxy_config_service_;
63 DISALLOW_COPY_AND_ASSIGN(Forwarder); 59 DISALLOW_COPY_AND_ASSIGN(Forwarder);
64 }; 60 };
65 61
66 // Methods directly called by the NetworkConfigWatcherMac::Delegate: 62 // Methods directly called by the NetworkConfigWatcherMac::Delegate:
67 void SetDynamicStoreNotificationKeys(SCDynamicStoreRef store); 63 void SetDynamicStoreNotificationKeys(SCDynamicStoreRef store);
68 void OnNetworkConfigChange(CFArrayRef changed_keys); 64 void OnNetworkConfigChange(CFArrayRef changed_keys);
69 65
(...skipping 13 matching lines...) Expand all
83 79
84 // The thread that we expect to be operated on. 80 // The thread that we expect to be operated on.
85 const scoped_refptr<base::SingleThreadTaskRunner> io_thread_task_runner_; 81 const scoped_refptr<base::SingleThreadTaskRunner> io_thread_task_runner_;
86 82
87 DISALLOW_COPY_AND_ASSIGN(ProxyConfigServiceMac); 83 DISALLOW_COPY_AND_ASSIGN(ProxyConfigServiceMac);
88 }; 84 };
89 85
90 } // namespace net 86 } // namespace net
91 87
92 #endif // NET_PROXY_PROXY_CONFIG_SERVICE_MAC_H_ 88 #endif // NET_PROXY_PROXY_CONFIG_SERVICE_MAC_H_
OLDNEW
« no previous file with comments | « net/http/http_proxy_client_socket_pool.cc ('k') | net/proxy/proxy_config_service_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698