xref: /aosp_15_r20/external/cronet/net/http/http_auth_multi_round_parse.h (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
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