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

Side by Side Diff: components/dns_prefetch/common/prefetch_common.h

Issue 644123002: Componentize renderer side of DNS prefetching. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: trybot fixes: 1) hide gyp target from ios 2) UintToString --> SizeTToString Created 6 years, 1 month 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
« no previous file with comments | « components/dns_prefetch/common/DEPS ('k') | components/dns_prefetch/common/prefetch_common.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 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 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 file has shared types used across IPC between render_dns_master.cc 5 #ifndef COMPONENTS_DNS_PREFETCH_COMMON_PREFETCH_COMMON_H_
6 // and dns_master.cc 6 #define COMPONENTS_DNS_PREFETCH_COMMON_PREFETCH_COMMON_H_
7
8 #ifndef CHROME_COMMON_NET_PREDICTOR_COMMON_H_
9 #define CHROME_COMMON_NET_PREDICTOR_COMMON_H_
10 7
11 #include <string> 8 #include <string>
12 #include <vector> 9 #include <vector>
13 10
14 #include "url/gurl.h" 11 #include "url/gurl.h"
15 12
16 namespace chrome_common_net { 13 namespace dns_prefetch {
17 14
18 // IPC messages are passed from the renderer to the browser in the form of 15 // IPC messages are passed from the renderer to the browser in the form of
19 // Namelist instances. 16 // Namelist instances.
20 // Each element of this vector is a hostname that needs to be looked up. 17 // Each element of this vector is a hostname that needs to be looked up.
21 // The hostnames should never be empty strings. 18 // The hostnames should never be empty strings.
22 typedef std::vector<std::string> NameList; 19 typedef std::vector<std::string> NameList;
23 // TODO(jar): We still need to switch to passing scheme/host/port in UrlList, 20 // TODO(jar): We still need to switch to passing scheme/host/port in UrlList,
24 // instead of NameList, from renderer (where content of pages are scanned for 21 // instead of NameList, from renderer (where content of pages are scanned for
25 // links) to browser (where we perform predictive actions). 22 // links) to browser (where we perform predictive actions).
26 typedef std::vector<GURL> UrlList; 23 typedef std::vector<GURL> UrlList;
24
25 struct LookupRequest {
26 LookupRequest();
27 ~LookupRequest();
28
29 NameList hostname_list;
30 };
31
32 // The maximum number of hostnames submitted to the browser DNS resolver per
33 // IPC call.
34 extern const size_t kMaxDnsHostnamesPerRequest;
35
36 // The maximum length for a given DNS hostname to resolve.
37 extern const size_t kMaxDnsHostnameLength;
38
27 } 39 }
28 40
29 #endif // CHROME_COMMON_NET_PREDICTOR_COMMON_H_ 41 #endif // COMPONENTS_DNS_PREFETCH_COMMON_PREFETCH_COMMON_H_
OLDNEW
« no previous file with comments | « components/dns_prefetch/common/DEPS ('k') | components/dns_prefetch/common/prefetch_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698