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

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

Issue 11885009: Improve performance of proxy resolver by tracing DNS dependencies. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: that's what she said Created 7 years, 11 months 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
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698