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

Side by Side Diff: net/http/http_auth_handler_negotiate.cc

Issue 6993015: Add unit-tests for SingleRequestHostResolver. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: oops Created 9 years, 6 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 | Annotate | Revision Log
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/http/http_auth_handler_negotiate.h" 5 #include "net/http/http_auth_handler_negotiate.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "base/stringprintf.h" 9 #include "base/stringprintf.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
11 #include "net/base/address_family.h" 11 #include "net/base/address_family.h"
12 #include "net/base/host_resolver.h" 12 #include "net/base/host_resolver.h"
13 #include "net/base/net_errors.h" 13 #include "net/base/net_errors.h"
14 #include "net/base/single_request_host_resolver.h"
14 #include "net/http/http_auth_filter.h" 15 #include "net/http/http_auth_filter.h"
15 #include "net/http/url_security_manager.h" 16 #include "net/http/url_security_manager.h"
16 17
17 namespace net { 18 namespace net {
18 19
19 HttpAuthHandlerNegotiate::Factory::Factory() 20 HttpAuthHandlerNegotiate::Factory::Factory()
20 : disable_cname_lookup_(false), 21 : disable_cname_lookup_(false),
21 use_port_(false), 22 use_port_(false),
22 #if defined(OS_WIN) 23 #if defined(OS_WIN)
23 max_token_length_(0), 24 max_token_length_(0),
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 bool HttpAuthHandlerNegotiate::CanDelegate() const { 330 bool HttpAuthHandlerNegotiate::CanDelegate() const {
330 // TODO(cbentzel): Should delegation be allowed on proxies? 331 // TODO(cbentzel): Should delegation be allowed on proxies?
331 if (target_ == HttpAuth::AUTH_PROXY) 332 if (target_ == HttpAuth::AUTH_PROXY)
332 return false; 333 return false;
333 if (!url_security_manager_) 334 if (!url_security_manager_)
334 return false; 335 return false;
335 return url_security_manager_->CanDelegate(origin_); 336 return url_security_manager_->CanDelegate(origin_);
336 } 337 }
337 338
338 } // namespace net 339 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698