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

Side by Side Diff: chrome/browser/net/dns_host_info.h

Issue 2890: Include chrome/browser/SConscript in Linux build.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 12 years, 3 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
« no previous file with comments | « chrome/browser/SConscript ('k') | chrome/browser/net/dns_host_info.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 assignment 7 // It includes progress, from placement in the DnsMaster's queue, to assignment
8 // to a slave, to resolution by the (blocking) DNS service as either FOUND or 8 // to a slave, to resolution by the (blocking) DNS service as either FOUND or
9 // NO_SUCH_NAME. 9 // NO_SUCH_NAME.
10 10
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 NO_SUCH_NAME, // DNS prefetch search completed. 42 NO_SUCH_NAME, // DNS prefetch search completed.
43 // When processed by the HTTP network stack, there are 3 states: 43 // When processed by the HTTP network stack, there are 3 states:
44 STARTED, // Resolution has begun. 44 STARTED, // Resolution has begun.
45 FINISHED, // Resolution has completed. 45 FINISHED, // Resolution has completed.
46 FINISHED_UNRESOLVED}; // No resolution found. 46 FINISHED_UNRESOLVED}; // No resolution found.
47 static const TimeDelta kMaxNonNetworkDnsLookupDuration; 47 static const TimeDelta kMaxNonNetworkDnsLookupDuration;
48 // The number of OS cache entries we can guarantee(?) before cache eviction 48 // The number of OS cache entries we can guarantee(?) before cache eviction
49 // might likely take place. 49 // might likely take place.
50 static const int kMaxGuaranteedCacheSize = 50; 50 static const int kMaxGuaranteedCacheSize = 50;
51 51
52 typedef std::vector<const DnsHostInfo> DnsInfoTable; 52 typedef std::vector<DnsHostInfo> DnsInfoTable;
53 53
54 static const TimeDelta kNullDuration; 54 static const TimeDelta kNullDuration;
55 55
56 // DnsHostInfo are usually made by the default constructor during 56 // DnsHostInfo are usually made by the default constructor during
57 // initializing of the DnsMaster's map (of info for Hostnames). 57 // initializing of the DnsMaster's map (of info for Hostnames).
58 DnsHostInfo() 58 DnsHostInfo()
59 : state_(PENDING), 59 : state_(PENDING),
60 resolve_duration_(kNullDuration), 60 resolve_duration_(kNullDuration),
61 queue_duration_(kNullDuration), 61 queue_duration_(kNullDuration),
62 benefits_remaining_(), 62 benefits_remaining_(),
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 141
142 // We put these objects into a std::map, and hence we 142 // We put these objects into a std::map, and hence we
143 // need some "evil" constructors. 143 // need some "evil" constructors.
144 // DISALLOW_EVIL_CONSTRUCTORS(DnsHostInfo); 144 // DISALLOW_EVIL_CONSTRUCTORS(DnsHostInfo);
145 }; 145 };
146 146
147 } // namespace chrome_browser_net 147 } // namespace chrome_browser_net
148 148
149 #endif // CHROME_BROWSER_NET_DNS_HOST_INFO_H__ 149 #endif // CHROME_BROWSER_NET_DNS_HOST_INFO_H__
150 150
OLDNEW
« no previous file with comments | « chrome/browser/SConscript ('k') | chrome/browser/net/dns_host_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698