| OLD | NEW |
| 1 // Copyright (c) 2006-2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2010 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 UrlInfo object is used to store prediction related information about a host | 5 // A UrlInfo object is used to store prediction related information about a host |
| 6 // port and scheme triplet. When performing DNS pre-resolution of the host/port | 6 // port and scheme triplet. When performing DNS pre-resolution of the host/port |
| 7 // pair, its state is monitored as it is resolved. | 7 // pair, its state is monitored as it is resolved. |
| 8 // It includes progress, from placement in the Predictor's queue, to resolution | 8 // It includes progress, from placement in the Predictor's queue, to resolution |
| 9 // by the DNS service as either FOUND or NO_SUCH_NAME. Each instance may also | 9 // by the DNS service as either FOUND or NO_SUCH_NAME. Each instance may also |
| 10 // hold records of previous resolution times, which might later be shown to be | 10 // hold records of previous resolution times, which might later be shown to be |
| 11 // savings relative to resolution time during a navigation. | 11 // savings relative to resolution time during a navigation. |
| 12 // UrlInfo objects are also used to describe frames, and additional instances | 12 // UrlInfo objects are also used to describe frames, and additional instances |
| 13 // may describe associated subresources, for future speculative connections to | 13 // may describe associated subresources, for future speculative connections to |
| 14 // those expected subresources. | 14 // those expected subresources. |
| 15 | 15 |
| 16 #ifndef CHROME_BROWSER_NET_DNS_HOST_INFO_H_ | 16 #ifndef CHROME_BROWSER_NET_URL_INFO_H_ |
| 17 #define CHROME_BROWSER_NET_DNS_HOST_INFO_H_ | 17 #define CHROME_BROWSER_NET_URL_INFO_H_ |
| 18 | 18 |
| 19 #include <string> | 19 #include <string> |
| 20 #include <vector> | 20 #include <vector> |
| 21 | 21 |
| 22 #include "base/time.h" | 22 #include "base/time.h" |
| 23 #include "googleurl/src/gurl.h" | 23 #include "googleurl/src/gurl.h" |
| 24 #include "net/base/host_port_pair.h" | 24 #include "net/base/host_port_pair.h" |
| 25 | 25 |
| 26 namespace chrome_browser_net { | 26 namespace chrome_browser_net { |
| 27 | 27 |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 // instigated by a referrer, we store it here (for use in about:dns). | 198 // instigated by a referrer, we store it here (for use in about:dns). |
| 199 GURL referring_url_; | 199 GURL referring_url_; |
| 200 | 200 |
| 201 // We put these objects into a std::map, and hence we | 201 // We put these objects into a std::map, and hence we |
| 202 // need some "evil" constructors. | 202 // need some "evil" constructors. |
| 203 // DISALLOW_COPY_AND_ASSIGN(UrlInfo); | 203 // DISALLOW_COPY_AND_ASSIGN(UrlInfo); |
| 204 }; | 204 }; |
| 205 | 205 |
| 206 } // namespace chrome_browser_net | 206 } // namespace chrome_browser_net |
| 207 | 207 |
| 208 #endif // CHROME_BROWSER_NET_DNS_HOST_INFO_H_ | 208 #endif // CHROME_BROWSER_NET_URL_INFO_H_ |
| OLD | NEW |