| OLD | NEW |
| 1 // Copyright (c) 2006-2008 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 // This file has shared types used across IPC between render_dns_master.cc | 5 // This file has shared types used across IPC between render_dns_master.cc |
| 6 // and dns_master.cc | 6 // and dns_master.cc |
| 7 | 7 |
| 8 #ifndef CHROME_COMMON_NET_PREDICTOR_COMMON_H_ | 8 #ifndef CHROME_COMMON_NET_PREDICTOR_COMMON_H_ |
| 9 #define CHROME_COMMON_NET_PREDICTOR_COMMON_H_ | 9 #define CHROME_COMMON_NET_PREDICTOR_COMMON_H_ |
| 10 | 10 |
| 11 #include <string> | 11 #include <string> |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "googleurl/src/gurl.h" | 14 #include "googleurl/src/gurl.h" |
| 15 | 15 |
| 16 namespace chrome_common_net { | 16 namespace chrome_common_net { |
| 17 | 17 |
| 18 // IPC messages are passed from the renderer to the browser in the form of | 18 // IPC messages are passed from the renderer to the browser in the form of |
| 19 // Namelist instances. | 19 // Namelist instances. |
| 20 // Each element of this vector is a hostname that needs to be looked up. | 20 // Each element of this vector is a hostname that needs to be looked up. |
| 21 // The hostnames should never be empty strings. | 21 // The hostnames should never be empty strings. |
| 22 typedef std::vector<std::string> NameList; | 22 typedef std::vector<std::string> NameList; |
| 23 // TODO(jar): We still need to switch to passing scheme/host/port in UrlList, | 23 // 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 | 24 // instead of NameList, from renderer (where content of pages are scanned for |
| 25 // links) to browser (where we perform predictive actions). | 25 // links) to browser (where we perform predictive actions). |
| 26 typedef std::vector<GURL> UrlList; | 26 typedef std::vector<GURL> UrlList; |
| 27 } | 27 } |
| 28 | 28 |
| 29 #endif // CHROME_COMMON_NET_PREDICTOR_COMMON_H_ | 29 #endif // CHROME_COMMON_NET_PREDICTOR_COMMON_H_ |
| OLD | NEW |