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

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

Issue 14749005: Implement WebPrescientNetworking to trigger preconnect from Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 7 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
OLDNEW
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
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 NO_PREFETCH_MOTIVATION, // Browser navigation info (not prefetch related). 45 NO_PREFETCH_MOTIVATION, // Browser navigation info (not prefetch related).
46 46
47 // The following involve predictive prefetching, triggered by a navigation. 47 // The following involve predictive prefetching, triggered by a navigation.
48 // The referrinrg_url_ is also set when these are used. 48 // The referrinrg_url_ is also set when these are used.
49 // TODO(jar): Support STATIC_REFERAL_MOTIVATED API and integration. 49 // TODO(jar): Support STATIC_REFERAL_MOTIVATED API and integration.
50 STATIC_REFERAL_MOTIVATED, // External database suggested this resolution. 50 STATIC_REFERAL_MOTIVATED, // External database suggested this resolution.
51 LEARNED_REFERAL_MOTIVATED, // Prior navigation taught us this resolution. 51 LEARNED_REFERAL_MOTIVATED, // Prior navigation taught us this resolution.
52 SELF_REFERAL_MOTIVATED, // Guess about need for a second connection. 52 SELF_REFERAL_MOTIVATED, // Guess about need for a second connection.
53 53
54 MOUSE_DOWN_MOTIVATED, // Mouse-down link induced preconnect.
55 TAP_UNCONFIRMED_MOTIVATED, // Unconfirmed tap on a link induced preconnect.
56 TAP_DOWN_MOTIVATED, // Tap-down link induced preconnect.
jar (doing other things) 2013/05/04 00:32:05 nit: indent comments to align them (style as in li
kouhei (in TOK) 2013/05/07 09:16:12 Done.
57
54 MAX_MOTIVATED // Beyond all enums, for use in histogram bounding. 58 MAX_MOTIVATED // Beyond all enums, for use in histogram bounding.
55 }; 59 };
56 60
57 enum DnsProcessingState { 61 enum DnsProcessingState {
58 // When processed by our prefetching system, the states are: 62 // When processed by our prefetching system, the states are:
59 PENDING, // Constructor has completed. 63 PENDING, // Constructor has completed.
60 QUEUED, // In name queue but not yet being resolved. 64 QUEUED, // In name queue but not yet being resolved.
61 ASSIGNED, // Being resolved (or being reset to earlier state) 65 ASSIGNED, // Being resolved (or being reset to earlier state)
62 ASSIGNED_BUT_MARKED, // Needs to be deleted as soon as it's resolved. 66 ASSIGNED_BUT_MARKED, // Needs to be deleted as soon as it's resolved.
63 FOUND, // DNS resolution completed. 67 FOUND, // DNS resolution completed.
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 GURL referring_url_; 183 GURL referring_url_;
180 184
181 // We put these objects into a std::map, and hence we 185 // We put these objects into a std::map, and hence we
182 // need some "evil" constructors. 186 // need some "evil" constructors.
183 // DISALLOW_COPY_AND_ASSIGN(UrlInfo); 187 // DISALLOW_COPY_AND_ASSIGN(UrlInfo);
184 }; 188 };
185 189
186 } // namespace chrome_browser_net 190 } // namespace chrome_browser_net
187 191
188 #endif // CHROME_BROWSER_NET_URL_INFO_H_ 192 #endif // CHROME_BROWSER_NET_URL_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698