| 100 | } |
| 101 | |
| 102 | void ProxyManager::SetProxySettings(HWND browser_window_handle) { |
| 103 | LOG(TRACE) << "ProxyManager::SetProxySettings"; |
| 104 | if (this->proxy_type_.size() > 0 && this->proxy_type_ != WD_PROXY_TYPE_SYSTEM) { |
| 105 | if (this->use_per_process_proxy_) { |
| 106 | LOG(DEBUG) << "Setting proxy for individual IE instance."; |
| 107 | this->SetPerProcessProxySettings(browser_window_handle); |
| 108 | } else { |
| 109 | if (!this->is_proxy_modified_) { |
| 110 | LOG(DEBUG) << "Setting system proxy."; |
| 111 | this->GetCurrentProxySettings(); |
| 112 | this->SetGlobalProxySettings(); |
| 113 | } else { |
| 114 | LOG(DEBUG) << "Proxy settings already set by IE driver."; |
| 115 | } |
| 116 | } |
| 117 | this->is_proxy_modified_ = true; |
| 118 | } else { |
| 119 | LOG(DEBUG) << "Using existing system proxy settings."; |
| 120 | } |
| 121 | } |
| 122 | |
| 123 | Json::Value ProxyManager::GetProxyAsJson() { |
| 124 | LOG(TRACE) << "ProxyManager::GetProxyAsJson"; |
no test coverage detected