| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "net/proxy/proxy_resolver_winhttp.h" | 5 #include "net/proxy/proxy_resolver_winhttp.h" |
| 6 | 6 |
| 7 #include <windows.h> | 7 #include <windows.h> |
| 8 #include <winhttp.h> | 8 #include <winhttp.h> |
| 9 | 9 |
| 10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 void ProxyResolverWinHttp::CancelRequest(RequestHandle request) { | 121 void ProxyResolverWinHttp::CancelRequest(RequestHandle request) { |
| 122 // This is a synchronous ProxyResolver; no possibility for async requests. | 122 // This is a synchronous ProxyResolver; no possibility for async requests. |
| 123 NOTREACHED(); | 123 NOTREACHED(); |
| 124 } | 124 } |
| 125 | 125 |
| 126 LoadState ProxyResolverWinHttp::GetLoadState(RequestHandle request) const { | 126 LoadState ProxyResolverWinHttp::GetLoadState(RequestHandle request) const { |
| 127 NOTREACHED(); | 127 NOTREACHED(); |
| 128 return LOAD_STATE_IDLE; | 128 return LOAD_STATE_IDLE; |
| 129 } | 129 } |
| 130 | 130 |
| 131 LoadState ProxyResolverWinHttp::GetLoadStateThreadSafe( | |
| 132 RequestHandle request) const { | |
| 133 return LOAD_STATE_IDLE; | |
| 134 } | |
| 135 | |
| 136 void ProxyResolverWinHttp::CancelSetPacScript() { | 131 void ProxyResolverWinHttp::CancelSetPacScript() { |
| 137 NOTREACHED(); | 132 NOTREACHED(); |
| 138 } | 133 } |
| 139 | 134 |
| 140 int ProxyResolverWinHttp::SetPacScript( | 135 int ProxyResolverWinHttp::SetPacScript( |
| 141 const scoped_refptr<ProxyResolverScriptData>& script_data, | 136 const scoped_refptr<ProxyResolverScriptData>& script_data, |
| 142 const CompletionCallback& /*callback*/) { | 137 const CompletionCallback& /*callback*/) { |
| 143 if (script_data->type() == ProxyResolverScriptData::TYPE_AUTO_DETECT) { | 138 if (script_data->type() == ProxyResolverScriptData::TYPE_AUTO_DETECT) { |
| 144 pac_url_ = GURL("http://wpad/wpad.dat"); | 139 pac_url_ = GURL("http://wpad/wpad.dat"); |
| 145 } else { | 140 } else { |
| (...skipping 23 matching lines...) Expand all Loading... |
| 169 } | 164 } |
| 170 | 165 |
| 171 void ProxyResolverWinHttp::CloseWinHttpSession() { | 166 void ProxyResolverWinHttp::CloseWinHttpSession() { |
| 172 if (session_handle_) { | 167 if (session_handle_) { |
| 173 WinHttpCloseHandle(session_handle_); | 168 WinHttpCloseHandle(session_handle_); |
| 174 session_handle_ = NULL; | 169 session_handle_ = NULL; |
| 175 } | 170 } |
| 176 } | 171 } |
| 177 | 172 |
| 178 } // namespace net | 173 } // namespace net |
| OLD | NEW |