1 // Copyright 2015 The Chromium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef NET_HTTP_HTTP_AUTH_MULTI_ROUND_PARSE_H_ 6 #define NET_HTTP_HTTP_AUTH_MULTI_ROUND_PARSE_H_ 7 8 #include <string> 9 10 #include "base/strings/string_piece.h" 11 #include "net/base/net_export.h" 12 #include "net/http/http_auth.h" 13 14 namespace net { 15 16 class HttpAuthChallengeTokenizer; 17 18 NET_EXPORT_PRIVATE HttpAuth::AuthorizationResult ParseFirstRoundChallenge( 19 HttpAuth::Scheme scheme, 20 HttpAuthChallengeTokenizer* challenge); 21 22 NET_EXPORT_PRIVATE HttpAuth::AuthorizationResult ParseLaterRoundChallenge( 23 HttpAuth::Scheme scheme, 24 HttpAuthChallengeTokenizer* challenge, 25 std::string* encoded_token, 26 std::string* decoded_token); 27 28 } // namespace net 29 30 #endif // NET_HTTP_HTTP_AUTH_MULTI_ROUND_PARSE_H_ 31