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

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

Issue 2351513002: net: rename BoundNetLog to NetLogWithSource (Closed)
Patch Set: one more fix, content bound_net_log_ Created 4 years, 3 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/http/http_auth_handler_basic.h" 5 #include "net/http/http_auth_handler_basic.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/base64.h" 9 #include "base/base64.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 HttpAuthHandlerBasic::Factory::~Factory() { 107 HttpAuthHandlerBasic::Factory::~Factory() {
108 } 108 }
109 109
110 int HttpAuthHandlerBasic::Factory::CreateAuthHandler( 110 int HttpAuthHandlerBasic::Factory::CreateAuthHandler(
111 HttpAuthChallengeTokenizer* challenge, 111 HttpAuthChallengeTokenizer* challenge,
112 HttpAuth::Target target, 112 HttpAuth::Target target,
113 const SSLInfo& ssl_info, 113 const SSLInfo& ssl_info,
114 const GURL& origin, 114 const GURL& origin,
115 CreateReason reason, 115 CreateReason reason,
116 int digest_nonce_count, 116 int digest_nonce_count,
117 const BoundNetLog& net_log, 117 const NetLogWithSource& net_log,
118 std::unique_ptr<HttpAuthHandler>* handler) { 118 std::unique_ptr<HttpAuthHandler>* handler) {
119 // TODO(cbentzel): Move towards model of parsing in the factory 119 // TODO(cbentzel): Move towards model of parsing in the factory
120 // method and only constructing when valid. 120 // method and only constructing when valid.
121 std::unique_ptr<HttpAuthHandler> tmp_handler(new HttpAuthHandlerBasic()); 121 std::unique_ptr<HttpAuthHandler> tmp_handler(new HttpAuthHandlerBasic());
122 if (!tmp_handler->InitFromChallenge(challenge, target, ssl_info, origin, 122 if (!tmp_handler->InitFromChallenge(challenge, target, ssl_info, origin,
123 net_log)) 123 net_log))
124 return ERR_INVALID_RESPONSE; 124 return ERR_INVALID_RESPONSE;
125 handler->swap(tmp_handler); 125 handler->swap(tmp_handler);
126 return OK; 126 return OK;
127 } 127 }
128 128
129 } // namespace net 129 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698