Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(970)

Unified Diff: chrome/browser/chromeos/proxy_config_service_impl.h

Issue 6597070: Allow ProxyConfigService to report "no configuration set" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Eric's comments. Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/proxy_config_service_impl.h
diff --git a/chrome/browser/chromeos/proxy_config_service_impl.h b/chrome/browser/chromeos/proxy_config_service_impl.h
index 64f198ceb1ee09e24b6aa321f32b8ad676d50086..bd1cbb662c97a838025c036e400259a312dd2506 100644
--- a/chrome/browser/chromeos/proxy_config_service_impl.h
+++ b/chrome/browser/chromeos/proxy_config_service_impl.h
@@ -177,7 +177,8 @@ class ProxyConfigServiceImpl
void AddObserver(net::ProxyConfigService::Observer* observer);
void RemoveObserver(net::ProxyConfigService::Observer* observer);
// Called from GetLatestProxyConfig.
- bool IOGetProxyConfig(net::ProxyConfig* config);
+ net::ProxyConfigService::ConfigAvailability IOGetProxyConfig(
+ net::ProxyConfig* config);
// Called from UI thread to retrieve proxy configuration in |config|.
void UIGetProxyConfig(ProxyConfig* config);
@@ -215,11 +216,6 @@ class ProxyConfigServiceImpl
private:
friend class base::RefCountedThreadSafe<ProxyConfigServiceImpl>;
- // Init proxy to default config, i.e. AutoDetect.
- // If |post_to_io_thread| is true, a task will be posted to IO thread to
- // update |cached_config|.
- void InitConfigToDefault(bool post_to_io_thread);
-
// Persists proxy config to device.
void PersistConfigToDevice();
@@ -228,7 +224,9 @@ class ProxyConfigServiceImpl
void OnUISetProxyConfig(bool update_to_device);
// Posted from UI thread to IO thread to carry the new config information.
- void IOSetProxyConfig(const ProxyConfig& new_config);
+ void IOSetProxyConfig(
+ const ProxyConfig& new_config,
+ net::ProxyConfigService::ConfigAvailability new_availability);
// Checks that method is called on BrowserThread::IO thread.
void CheckCurrentlyOnIOThread();
@@ -243,8 +241,8 @@ class ProxyConfigServiceImpl
// method until the class's ref_count is at least one).
bool can_post_task_;
- // True if config has been fetched from device or initialized properly.
- bool has_config_;
+ // Availability status of the configuration.
+ net::ProxyConfigService::ConfigAvailability config_availability_;
// True if settings are to be persisted to device.
bool persist_to_device_;
« no previous file with comments | « chrome/browser/chromeos/proxy_config_service.h ('k') | chrome/browser/chromeos/proxy_config_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698