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

Unified Diff: chrome/browser/prefs/proxy_prefs.h

Issue 8102019: redesign and reimplement proxy config service and tracker, revise proxy ui on cros (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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/prefs/proxy_prefs.h
===================================================================
--- chrome/browser/prefs/proxy_prefs.h (revision 107101)
+++ chrome/browser/prefs/proxy_prefs.h (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -36,6 +36,22 @@
kModeCount
};
+// State of proxy configuration.
+enum ConfigState {
+ // Configuration is from policy.
+ CONFIG_POLICY,
+ // Configuration is from extension.
+ CONFIG_EXTENSION,
+ // Configuration is not from policy or extension but still precedes others.
+ CONFIG_OTHER_PRECEDE,
+ // Configuration is from system.
+ CONFIG_SYSTEM,
+ // Configuration is recommended i.e there's a fallback configuration.
+ CONFIG_FALLBACK,
+ // Configuration is known to be not set.
+ CONFIG_UNSET,
+};
+
// Constants for string values used to specify the proxy mode through externally
// visible APIs, e.g. through policy or the proxy extension API.
extern const char kDirectProxyModeName[];
@@ -50,6 +66,8 @@
// Ownership of the return value is NOT passed to the caller.
const char* ProxyModeToString(ProxyMode mode);
+bool DoesPrefPrecede(ConfigState config_state);
+
} // namespace ProxyPrefs
#endif // CHROME_BROWSER_PREFS_PROXY_PREFS_H_
Property changes on: chrome/browser/prefs/proxy_prefs.h
___________________________________________________________________
Added: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698