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

Side by Side Diff: net/dns/mdns_query.h

Issue 15733008: Multicast DNS implementation (initial) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mdns_implementation2
Patch Set: Created 7 years, 6 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
OLDNEW
(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 {
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__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698