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

Side by Side Diff: net/http/http_auth_handler.h

Issue 1105093002: Cleanup return values in http_auth (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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
« no previous file with comments | « net/http/http_auth_cache.h ('k') | no next file » | 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) 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 #ifndef NET_HTTP_HTTP_AUTH_HANDLER_H_ 5 #ifndef NET_HTTP_HTTP_AUTH_HANDLER_H_
6 #define NET_HTTP_HTTP_AUTH_HANDLER_H_ 6 #define NET_HTTP_HTTP_AUTH_HANDLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "net/base/completion_callback.h" 10 #include "net/base/completion_callback.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 HttpAuth::Scheme auth_scheme() const { 80 HttpAuth::Scheme auth_scheme() const {
81 return auth_scheme_; 81 return auth_scheme_;
82 } 82 }
83 83
84 // The realm, encoded as UTF-8. This may be empty. 84 // The realm, encoded as UTF-8. This may be empty.
85 const std::string& realm() const { 85 const std::string& realm() const {
86 return realm_; 86 return realm_;
87 } 87 }
88 88
89 // The challenge which was issued when creating the handler. 89 // The challenge which was issued when creating the handler.
90 const std::string challenge() const { 90 const std::string& challenge() const { return auth_challenge_; }
91 return auth_challenge_;
92 }
93 91
94 // Numeric rank based on the challenge's security level. Higher 92 // Numeric rank based on the challenge's security level. Higher
95 // numbers are better. Used by HttpAuth::ChooseBestChallenge(). 93 // numbers are better. Used by HttpAuth::ChooseBestChallenge().
96 int score() const { 94 int score() const {
97 return score_; 95 return score_;
98 } 96 }
99 97
100 HttpAuth::Target target() const { 98 HttpAuth::Target target() const {
101 return target_; 99 return target_;
102 } 100 }
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 private: 188 private:
191 void OnGenerateAuthTokenComplete(int rv); 189 void OnGenerateAuthTokenComplete(int rv);
192 void FinishGenerateAuthToken(); 190 void FinishGenerateAuthToken();
193 191
194 CompletionCallback callback_; 192 CompletionCallback callback_;
195 }; 193 };
196 194
197 } // namespace net 195 } // namespace net
198 196
199 #endif // NET_HTTP_HTTP_AUTH_HANDLER_H_ 197 #endif // NET_HTTP_HTTP_AUTH_HANDLER_H_
OLDNEW
« no previous file with comments | « net/http/http_auth_cache.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698