Lines Matching refs:ProxyConfig
24 const char* SourceToString(ProxyConfigServiceImpl::ProxyConfig::Source source) {
26 case ProxyConfigServiceImpl::ProxyConfig::SOURCE_NONE:
28 case ProxyConfigServiceImpl::ProxyConfig::SOURCE_POLICY:
30 case ProxyConfigServiceImpl::ProxyConfig::SOURCE_OWNER:
38 const ProxyConfigServiceImpl::ProxyConfig::ManualProxy& proxy) {
46 const ProxyConfigServiceImpl::ProxyConfig& config) {
48 case ProxyConfigServiceImpl::ProxyConfig::MODE_DIRECT:
52 case ProxyConfigServiceImpl::ProxyConfig::MODE_AUTO_DETECT:
56 case ProxyConfigServiceImpl::ProxyConfig::MODE_PAC_SCRIPT:
61 case ProxyConfigServiceImpl::ProxyConfig::MODE_SINGLE_PROXY:
64 case ProxyConfigServiceImpl::ProxyConfig::MODE_PROXY_PER_SCHEME:
74 if (config.mode == ProxyConfigServiceImpl::ProxyConfig::MODE_SINGLE_PROXY ||
76 ProxyConfigServiceImpl::ProxyConfig::MODE_PROXY_PER_SCHEME) {
93 const ProxyConfigServiceImpl::ProxyConfig& proxy_config) {
101 //---------- ProxyConfigServiceImpl::ProxyConfig::Setting methods --------------
103 bool ProxyConfigServiceImpl::ProxyConfig::Setting::CanBeWrittenByUser(
107 return user_is_owner && source != ProxyConfig::SOURCE_POLICY;
110 //----------- ProxyConfigServiceImpl::ProxyConfig: public methods --------------
112 void ProxyConfigServiceImpl::ProxyConfig::ToNetProxyConfig(
113 net::ProxyConfig* net_config) {
116 *net_config = net::ProxyConfig::CreateDirect();
119 *net_config = net::ProxyConfig::CreateAutoDetect();
122 *net_config = net::ProxyConfig::CreateFromCustomPacURL(
126 *net_config = net::ProxyConfig();
128 net::ProxyConfig::ProxyRules::TYPE_SINGLE_PROXY;
133 *net_config = net::ProxyConfig();
135 net::ProxyConfig::ProxyRules::TYPE_PROXY_PER_SCHEME;
148 bool ProxyConfigServiceImpl::ProxyConfig::CanBeWrittenByUser(
175 ProxyConfigServiceImpl::ProxyConfig::ManualProxy*
176 ProxyConfigServiceImpl::ProxyConfig::MapSchemeToProxy(
190 bool ProxyConfigServiceImpl::ProxyConfig::Serialize(std::string* output) {
233 bool ProxyConfigServiceImpl::ProxyConfig::Deserialize(
249 net::ProxyConfig::ProxyRules rules;
252 case net::ProxyConfig::ProxyRules::TYPE_NO_RULES:
254 case net::ProxyConfig::ProxyRules::TYPE_SINGLE_PROXY:
260 case net::ProxyConfig::ProxyRules::TYPE_PROXY_PER_SCHEME:
290 std::string ProxyConfigServiceImpl::ProxyConfig::ToString() const {
294 //----------- ProxyConfigServiceImpl::ProxyConfig: private methods -------------
297 void ProxyConfigServiceImpl::ProxyConfig::EncodeAndAppendProxyServer(
340 ProxyConfigServiceImpl::ProxyConfigServiceImpl(const ProxyConfig& init_config)
353 void ProxyConfigServiceImpl::UIGetProxyConfig(ProxyConfig* config) {
363 reference_config_.mode = ProxyConfig::MODE_DIRECT;
371 reference_config_.mode = ProxyConfig::MODE_AUTO_DETECT;
379 reference_config_.mode = ProxyConfig::MODE_PAC_SCRIPT;
389 reference_config_.mode = ProxyConfig::MODE_SINGLE_PROXY;
399 ProxyConfig::ManualProxy* proxy = reference_config_.MapSchemeToProxy(scheme);
404 reference_config_.mode = ProxyConfig::MODE_PROXY_PER_SCHEME;
414 DCHECK(reference_config_.mode == ProxyConfig::MODE_SINGLE_PROXY ||
415 reference_config_.mode == ProxyConfig::MODE_PROXY_PER_SCHEME);
416 if (reference_config_.mode != ProxyConfig::MODE_SINGLE_PROXY &&
417 reference_config_.mode != ProxyConfig::MODE_PROXY_PER_SCHEME) {
442 ProxyConfigServiceImpl::IOGetProxyConfig(net::ProxyConfig* net_config) {
513 const ProxyConfig& new_config,
532 net::ProxyConfig net_config;