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

Side by Side Diff: components/omnibox/browser/url_prefix.h

Issue 1551433002: Switch to standard integer types in components/, part 3 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 4 years, 12 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 COMPONENTS_OMNIBOX_BROWSER_URL_PREFIX_H_ 5 #ifndef COMPONENTS_OMNIBOX_BROWSER_URL_PREFIX_H_
6 #define COMPONENTS_OMNIBOX_BROWSER_URL_PREFIX_H_ 6 #define COMPONENTS_OMNIBOX_BROWSER_URL_PREFIX_H_
7 7
8 #include <stddef.h>
9
8 #include <vector> 10 #include <vector>
9 11
10 #include "base/strings/string16.h" 12 #include "base/strings/string16.h"
11 13
12 struct URLPrefix; 14 struct URLPrefix;
13 typedef std::vector<URLPrefix> URLPrefixes; 15 typedef std::vector<URLPrefix> URLPrefixes;
14 16
15 // A URL prefix; combinations of schemes and (least significant) domain labels 17 // A URL prefix; combinations of schemes and (least significant) domain labels
16 // that may be inferred from certain URL-like input strings. 18 // that may be inferred from certain URL-like input strings.
17 struct URLPrefix { 19 struct URLPrefix {
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 56
55 base::string16 prefix; 57 base::string16 prefix;
56 58
57 // The number of URL components (scheme, domain label, etc.) in the prefix. 59 // 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, 60 // 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. 61 // while "ftp://ftp.ftp.com" has two, and "mysite.com" has none.
60 size_t num_components; 62 size_t num_components;
61 }; 63 };
62 64
63 #endif // COMPONENTS_OMNIBOX_BROWSER_URL_PREFIX_H_ 65 #endif // COMPONENTS_OMNIBOX_BROWSER_URL_PREFIX_H_
OLDNEW
« no previous file with comments | « components/omnibox/browser/url_index_private_data.cc ('k') | components/omnibox/browser/url_prefix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698