summaryrefslogtreecommitdiffstats
path: root/net/proxy/proxy_info.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/proxy/proxy_info.cc')
-rw-r--r--net/proxy/proxy_info.cc31
1 files changed, 31 insertions, 0 deletions
diff --git a/net/proxy/proxy_info.cc b/net/proxy/proxy_info.cc
new file mode 100644
index 0000000..c1ef588
--- /dev/null
+++ b/net/proxy/proxy_info.cc
@@ -0,0 +1,31 @@
+// Copyright (c) 2006-2008 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.
+
+#include "net/proxy/proxy_info.h"
+
+namespace net {
+
+ProxyInfo::ProxyInfo()
+ : config_id_(ProxyConfig::INVALID_ID),
+ config_was_tried_(false) {
+}
+
+void ProxyInfo::Use(const ProxyInfo& other) {
+ proxy_list_ = other.proxy_list_;
+}
+
+void ProxyInfo::UseDirect() {
+ proxy_list_.Set(std::string());
+}
+
+void ProxyInfo::UseNamedProxy(const std::string& proxy_uri_list) {
+ proxy_list_.Set(proxy_uri_list);
+}
+
+std::string ProxyInfo::ToPacString() {
+ return proxy_list_.ToPacString();
+}
+
+} // namespace net
+