OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 // A DnsHostInfo object is used to store status of a Dns lookup of a specific | 5 // A DnsHostInfo object is used to store status of a Dns lookup of a specific |
6 // hostname. | 6 // hostname. |
7 // It includes progress, from placement in the DnsMaster's queue, to resolution | 7 // It includes progress, from placement in the DnsMaster's queue, to resolution |
8 // by the DNS service as either FOUND or NO_SUCH_NAME. | 8 // by the DNS service as either FOUND or NO_SUCH_NAME. |
9 | 9 |
10 #ifndef CHROME_BROWSER_NET_DNS_HOST_INFO_H_ | 10 #ifndef CHROME_BROWSER_NET_DNS_HOST_INFO_H_ |
11 #define CHROME_BROWSER_NET_DNS_HOST_INFO_H_ | 11 #define CHROME_BROWSER_NET_DNS_HOST_INFO_H_ |
12 | 12 |
13 #include <string> | 13 #include <string> |
14 #include <vector> | 14 #include <vector> |
15 | 15 |
16 #include "base/logging.h" | |
17 #include "base/time.h" | 16 #include "base/time.h" |
18 #include "googleurl/src/gurl.h" | 17 #include "googleurl/src/gurl.h" |
19 | 18 |
20 namespace chrome_browser_net { | 19 namespace chrome_browser_net { |
21 | 20 |
22 // Use command line switch to enable detailed logging. | 21 // Use command line switch to enable detailed logging. |
23 void EnableDnsDetailedLog(bool enable); | 22 void EnableDnsDetailedLog(bool enable); |
24 | 23 |
25 enum DnsBenefit { | 24 enum DnsBenefit { |
26 PREFETCH_NO_BENEFIT, // Prefetch never hit the network. Name was pre-cached. | 25 PREFETCH_NO_BENEFIT, // Prefetch never hit the network. Name was pre-cached. |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 std::string referring_hostname_; | 183 std::string referring_hostname_; |
185 | 184 |
186 // We put these objects into a std::map, and hence we | 185 // We put these objects into a std::map, and hence we |
187 // need some "evil" constructors. | 186 // need some "evil" constructors. |
188 // DISALLOW_COPY_AND_ASSIGN(DnsHostInfo); | 187 // DISALLOW_COPY_AND_ASSIGN(DnsHostInfo); |
189 }; | 188 }; |
190 | 189 |
191 } // namespace chrome_browser_net | 190 } // namespace chrome_browser_net |
192 | 191 |
193 #endif // CHROME_BROWSER_NET_DNS_HOST_INFO_H_ | 192 #endif // CHROME_BROWSER_NET_DNS_HOST_INFO_H_ |
OLD | NEW |