OLD | NEW |
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 // This class helps to remember what domains may be needed to be resolved when a | 5 // This class helps to remember what domains may be needed to be resolved when a |
6 // navigation takes place to a given URL. This information is gathered when a | 6 // navigation takes place to a given URL. This information is gathered when a |
7 // navigation to a subresource identifies a referring URL. | 7 // navigation to a subresource identifies a referring URL. |
8 // When future navigations take place to known referrer sites, then we | 8 // When future navigations take place to known referrer sites, then we |
9 // speculatively either pre-warm a TCP/IP conneciton, or at a minimum, resolve | 9 // speculatively either pre-warm a TCP/IP conneciton, or at a minimum, resolve |
10 // the host name via DNS. | 10 // the host name via DNS. |
11 | 11 |
12 // All access to this class is performed via the Predictor class, which only | 12 // All access to this class is performed via the Predictor class, which only |
13 // operates on the IO thread. | 13 // operates on the IO thread. |
14 | 14 |
15 #ifndef CHROME_BROWSER_NET_REFERRER_H_ | 15 #ifndef CHROME_BROWSER_NET_REFERRER_H_ |
16 #define CHROME_BROWSER_NET_REFERRER_H_ | 16 #define CHROME_BROWSER_NET_REFERRER_H_ |
17 | 17 |
18 #include <map> | 18 #include <map> |
19 | 19 |
20 #include "base/basictypes.h" | 20 #include "base/basictypes.h" |
21 #include "base/time.h" | 21 #include "base/time/time.h" |
22 #include "googleurl/src/gurl.h" | 22 #include "googleurl/src/gurl.h" |
23 #include "net/base/host_port_pair.h" | 23 #include "net/base/host_port_pair.h" |
24 | 24 |
25 namespace base { | 25 namespace base { |
26 class Value; | 26 class Value; |
27 } | 27 } |
28 | 28 |
29 namespace chrome_browser_net { | 29 namespace chrome_browser_net { |
30 | 30 |
31 //------------------------------------------------------------------------------ | 31 //------------------------------------------------------------------------------ |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 | 133 |
134 // We put these into a std::map<>, so we need copy constructors. | 134 // We put these into a std::map<>, so we need copy constructors. |
135 // DISALLOW_COPY_AND_ASSIGN(Referrer); | 135 // DISALLOW_COPY_AND_ASSIGN(Referrer); |
136 // TODO(jar): Consider optimization to use pointers to these instances, and | 136 // TODO(jar): Consider optimization to use pointers to these instances, and |
137 // avoid deep copies during re-alloc of the containing map. | 137 // avoid deep copies during re-alloc of the containing map. |
138 }; | 138 }; |
139 | 139 |
140 } // namespace chrome_browser_net | 140 } // namespace chrome_browser_net |
141 | 141 |
142 #endif // CHROME_BROWSER_NET_REFERRER_H_ | 142 #endif // CHROME_BROWSER_NET_REFERRER_H_ |
OLD | NEW |