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

Unified Diff: net/proxy/proxy_list.h

Issue 10310179: Track sources of proxy settings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add bits to ProxyInfo for communicating proxy bypass. Created 8 years, 6 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: net/proxy/proxy_list.h
diff --git a/net/proxy/proxy_list.h b/net/proxy/proxy_list.h
index a377553c106c4346bb4351d0742c5d74f3952d2c..87e1807108b3ee04938995ad1b44548b647e8901 100644
--- a/net/proxy/proxy_list.h
+++ b/net/proxy/proxy_list.h
@@ -40,9 +40,15 @@ class NET_EXPORT_PRIVATE ProxyList {
// |scheme_bit_field| is a bunch of ProxyServer::Scheme bitwise ORed together.
void RemoveProxiesWithoutScheme(int scheme_bit_field);
+ // Clear the proxy list.
+ void Clear();
+
// Returns true if there is nothing left in the ProxyList.
bool IsEmpty() const;
+ // Returns the number of proxy servers in this list.
+ size_t Size() const;
eroman 2012/06/11 23:18:34 nit regarding capitalization: either call size()
asanka 2012/06/12 19:37:18 Done. Went with size().
+
// Returns the first proxy server in the list. It is only valid to call
// this if !IsEmpty().
const ProxyServer& Get() const;

Powered by Google App Engine
This is Rietveld 408576698