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_DNS_DNS_QUERY_H_ | 5 #ifndef NET_DNS_DNS_QUERY_H_ |
6 #define NET_DNS_DNS_QUERY_H_ | 6 #define NET_DNS_DNS_QUERY_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/string_piece.h" | 10 #include "base/strings/string_piece.h" |
11 #include "net/base/net_export.h" | 11 #include "net/base/net_export.h" |
12 | 12 |
13 namespace net { | 13 namespace net { |
14 | 14 |
15 class IOBufferWithSize; | 15 class IOBufferWithSize; |
16 | 16 |
17 // Represents on-the-wire DNS query message as an object. | 17 // Represents on-the-wire DNS query message as an object. |
18 // TODO(szym): add support for the OPT pseudo-RR (EDNS0/DNSSEC). | 18 // TODO(szym): add support for the OPT pseudo-RR (EDNS0/DNSSEC). |
19 class NET_EXPORT_PRIVATE DnsQuery { | 19 class NET_EXPORT_PRIVATE DnsQuery { |
20 public: | 20 public: |
(...skipping 26 matching lines...) Expand all Loading... |
47 | 47 |
48 // Contains query bytes to be consumed by higher level Write() call. | 48 // Contains query bytes to be consumed by higher level Write() call. |
49 scoped_refptr<IOBufferWithSize> io_buffer_; | 49 scoped_refptr<IOBufferWithSize> io_buffer_; |
50 | 50 |
51 DISALLOW_COPY_AND_ASSIGN(DnsQuery); | 51 DISALLOW_COPY_AND_ASSIGN(DnsQuery); |
52 }; | 52 }; |
53 | 53 |
54 } // namespace net | 54 } // namespace net |
55 | 55 |
56 #endif // NET_DNS_DNS_QUERY_H_ | 56 #endif // NET_DNS_DNS_QUERY_H_ |
OLD | NEW |