| Index: net/dns/mdns_query.h
|
| diff --git a/net/dns/mdns_query.h b/net/dns/mdns_query.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..79f15d5a35acab66e54120361b35aac11e51a6d2
|
| --- /dev/null
|
| +++ b/net/dns/mdns_query.h
|
| @@ -0,0 +1,39 @@
|
| +// Copyright (c) 2013 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef NET_DNS_MDNS_QUERY_H__
|
| +#define NET_DNS_MDNS_QUERY_H__
|
| +
|
| +#include <map>
|
| +#include <string>
|
| +
|
| +#include "base/memory/ref_counted.h"
|
| +#include "base/string_piece.h"
|
| +#include "net/base/io_buffer.h"
|
| +#include "net/dns/dns_protocol.h"
|
| +#include "net/dns/record_parsed.h"
|
| +
|
| +namespace net {
|
| +
|
| +// Note: Currently this class is very similar to DnsQuery, but it is kept
|
| +// separate to allow for adding known answers to the additional answer question.
|
| +
|
| +class MDnsQuery {
|
| + public:
|
| +MDnsQuery(const base::StringPiece& qname, uint16 qtype);
|
| + ~MDnsQuery();
|
| +
|
| + // TODO(noamsml): void AddAnswer();
|
| +
|
| + IOBuffer* io_buffer() const { return io_buffer_.get(); }
|
| + unsigned size() const { return io_buffer_->size(); }
|
| +
|
| + private:
|
| + scoped_refptr<IOBufferWithSize> io_buffer_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(MDnsQuery);
|
| +};
|
| +} // namespace net
|
| +
|
| +#endif // NET_DNS_MDNS_QUERY_H__
|
|
|