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

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

Issue 2333923004: Extracting NetLog inner classes into their own classes. (Closed)
Patch Set: Adding includes to files that were "include-hidden" by "net_log.h". Created 4 years, 2 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) 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_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
11 #include "base/strings/string_util.h" 11 #include "base/strings/string_util.h"
12 #include "base/strings/stringprintf.h" 12 #include "base/strings/stringprintf.h"
13 #include "base/values.h" 13 #include "base/values.h"
14 #include "net/base/address_family.h" 14 #include "net/base/address_family.h"
15 #include "net/base/net_errors.h" 15 #include "net/base/net_errors.h"
16 #include "net/cert/x509_util.h" 16 #include "net/cert/x509_util.h"
17 #include "net/dns/host_resolver.h" 17 #include "net/dns/host_resolver.h"
18 #include "net/http/http_auth_filter.h" 18 #include "net/http/http_auth_filter.h"
19 #include "net/http/http_auth_preferences.h" 19 #include "net/http/http_auth_preferences.h"
20 #include "net/log/net_log.h" 20 #include "net/log/net_log_capture_mode.h"
21 #include "net/log/net_log_event_type.h" 21 #include "net/log/net_log_event_type.h"
22 #include "net/log/net_log_with_source.h"
22 #include "net/ssl/ssl_info.h" 23 #include "net/ssl/ssl_info.h"
23 24
24 namespace net { 25 namespace net {
25 26
26 namespace { 27 namespace {
27 28
28 std::unique_ptr<base::Value> NetLogParameterChannelBindings( 29 std::unique_ptr<base::Value> NetLogParameterChannelBindings(
29 const std::string& channel_binding_token, 30 const std::string& channel_binding_token,
30 NetLogCaptureMode capture_mode) { 31 NetLogCaptureMode capture_mode) {
31 std::unique_ptr<base::DictionaryValue> dict; 32 std::unique_ptr<base::DictionaryValue> dict;
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 bool HttpAuthHandlerNegotiate::CanDelegate() const { 367 bool HttpAuthHandlerNegotiate::CanDelegate() const {
367 // TODO(cbentzel): Should delegation be allowed on proxies? 368 // TODO(cbentzel): Should delegation be allowed on proxies?
368 if (target_ == HttpAuth::AUTH_PROXY) 369 if (target_ == HttpAuth::AUTH_PROXY)
369 return false; 370 return false;
370 if (!http_auth_preferences_) 371 if (!http_auth_preferences_)
371 return false; 372 return false;
372 return http_auth_preferences_->CanDelegate(origin_); 373 return http_auth_preferences_->CanDelegate(origin_);
373 } 374 }
374 375
375 } // namespace net 376 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698