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