diff options
| author | Ben Murdoch <benm@google.com> | 2010-11-18 18:32:45 +0000 |
|---|---|---|
| committer | Ben Murdoch <benm@google.com> | 2010-11-18 18:38:07 +0000 |
| commit | 513209b27ff55e2841eac0e4120199c23acce758 (patch) | |
| tree | aeba30bb08c5f47c57003544e378a377c297eee6 /chrome/browser/chromeos/cros_settings_provider_proxy.h | |
| parent | 164f7496de0fbee436b385a79ead9e3cb81a50c1 (diff) | |
| download | external_chromium-513209b27ff55e2841eac0e4120199c23acce758.zip external_chromium-513209b27ff55e2841eac0e4120199c23acce758.tar.gz external_chromium-513209b27ff55e2841eac0e4120199c23acce758.tar.bz2 | |
Merge Chromium at r65505: Initial merge by git.
Change-Id: I31d8f1d8cd33caaf7f47ffa7350aef42d5fbdb45
Diffstat (limited to 'chrome/browser/chromeos/cros_settings_provider_proxy.h')
| -rw-r--r-- | chrome/browser/chromeos/cros_settings_provider_proxy.h | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/chrome/browser/chromeos/cros_settings_provider_proxy.h b/chrome/browser/chromeos/cros_settings_provider_proxy.h index ce6712f..1b1672b 100644 --- a/chrome/browser/chromeos/cros_settings_provider_proxy.h +++ b/chrome/browser/chromeos/cros_settings_provider_proxy.h @@ -16,17 +16,19 @@ namespace chromeos { class CrosSettingsProviderProxy : public CrosSettingsProvider { public: CrosSettingsProviderProxy(); - virtual void Set(const std::string& path, Value* in_value); + // CrosSettingsProvider implementation. virtual bool Get(const std::string& path, Value** out_value) const; virtual bool HandlesSetting(const std::string& path); private: - void AppendPortIfValid( - const ProxyConfigServiceImpl::ProxyConfig::ManualProxy& proxy, - std::string* server_uri); + // CrosSettingsProvider implementation. + virtual void DoSet(const std::string& path, Value* value); - bool FormServerUriIfValid( - const ProxyConfigServiceImpl::ProxyConfig::ManualProxy& proxy, + chromeos::ProxyConfigServiceImpl* GetConfigService() const; + + void AppendPortIfValid(const char* port_cache_key, std::string* server_uri); + + void FormServerUriIfValid(const char* host_cache_key, const std::string& port_num, std::string* server_uri); Value* CreateServerHostValue( @@ -35,6 +37,11 @@ class CrosSettingsProviderProxy : public CrosSettingsProvider { Value* CreateServerPortValue( const ProxyConfigServiceImpl::ProxyConfig::ManualProxy& proxy) const; + void SetCache(const std::string& key, const Value* value); + + // A cache to keep whatever user typed. + DictionaryValue cache_; + DISALLOW_COPY_AND_ASSIGN(CrosSettingsProviderProxy); }; |
