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

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

Issue 7529043: Rename NET_API to NET_EXPORT, and rename NET_TEST to NET_EXPORT_PRIVATE. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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 | Annotate | Revision Log
OLDNEW
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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "net/base/net_api.h" 12 #include "net/base/net_export.h"
13 #include "net/base/rand_callback.h" 13 #include "net/base/rand_callback.h"
14 14
15 namespace net { 15 namespace net {
16 16
17 class IOBufferWithSize; 17 class IOBufferWithSize;
18 18
19 // Represents on-the-wire DNS query message as an object. 19 // Represents on-the-wire DNS query message as an object.
20 class NET_TEST DnsQuery { 20 class NET_EXPORT_PRIVATE DnsQuery {
21 public: 21 public:
22 // Constructs a query message from |qname| which *MUST* be in a valid 22 // Constructs a query message from |qname| which *MUST* be in a valid
23 // DNS name format, and |qtype| which must be either kDNS_A or kDNS_AAAA. 23 // DNS name format, and |qtype| which must be either kDNS_A or kDNS_AAAA.
24 24
25 // Every generated object has a random ID, hence two objects generated 25 // Every generated object has a random ID, hence two objects generated
26 // with the same set of constructor arguments are generally not equal; 26 // with the same set of constructor arguments are generally not equal;
27 // there is a 1/2^16 chance of them being equal due to size of |id_|. 27 // there is a 1/2^16 chance of them being equal due to size of |id_|.
28 DnsQuery(const std::string& qname, 28 DnsQuery(const std::string& qname,
29 uint16 qtype, 29 uint16 qtype,
30 const RandIntCallback& rand_int_cb); 30 const RandIntCallback& rand_int_cb);
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 63
64 // PRNG function for generating IDs. 64 // PRNG function for generating IDs.
65 RandIntCallback rand_int_cb_; 65 RandIntCallback rand_int_cb_;
66 66
67 DISALLOW_COPY_AND_ASSIGN(DnsQuery); 67 DISALLOW_COPY_AND_ASSIGN(DnsQuery);
68 }; 68 };
69 69
70 } // namespace net 70 } // namespace net
71 71
72 #endif // NET_DNS_DNS_QUERY_H_ 72 #endif // NET_DNS_DNS_QUERY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698