OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef NET_DNS_MDNS_QUERY_H__ | |
6 #define NET_DNS_MDNS_QUERY_H__ | |
7 | |
8 #include <map> | |
9 #include <string> | |
10 | |
11 #include "base/memory/ref_counted.h" | |
12 #include "base/string_piece.h" | |
13 #include "net/base/io_buffer.h" | |
14 #include "net/dns/dns_protocol.h" | |
15 #include "net/dns/record_parsed.h" | |
16 | |
17 namespace net { | |
18 | |
19 // Note: Currently this class is very similar to DnsQuery, but it is kept | |
20 // separate to allow for adding known answers to the additional answer question. | |
21 | |
22 class MDnsQuery { | |
szym
2013/06/07 16:40:02
Could we make this CL a little bit smaller, by usi
Noam Samuel
2013/06/07 23:54:43
Done. Note that this adds the RD flag to queries,
szym
2013/06/10 21:58:28
I missed the RD bit. We certainly don't want clear
| |
23 public: | |
24 MDnsQuery(const base::StringPiece& qname, uint16 qtype); | |
25 ~MDnsQuery(); | |
26 | |
27 // TODO(noamsml): void AddAnswer(); | |
28 | |
29 IOBuffer* io_buffer() const { return io_buffer_.get(); } | |
30 unsigned size() const { return io_buffer_->size(); } | |
31 | |
32 private: | |
33 scoped_refptr<IOBufferWithSize> io_buffer_; | |
34 | |
35 DISALLOW_COPY_AND_ASSIGN(MDnsQuery); | |
36 }; | |
37 } // namespace net | |
38 | |
39 #endif // NET_DNS_MDNS_QUERY_H__ | |
OLD | NEW |