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
3 // found in the LICENSE file.
5 #ifndef COMPONENTS_NETWORK_HINTS_COMMON_NETWORK_HINTS_COMMON_H_
6 #define COMPONENTS_NETWORK_HINTS_COMMON_NETWORK_HINTS_COMMON_H_
13 namespace network_hints
{
15 // IPC messages are passed from the renderer to the browser in the form of
16 // Namelist instances.
17 // Each element of this vector is a hostname that needs to be looked up.
18 // The hostnames should never be empty strings.
19 typedef std::vector
<std::string
> NameList
;
20 // TODO(jar): We still need to switch to passing scheme/host/port in UrlList,
21 // instead of NameList, from renderer (where content of pages are scanned for
22 // links) to browser (where we perform predictive actions).
23 typedef std::vector
<GURL
> UrlList
;
25 struct LookupRequest
{
29 NameList hostname_list
;
32 // The maximum number of hostnames submitted to the browser DNS resolver per
34 extern const size_t kMaxDnsHostnamesPerRequest
;
36 // The maximum length for a given DNS hostname to resolve.
37 extern const size_t kMaxDnsHostnameLength
;
39 } // namespace network_hints
41 #endif // COMPONENTS_NETWORK_HINTS_COMMON_NETWORK_HINTS_COMMON_H_