| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 COMPONENTS_PROXY_CONFIG_PREF_PROXY_CONFIG_TRACKER_H_ | 5 #ifndef COMPONENTS_PROXY_CONFIG_PREF_PROXY_CONFIG_TRACKER_H_ |
| 6 #define COMPONENTS_PROXY_CONFIG_PREF_PROXY_CONFIG_TRACKER_H_ | 6 #define COMPONENTS_PROXY_CONFIG_PREF_PROXY_CONFIG_TRACKER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "components/proxy_config/proxy_config_export.h" | 10 #include "components/proxy_config/proxy_config_export.h" |
| 11 | 11 |
| 12 namespace net { | 12 namespace net { |
| 13 class ProxyConfigService; | 13 class ProxyConfigService; |
| 14 } | 14 } |
| 15 | 15 |
| 16 // Interface for a class that tracks proxy preferences. The purpose of the | 16 // Interface for a class that tracks proxy preferences. The purpose of the |
| 17 // concrete class is to track changes in the Preferences, to translates the | 17 // concrete class is to track changes in the Preferences, to translates the |
| 18 // preferences to net::ProxyConfig and to push the result over to a | 18 // preferences to net::ProxyConfig and to push the result over to a |
| (...skipping 16 matching lines...) Expand all Loading... |
| 35 // Releases the PrefService passed upon construction and the |base_service| | 35 // Releases the PrefService passed upon construction and the |base_service| |
| 36 // passed to CreateTrackingProxyConfigService. This must be called on the UI | 36 // passed to CreateTrackingProxyConfigService. This must be called on the UI |
| 37 // thread. | 37 // thread. |
| 38 virtual void DetachFromPrefService() = 0; | 38 virtual void DetachFromPrefService() = 0; |
| 39 | 39 |
| 40 private: | 40 private: |
| 41 DISALLOW_COPY_AND_ASSIGN(PrefProxyConfigTracker); | 41 DISALLOW_COPY_AND_ASSIGN(PrefProxyConfigTracker); |
| 42 }; | 42 }; |
| 43 | 43 |
| 44 #endif // COMPONENTS_PROXY_CONFIG_PREF_PROXY_CONFIG_TRACKER_H_ | 44 #endif // COMPONENTS_PROXY_CONFIG_PREF_PROXY_CONFIG_TRACKER_H_ |
| OLD | NEW |