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

Unified Diff: net/proxy/proxy_info.h

Issue 851503003: Update from https://crrev.com/311076 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « net/net.gypi ('k') | net/proxy/proxy_info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/proxy/proxy_info.h
diff --git a/net/proxy/proxy_info.h b/net/proxy/proxy_info.h
index 8424c51fa2d03043ed2ecd4b4d1e601eb6548808..e1c938946749dee2a3419685e3687e9f6a9d634c 100644
--- a/net/proxy/proxy_info.h
+++ b/net/proxy/proxy_info.h
@@ -7,6 +7,7 @@
#include <string>
+#include "base/gtest_prod_util.h"
#include "base/time/time.h"
#include "net/base/net_export.h"
#include "net/base/net_log.h"
@@ -46,9 +47,13 @@ class NET_EXPORT ProxyInfo {
// Parses from the given PAC result.
void UsePacString(const std::string& pac_string);
- // Use the proxies from the given list.
+ // Uses the proxies from the given list.
void UseProxyList(const ProxyList& proxy_list);
+ // Uses the proxies from the given list, but does not otherwise reset the
+ // proxy configuration.
+ void OverrideProxyList(const ProxyList& proxy_list);
+
// Returns true if this proxy info specifies a direct connection.
bool is_direct() const {
// We don't implicitly fallback to DIRECT unless it was added to the list.
@@ -146,6 +151,7 @@ class NET_EXPORT ProxyInfo {
private:
friend class ProxyService;
+ FRIEND_TEST_ALL_PREFIXES(ProxyInfoTest, UseVsOverrideProxyList);
const ProxyRetryInfoMap& proxy_retry_info() const {
return proxy_retry_info_;
« no previous file with comments | « net/net.gypi ('k') | net/proxy/proxy_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698