OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_URL_INFO_H_ | 16 #ifndef CHROME_BROWSER_NET_URL_INFO_H_ |
17 #define CHROME_BROWSER_NET_URL_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/macros.h" |
22 #include "base/time/time.h" | 23 #include "base/time/time.h" |
23 #include "net/base/host_port_pair.h" | 24 #include "net/base/host_port_pair.h" |
24 #include "url/gurl.h" | 25 #include "url/gurl.h" |
25 | 26 |
26 namespace chrome_browser_net { | 27 namespace chrome_browser_net { |
27 | 28 |
28 // Use command line switch to enable detailed logging. | 29 // Use command line switch to enable detailed logging. |
29 void EnablePredictorDetailedLog(bool enable); | 30 void EnablePredictorDetailedLog(bool enable); |
30 | 31 |
31 class UrlInfo { | 32 class UrlInfo { |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 GURL referring_url_; | 179 GURL referring_url_; |
179 | 180 |
180 // We put these objects into a std::map, and hence we | 181 // We put these objects into a std::map, and hence we |
181 // need some "evil" constructors. | 182 // need some "evil" constructors. |
182 // DISALLOW_COPY_AND_ASSIGN(UrlInfo); | 183 // DISALLOW_COPY_AND_ASSIGN(UrlInfo); |
183 }; | 184 }; |
184 | 185 |
185 } // namespace chrome_browser_net | 186 } // namespace chrome_browser_net |
186 | 187 |
187 #endif // CHROME_BROWSER_NET_URL_INFO_H_ | 188 #endif // CHROME_BROWSER_NET_URL_INFO_H_ |
OLD | NEW |