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

Unified Diff: net/http/http_auth_challenge_tokenizer.h

Issue 992733002: Remove //net (except for Android test stuff) and sdch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/http/http_auth_cache_unittest.cc ('k') | net/http/http_auth_challenge_tokenizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_auth_challenge_tokenizer.h
diff --git a/net/http/http_auth_challenge_tokenizer.h b/net/http/http_auth_challenge_tokenizer.h
deleted file mode 100644
index a73f19205b6a9d37511123f3edfc6b4aae0fb14b..0000000000000000000000000000000000000000
--- a/net/http/http_auth_challenge_tokenizer.h
+++ /dev/null
@@ -1,61 +0,0 @@
-// Copyright 2014 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_CHALLENGE_TOKENIZER_
-#define NET_HTTP_HTTP_AUTH_CHALLENGE_TOKENIZER_
-
-#include <string>
-
-#include "net/base/net_export.h"
-#include "net/http/http_util.h"
-
-namespace net {
-
-// Breaks up a challenge string into the the auth scheme and parameter list,
-// according to RFC 2617 Sec 1.2:
-// challenge = auth-scheme 1*SP 1#auth-param
-//
-// Depending on the challenge scheme, it may be appropriate to interpret the
-// parameters as either a base-64 encoded string or a comma-delimited list
-// of name-value pairs. param_pairs() and base64_param() methods are provided
-// to support either usage.
-class NET_EXPORT_PRIVATE HttpAuthChallengeTokenizer {
- public:
- HttpAuthChallengeTokenizer(std::string::const_iterator begin,
- std::string::const_iterator end);
-
- // Get the original text.
- std::string challenge_text() const {
- return std::string(begin_, end_);
- }
-
- // Get the auth scheme of the challenge.
- std::string::const_iterator scheme_begin() const { return scheme_begin_; }
- std::string::const_iterator scheme_end() const { return scheme_end_; }
- std::string scheme() const {
- return std::string(scheme_begin_, scheme_end_);
- }
-
- std::string::const_iterator params_begin() const { return params_begin_; }
- std::string::const_iterator params_end() const { return params_end_; }
- HttpUtil::NameValuePairsIterator param_pairs() const;
- std::string base64_param() const;
-
- private:
- void Init(std::string::const_iterator begin,
- std::string::const_iterator end);
-
- std::string::const_iterator begin_;
- std::string::const_iterator end_;
-
- std::string::const_iterator scheme_begin_;
- std::string::const_iterator scheme_end_;
-
- std::string::const_iterator params_begin_;
- std::string::const_iterator params_end_;
-};
-
-} // namespace net
-
-#endif // NET_HTTP_HTTP_AUTH_CHALLENGE_TOKENIZER_
« no previous file with comments | « net/http/http_auth_cache_unittest.cc ('k') | net/http/http_auth_challenge_tokenizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698