OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_CERT_PEM_TOKENIZER_H_ | 5 #ifndef NET_CERT_PEM_TOKENIZER_H_ |
6 #define NET_CERT_PEM_TOKENIZER_H_ | 6 #define NET_CERT_PEM_TOKENIZER_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 |
8 #include <string> | 10 #include <string> |
9 #include <vector> | 11 #include <vector> |
10 | 12 |
| 13 #include "base/macros.h" |
11 #include "base/strings/string_piece.h" | 14 #include "base/strings/string_piece.h" |
12 #include "net/base/net_export.h" | 15 #include "net/base/net_export.h" |
13 | 16 |
14 namespace net { | 17 namespace net { |
15 | 18 |
16 // PEMTokenizer is a utility class for the parsing of data encapsulated | 19 // PEMTokenizer is a utility class for the parsing of data encapsulated |
17 // using RFC 1421, Privacy Enhancement for Internet Electronic Mail. It | 20 // using RFC 1421, Privacy Enhancement for Internet Electronic Mail. It |
18 // does not implement the full specification, most notably it does not | 21 // does not implement the full specification, most notably it does not |
19 // support the Encapsulated Header Portion described in Section 4.4. | 22 // support the Encapsulated Header Portion described in Section 4.4. |
20 class NET_EXPORT_PRIVATE PEMTokenizer { | 23 class NET_EXPORT_PRIVATE PEMTokenizer { |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 | 71 |
69 // The raw (Base64-decoded) data of the last successfully decoded block. | 72 // The raw (Base64-decoded) data of the last successfully decoded block. |
70 std::string data_; | 73 std::string data_; |
71 | 74 |
72 DISALLOW_COPY_AND_ASSIGN(PEMTokenizer); | 75 DISALLOW_COPY_AND_ASSIGN(PEMTokenizer); |
73 }; | 76 }; |
74 | 77 |
75 } // namespace net | 78 } // namespace net |
76 | 79 |
77 #endif // NET_CERT_PEM_TOKENIZER_H_ | 80 #endif // NET_CERT_PEM_TOKENIZER_H_ |
OLD | NEW |