| 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 CHROME_BROWSER_NET_PREF_PROXY_CONFIG_TRACKER_IMPL_H_ | 5 #ifndef CHROME_BROWSER_NET_PREF_PROXY_CONFIG_TRACKER_IMPL_H_ |
| 6 #define CHROME_BROWSER_NET_PREF_PROXY_CONFIG_TRACKER_IMPL_H_ | 6 #define CHROME_BROWSER_NET_PREF_PROXY_CONFIG_TRACKER_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/observer_list.h" | 11 #include "base/observer_list.h" |
| 12 #include "chrome/browser/api/prefs/pref_change_registrar.h" | 12 #include "base/prefs/public/pref_change_registrar.h" |
| 13 #include "chrome/browser/prefs/proxy_config_dictionary.h" | 13 #include "chrome/browser/prefs/proxy_config_dictionary.h" |
| 14 #include "content/public/browser/notification_observer.h" | 14 #include "content/public/browser/notification_observer.h" |
| 15 #include "net/proxy/proxy_config.h" | 15 #include "net/proxy/proxy_config.h" |
| 16 #include "net/proxy/proxy_config_service.h" | 16 #include "net/proxy/proxy_config_service.h" |
| 17 | 17 |
| 18 class PrefService; | 18 class PrefService; |
| 19 | 19 |
| 20 // A net::ProxyConfigService implementation that applies preference proxy | 20 // A net::ProxyConfigService implementation that applies preference proxy |
| 21 // settings (pushed from PrefProxyConfigTrackerImpl) as overrides to the proxy | 21 // settings (pushed from PrefProxyConfigTrackerImpl) as overrides to the proxy |
| 22 // configuration determined by a baseline delegate ProxyConfigService on | 22 // configuration determined by a baseline delegate ProxyConfigService on |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 | 156 |
| 157 PrefService* pref_service_; | 157 PrefService* pref_service_; |
| 158 ChromeProxyConfigService* chrome_proxy_config_service_; // Weak ptr. | 158 ChromeProxyConfigService* chrome_proxy_config_service_; // Weak ptr. |
| 159 bool update_pending_; // True if config has not been pushed to network stack. | 159 bool update_pending_; // True if config has not been pushed to network stack. |
| 160 PrefChangeRegistrar proxy_prefs_; | 160 PrefChangeRegistrar proxy_prefs_; |
| 161 | 161 |
| 162 DISALLOW_COPY_AND_ASSIGN(PrefProxyConfigTrackerImpl); | 162 DISALLOW_COPY_AND_ASSIGN(PrefProxyConfigTrackerImpl); |
| 163 }; | 163 }; |
| 164 | 164 |
| 165 #endif // CHROME_BROWSER_NET_PREF_PROXY_CONFIG_TRACKER_IMPL_H_ | 165 #endif // CHROME_BROWSER_NET_PREF_PROXY_CONFIG_TRACKER_IMPL_H_ |
| OLD | NEW |