http_auth_multi_round_parse.h 873 B

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