OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_DNS_RECORD_RDATA_H_ | 5 #ifndef NET_DNS_RECORD_RDATA_H_ |
6 #define NET_DNS_RECORD_RDATA_H_ | 6 #define NET_DNS_RECORD_RDATA_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 }; | 92 }; |
93 | 93 |
94 // AAAA Record format (http://www.ietf.org/rfc/rfc1035.txt): | 94 // AAAA Record format (http://www.ietf.org/rfc/rfc1035.txt): |
95 // 16 bytes for IP address. | 95 // 16 bytes for IP address. |
96 class NET_EXPORT_PRIVATE AAAARecordRdata : public RecordRdata { | 96 class NET_EXPORT_PRIVATE AAAARecordRdata : public RecordRdata { |
97 public: | 97 public: |
98 static const uint16 kType = dns_protocol::kTypeAAAA; | 98 static const uint16 kType = dns_protocol::kTypeAAAA; |
99 | 99 |
100 virtual ~AAAARecordRdata(); | 100 virtual ~AAAARecordRdata(); |
101 static scoped_ptr<AAAARecordRdata> Create(const base::StringPiece& data, | 101 static scoped_ptr<AAAARecordRdata> Create(const base::StringPiece& data, |
102 const DnsRecordParser& parser); | 102 const DnsRecordParser& parser); |
103 virtual bool IsEqual(const RecordRdata* other) const OVERRIDE; | 103 virtual bool IsEqual(const RecordRdata* other) const OVERRIDE; |
104 virtual uint16 Type() const OVERRIDE; | 104 virtual uint16 Type() const OVERRIDE; |
105 | 105 |
106 const IPAddressNumber& address() const { return address_; } | 106 const IPAddressNumber& address() const { return address_; } |
107 | 107 |
108 private: | 108 private: |
109 AAAARecordRdata(); | 109 AAAARecordRdata(); |
110 | 110 |
111 IPAddressNumber address_; | 111 IPAddressNumber address_; |
112 | 112 |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 bool GetBit(unsigned i) const; | 203 bool GetBit(unsigned i) const; |
204 | 204 |
205 private: | 205 private: |
206 NsecRecordRdata(); | 206 NsecRecordRdata(); |
207 | 207 |
208 std::vector<uint8> bitmap_; | 208 std::vector<uint8> bitmap_; |
209 | 209 |
210 DISALLOW_COPY_AND_ASSIGN(NsecRecordRdata); | 210 DISALLOW_COPY_AND_ASSIGN(NsecRecordRdata); |
211 }; | 211 }; |
212 | 212 |
213 | |
214 } // namespace net | 213 } // namespace net |
215 | 214 |
216 #endif // NET_DNS_RECORD_RDATA_H_ | 215 #endif // NET_DNS_RECORD_RDATA_H_ |
OLD | NEW |