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

Side by Side Diff: net/http/http_auth_challenge_tokenizer.h

Issue 1131023004: clang/win: Fix style plugin warnings in debug builds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 7 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 unified diff | Download patch
« no previous file with comments | « cc/resources/tiling_set_raster_queue_all.h ('k') | net/http/http_auth_challenge_tokenizer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_HTTP_HTTP_AUTH_CHALLENGE_TOKENIZER_ 5 #ifndef NET_HTTP_HTTP_AUTH_CHALLENGE_TOKENIZER_
6 #define NET_HTTP_HTTP_AUTH_CHALLENGE_TOKENIZER_ 6 #define NET_HTTP_HTTP_AUTH_CHALLENGE_TOKENIZER_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "net/base/net_export.h" 10 #include "net/base/net_export.h"
11 #include "net/http/http_util.h" 11 #include "net/http/http_util.h"
12 12
13 namespace net { 13 namespace net {
14 14
15 // Breaks up a challenge string into the the auth scheme and parameter list, 15 // Breaks up a challenge string into the the auth scheme and parameter list,
16 // according to RFC 2617 Sec 1.2: 16 // according to RFC 2617 Sec 1.2:
17 // challenge = auth-scheme 1*SP 1#auth-param 17 // challenge = auth-scheme 1*SP 1#auth-param
18 // 18 //
19 // Depending on the challenge scheme, it may be appropriate to interpret the 19 // Depending on the challenge scheme, it may be appropriate to interpret the
20 // parameters as either a base-64 encoded string or a comma-delimited list 20 // parameters as either a base-64 encoded string or a comma-delimited list
21 // of name-value pairs. param_pairs() and base64_param() methods are provided 21 // of name-value pairs. param_pairs() and base64_param() methods are provided
22 // to support either usage. 22 // to support either usage.
23 class NET_EXPORT_PRIVATE HttpAuthChallengeTokenizer { 23 class NET_EXPORT_PRIVATE HttpAuthChallengeTokenizer {
24 public: 24 public:
25 HttpAuthChallengeTokenizer(std::string::const_iterator begin, 25 HttpAuthChallengeTokenizer(std::string::const_iterator begin,
26 std::string::const_iterator end); 26 std::string::const_iterator end);
27 ~HttpAuthChallengeTokenizer();
27 28
28 // Get the original text. 29 // Get the original text.
29 std::string challenge_text() const { 30 std::string challenge_text() const {
30 return std::string(begin_, end_); 31 return std::string(begin_, end_);
31 } 32 }
32 33
33 // Get the auth scheme of the challenge. 34 // Get the auth scheme of the challenge.
34 std::string::const_iterator scheme_begin() const { return scheme_begin_; } 35 std::string::const_iterator scheme_begin() const { return scheme_begin_; }
35 std::string::const_iterator scheme_end() const { return scheme_end_; } 36 std::string::const_iterator scheme_end() const { return scheme_end_; }
36 std::string scheme() const { 37 std::string scheme() const {
(...skipping 15 matching lines...) Expand all
52 std::string::const_iterator scheme_begin_; 53 std::string::const_iterator scheme_begin_;
53 std::string::const_iterator scheme_end_; 54 std::string::const_iterator scheme_end_;
54 55
55 std::string::const_iterator params_begin_; 56 std::string::const_iterator params_begin_;
56 std::string::const_iterator params_end_; 57 std::string::const_iterator params_end_;
57 }; 58 };
58 59
59 } // namespace net 60 } // namespace net
60 61
61 #endif // NET_HTTP_HTTP_AUTH_CHALLENGE_TOKENIZER_ 62 #endif // NET_HTTP_HTTP_AUTH_CHALLENGE_TOKENIZER_
OLDNEW
« no previous file with comments | « cc/resources/tiling_set_raster_queue_all.h ('k') | net/http/http_auth_challenge_tokenizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698