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

Unified Diff: net/proxy/proxy_list.cc

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.cc
diff --git a/net/proxy/proxy_list.cc b/net/proxy/proxy_list.cc
index cdc8cc2b4a922ea4b63a7a7c6f624c0f6b4bf4c3..479c4efa829bca450f685fe9047997ac9a29b2b1 100644
--- a/net/proxy/proxy_list.cc
+++ b/net/proxy/proxy_list.cc
@@ -77,10 +77,18 @@ void ProxyList::RemoveProxiesWithoutScheme(int scheme_bit_field) {
}
}
+void ProxyList::Clear() {
+ proxies_.clear();
+}
+
bool ProxyList::IsEmpty() const {
return proxies_.empty();
}
+size_t ProxyList::Size() const {
+ return proxies_.size();
+}
+
const ProxyServer& ProxyList::Get() const {
DCHECK(!proxies_.empty());
return proxies_[0];

Powered by Google App Engine
This is Rietveld 408576698