OLD | NEW |
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 #ifndef CHROME_BROWSER_AUTOCOMPLETE_URL_PREFIX_H_ | 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_URL_PREFIX_H_ |
6 #define CHROME_BROWSER_AUTOCOMPLETE_URL_PREFIX_H_ | 6 #define CHROME_BROWSER_AUTOCOMPLETE_URL_PREFIX_H_ |
7 #pragma once | |
8 | 7 |
9 #include <vector> | 8 #include <vector> |
10 | 9 |
11 #include "base/string16.h" | 10 #include "base/string16.h" |
12 | 11 |
13 struct URLPrefix; | 12 struct URLPrefix; |
14 typedef std::vector<URLPrefix> URLPrefixes; | 13 typedef std::vector<URLPrefix> URLPrefixes; |
15 | 14 |
16 // A URL prefix; combinations of schemes and (least significant) domain labels | 15 // A URL prefix; combinations of schemes and (least significant) domain labels |
17 // that may be inferred from certain URL-like input strings. | 16 // that may be inferred from certain URL-like input strings. |
(...skipping 15 matching lines...) Expand all Loading... |
33 | 32 |
34 string16 prefix; | 33 string16 prefix; |
35 | 34 |
36 // The number of URL components (scheme, domain label, etc.) in the prefix. | 35 // The number of URL components (scheme, domain label, etc.) in the prefix. |
37 // For example, "http://foo.com" and "www.bar.com" each have one component, | 36 // For example, "http://foo.com" and "www.bar.com" each have one component, |
38 // while "ftp://ftp.ftp.com" has two, and "mysite.com" has none. | 37 // while "ftp://ftp.ftp.com" has two, and "mysite.com" has none. |
39 size_t num_components; | 38 size_t num_components; |
40 }; | 39 }; |
41 | 40 |
42 #endif // CHROME_BROWSER_AUTOCOMPLETE_URL_PREFIX_H_ | 41 #endif // CHROME_BROWSER_AUTOCOMPLETE_URL_PREFIX_H_ |
OLD | NEW |