Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1066)

Side by Side Diff: net/proxy/proxy_resolver_winhttp.cc

Issue 8373014: Add new text for indicating we are resolving hosts during proxy resolution. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Address eroman's nits. Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/proxy/proxy_resolver_winhttp.h ('k') | net/proxy/proxy_service.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « net/proxy/proxy_resolver_winhttp.h ('k') | net/proxy/proxy_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698