summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/proxy_config_service_impl.h
diff options
context:
space:
mode:
authorkuan@chromium.org <kuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-16 17:57:10 +0000
committerkuan@chromium.org <kuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-16 17:57:10 +0000
commit3843213f9024e066f7107c071dc711be31f44487 (patch)
tree556b0b82b9979a3d3ee2212d8c774bb8ec6a286e /chrome/browser/chromeos/proxy_config_service_impl.h
parent25d8d88fbd6543b30a77f86790f9a0f1f6089d29 (diff)
downloadchromium_src-3843213f9024e066f7107c071dc711be31f44487.zip
chromium_src-3843213f9024e066f7107c071dc711be31f44487.tar.gz
chromium_src-3843213f9024e066f7107c071dc711be31f44487.tar.bz2
Allow proxy settings to be modified in guest session.
This also sets the design that all settings that can be modified for guest session must have their paths prefixed by "cros.session.". BUG=chromium-os:9477 TEST=sign in as guest, modify proxy settings via chrome://settings/proxy, verify chrome://net-internals/#proxy reflect the new settings. Review URL: http://codereview.chromium.org/6458019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75138 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/proxy_config_service_impl.h')
-rw-r--r--chrome/browser/chromeos/proxy_config_service_impl.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/chrome/browser/chromeos/proxy_config_service_impl.h b/chrome/browser/chromeos/proxy_config_service_impl.h
index 48643ee..44a5166 100644
--- a/chrome/browser/chromeos/proxy_config_service_impl.h
+++ b/chrome/browser/chromeos/proxy_config_service_impl.h
@@ -182,6 +182,13 @@ class ProxyConfigServiceImpl
// Called from UI thread to retrieve proxy configuration in |config|.
void UIGetProxyConfig(ProxyConfig* config);
+ // Called from UI thread to set flag to persist settings to device.
+ // Subsequent UISet* methods will use this flag, until UI calls it again with
+ // a different flag.
+ void UISetPersistToDevice(bool persist) {
+ persist_to_device_ = persist;
+ }
+
// Called from UI thread to update proxy configuration for different modes.
// Returns true if config is set properly and config service has proceeded to
// start activating it on network stack and persisting it to device.
@@ -239,6 +246,9 @@ class ProxyConfigServiceImpl
// True if config has been fetched from device or initialized properly.
bool has_config_;
+ // True if settings are to be persisted to device.
+ bool persist_to_device_;
+
// True if there's a pending operation to store proxy setting to device.
bool persist_to_device_pending_;