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

Side by Side Diff: components/autocomplete/url_prefix.h

Issue 330233002: Create a new component "autocomplete" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, DEPS & OWNERS fix Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « components/autocomplete/OWNERS ('k') | components/autocomplete/url_prefix.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) 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 COMPONENTS_AUTOCOMPLETE_URL_PREFIX_H_
6 #define CHROME_BROWSER_AUTOCOMPLETE_URL_PREFIX_H_ 6 #define COMPONENTS_AUTOCOMPLETE_URL_PREFIX_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
11 11
12 struct URLPrefix; 12 struct URLPrefix;
13 typedef std::vector<URLPrefix> URLPrefixes; 13 typedef std::vector<URLPrefix> URLPrefixes;
14 14
15 // A URL prefix; combinations of schemes and (least significant) domain labels 15 // A URL prefix; combinations of schemes and (least significant) domain labels
16 // that may be inferred from certain URL-like input strings. 16 // that may be inferred from certain URL-like input strings.
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 const base::string16& text); 53 const base::string16& text);
54 54
55 base::string16 prefix; 55 base::string16 prefix;
56 56
57 // The number of URL components (scheme, domain label, etc.) in the prefix. 57 // The number of URL components (scheme, domain label, etc.) in the prefix.
58 // For example, "http://foo.com" and "www.bar.com" each have one component, 58 // For example, "http://foo.com" and "www.bar.com" each have one component,
59 // while "ftp://ftp.ftp.com" has two, and "mysite.com" has none. 59 // while "ftp://ftp.ftp.com" has two, and "mysite.com" has none.
60 size_t num_components; 60 size_t num_components;
61 }; 61 };
62 62
63 #endif // CHROME_BROWSER_AUTOCOMPLETE_URL_PREFIX_H_ 63 #endif // COMPONENTS_AUTOCOMPLETE_URL_PREFIX_H_
OLDNEW
« no previous file with comments | « components/autocomplete/OWNERS ('k') | components/autocomplete/url_prefix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698