Lines Matching +full:- +full:scheme
2 // Use of this source code is governed by a BSD-style license that can be
27 LOG(ERROR) << chromeos::kNetworkProxyServiceName << " D-Bus call to " in ParseProxyInfo()
30 proxies_out->assign({brillo::http::kDirectProxy}); in ParseProxyInfo()
37 LOG(ERROR) << chromeos::kNetworkProxyServiceName << " D-Bus call to " in ParseProxyInfo()
39 << " returned an invalid D-Bus response"; in ParseProxyInfo()
40 proxies_out->assign({brillo::http::kDirectProxy}); in ParseProxyInfo()
63 std::string scheme = base::ToLowerASCII(std::string(token.begin(), space)); in ParseProxyInfo() local
65 if (scheme == "socks") { in ParseProxyInfo()
66 scheme += "4"; in ParseProxyInfo()
67 } else if (scheme == "proxy") { in ParseProxyInfo()
68 scheme = "http"; in ParseProxyInfo()
69 } else if (scheme != "https" && scheme != "socks4" && scheme != "socks5" && in ParseProxyInfo()
70 scheme != "direct") { in ParseProxyInfo()
71 LOG(ERROR) << "Invalid proxy scheme found of: " << scheme; in ParseProxyInfo()
77 if (scheme != "direct" && host_and_port.empty()) { in ParseProxyInfo()
81 proxies_out->push_back(scheme + "://" + host_and_port); in ParseProxyInfo()
84 if (proxies_out->empty() || in ParseProxyInfo()
85 proxies_out->back() != brillo::http::kDirectProxy) { in ParseProxyInfo()
86 proxies_out->push_back(brillo::http::kDirectProxy); in ParseProxyInfo()
105 bus->GetObjectProxy(chromeos::kNetworkProxyServiceName, in GetChromeProxyServers()
112 std::unique_ptr<dbus::Response> response = proxy->CallMethodAndBlock( in GetChromeProxyServers()
120 dbus::ObjectProxy* proxy = bus->GetObjectProxy( in GetChromeProxyServersAsync()
128 proxy->CallMethod(&method_call, dbus::ObjectProxy::TIMEOUT_USE_DEFAULT, in GetChromeProxyServersAsync()