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

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

Issue 16434016: Rewrite scoped_ptr<T>(NULL) to use the default ctor in net/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
« no previous file with comments | « net/ftp/ftp_network_transaction.cc ('k') | net/http/http_cache_transaction.cc » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
11 #include "base/strings/stringprintf.h" 11 #include "base/strings/stringprintf.h"
12 #include "base/strings/utf_string_conversions.h" 12 #include "base/strings/utf_string_conversions.h"
13 #include "net/base/address_family.h" 13 #include "net/base/address_family.h"
14 #include "net/base/net_errors.h" 14 #include "net/base/net_errors.h"
15 #include "net/dns/host_resolver.h" 15 #include "net/dns/host_resolver.h"
16 #include "net/dns/single_request_host_resolver.h" 16 #include "net/dns/single_request_host_resolver.h"
17 #include "net/http/http_auth_filter.h" 17 #include "net/http/http_auth_filter.h"
18 #include "net/http/url_security_manager.h" 18 #include "net/http/url_security_manager.h"
19 19
20 namespace net { 20 namespace net {
21 21
22 HttpAuthHandlerNegotiate::Factory::Factory() 22 HttpAuthHandlerNegotiate::Factory::Factory()
23 : disable_cname_lookup_(false), 23 : disable_cname_lookup_(false),
24 use_port_(false), 24 use_port_(false),
25 resolver_(NULL), 25 resolver_(NULL),
26 #if defined(OS_WIN) 26 #if defined(OS_WIN)
27 max_token_length_(0), 27 max_token_length_(0),
28 first_creation_(true), 28 first_creation_(true),
29 #endif 29 #endif
30 is_unsupported_(false), 30 is_unsupported_(false) {
31 auth_library_(NULL) {
32 } 31 }
33 32
34 HttpAuthHandlerNegotiate::Factory::~Factory() { 33 HttpAuthHandlerNegotiate::Factory::~Factory() {
35 } 34 }
36 35
37 void HttpAuthHandlerNegotiate::Factory::set_host_resolver( 36 void HttpAuthHandlerNegotiate::Factory::set_host_resolver(
38 HostResolver* resolver) { 37 HostResolver* resolver) {
39 resolver_ = resolver; 38 resolver_ = resolver;
40 } 39 }
41 40
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 bool HttpAuthHandlerNegotiate::CanDelegate() const { 329 bool HttpAuthHandlerNegotiate::CanDelegate() const {
331 // TODO(cbentzel): Should delegation be allowed on proxies? 330 // TODO(cbentzel): Should delegation be allowed on proxies?
332 if (target_ == HttpAuth::AUTH_PROXY) 331 if (target_ == HttpAuth::AUTH_PROXY)
333 return false; 332 return false;
334 if (!url_security_manager_) 333 if (!url_security_manager_)
335 return false; 334 return false;
336 return url_security_manager_->CanDelegate(origin_); 335 return url_security_manager_->CanDelegate(origin_);
337 } 336 }
338 337
339 } // namespace net 338 } // namespace net
OLDNEW
« no previous file with comments | « net/ftp/ftp_network_transaction.cc ('k') | net/http/http_cache_transaction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698