| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 | 117 |
| 118 FreeInfo(&info); | 118 FreeInfo(&info); |
| 119 return rv; | 119 return rv; |
| 120 } | 120 } |
| 121 | 121 |
| 122 void ProxyResolverWinHttp::CancelRequest(RequestHandle request) { | 122 void ProxyResolverWinHttp::CancelRequest(RequestHandle request) { |
| 123 // This is a synchronous ProxyResolver; no possibility for async requests. | 123 // This is a synchronous ProxyResolver; no possibility for async requests. |
| 124 NOTREACHED(); | 124 NOTREACHED(); |
| 125 } | 125 } |
| 126 | 126 |
| 127 LoadState ProxyResolverWinHttp::GetLoadState(RequestHandle request) const { |
| 128 NOTREACHED(); |
| 129 return LOAD_STATE_IDLE; |
| 130 } |
| 131 |
| 132 LoadState ProxyResolverWinHttp::GetLoadStateThreadSafe( |
| 133 RequestHandle request) const { |
| 134 return LOAD_STATE_IDLE; |
| 135 } |
| 136 |
| 127 void ProxyResolverWinHttp::CancelSetPacScript() { | 137 void ProxyResolverWinHttp::CancelSetPacScript() { |
| 128 NOTREACHED(); | 138 NOTREACHED(); |
| 129 } | 139 } |
| 130 | 140 |
| 131 int ProxyResolverWinHttp::SetPacScript( | 141 int ProxyResolverWinHttp::SetPacScript( |
| 132 const scoped_refptr<ProxyResolverScriptData>& script_data, | 142 const scoped_refptr<ProxyResolverScriptData>& script_data, |
| 133 OldCompletionCallback* /*callback*/) { | 143 OldCompletionCallback* /*callback*/) { |
| 134 if (script_data->type() == ProxyResolverScriptData::TYPE_AUTO_DETECT) { | 144 if (script_data->type() == ProxyResolverScriptData::TYPE_AUTO_DETECT) { |
| 135 pac_url_ = GURL("http://wpad/wpad.dat"); | 145 pac_url_ = GURL("http://wpad/wpad.dat"); |
| 136 } else { | 146 } else { |
| (...skipping 23 matching lines...) Expand all Loading... |
| 160 } | 170 } |
| 161 | 171 |
| 162 void ProxyResolverWinHttp::CloseWinHttpSession() { | 172 void ProxyResolverWinHttp::CloseWinHttpSession() { |
| 163 if (session_handle_) { | 173 if (session_handle_) { |
| 164 WinHttpCloseHandle(session_handle_); | 174 WinHttpCloseHandle(session_handle_); |
| 165 session_handle_ = NULL; | 175 session_handle_ = NULL; |
| 166 } | 176 } |
| 167 } | 177 } |
| 168 | 178 |
| 169 } // namespace net | 179 } // namespace net |
| OLD | NEW |