| 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_CHROMEOS_PROXY_CONFIG_SERVICE_IMPL_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_PROXY_CONFIG_SERVICE_IMPL_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_PROXY_CONFIG_SERVICE_IMPL_H_ | 6 #define CHROME_BROWSER_CHROMEOS_PROXY_CONFIG_SERVICE_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 // network stack. | 41 // network stack. |
| 42 // | 42 // |
| 43 // |profile_prefs| can be NULL if this object should only track prefs from | 43 // |profile_prefs| can be NULL if this object should only track prefs from |
| 44 // local state (e.g., for system request context or sigin-in screen). | 44 // local state (e.g., for system request context or sigin-in screen). |
| 45 explicit ProxyConfigServiceImpl(PrefService* profile_prefs, | 45 explicit ProxyConfigServiceImpl(PrefService* profile_prefs, |
| 46 PrefService* local_state_prefs); | 46 PrefService* local_state_prefs); |
| 47 virtual ~ProxyConfigServiceImpl(); | 47 virtual ~ProxyConfigServiceImpl(); |
| 48 | 48 |
| 49 // PrefProxyConfigTrackerImpl implementation. | 49 // PrefProxyConfigTrackerImpl implementation. |
| 50 virtual void OnProxyConfigChanged(ProxyPrefs::ConfigState config_state, | 50 virtual void OnProxyConfigChanged(ProxyPrefs::ConfigState config_state, |
| 51 const net::ProxyConfig& config) OVERRIDE; | 51 const net::ProxyConfig& config) override; |
| 52 | 52 |
| 53 // NetworkStateHandlerObserver implementation. | 53 // NetworkStateHandlerObserver implementation. |
| 54 virtual void DefaultNetworkChanged(const NetworkState* network) OVERRIDE; | 54 virtual void DefaultNetworkChanged(const NetworkState* network) override; |
| 55 | 55 |
| 56 protected: | 56 protected: |
| 57 friend class UIProxyConfigService; | 57 friend class UIProxyConfigService; |
| 58 | 58 |
| 59 // Returns true if proxy is to be ignored for this network profile and | 59 // Returns true if proxy is to be ignored for this network profile and |
| 60 // |onc_source|, e.g. this happens if the network is shared and | 60 // |onc_source|, e.g. this happens if the network is shared and |
| 61 // use-shared-proxies is turned off. |profile_prefs| may be NULL. | 61 // use-shared-proxies is turned off. |profile_prefs| may be NULL. |
| 62 static bool IgnoreProxy(const PrefService* profile_prefs, | 62 static bool IgnoreProxy(const PrefService* profile_prefs, |
| 63 const std::string network_profile_path, | 63 const std::string network_profile_path, |
| 64 onc::ONCSource onc_source); | 64 onc::ONCSource onc_source); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 95 PrefService* local_state_prefs_; | 95 PrefService* local_state_prefs_; |
| 96 | 96 |
| 97 base::WeakPtrFactory<ProxyConfigServiceImpl> pointer_factory_; | 97 base::WeakPtrFactory<ProxyConfigServiceImpl> pointer_factory_; |
| 98 | 98 |
| 99 DISALLOW_COPY_AND_ASSIGN(ProxyConfigServiceImpl); | 99 DISALLOW_COPY_AND_ASSIGN(ProxyConfigServiceImpl); |
| 100 }; | 100 }; |
| 101 | 101 |
| 102 } // namespace chromeos | 102 } // namespace chromeos |
| 103 | 103 |
| 104 #endif // CHROME_BROWSER_CHROMEOS_PROXY_CONFIG_SERVICE_IMPL_H_ | 104 #endif // CHROME_BROWSER_CHROMEOS_PROXY_CONFIG_SERVICE_IMPL_H_ |
| OLD | NEW |