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

Side by Side Diff: components/query_parser/snippet.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, 11 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
« no previous file with comments | « components/query_parser/query_parser_unittest.cc ('k') | components/query_parser/snippet.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 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 // This module computes snippets of queries based on hits in the documents 5 // This module computes snippets of queries based on hits in the documents
6 // for display in history search results. 6 // for display in history search results.
7 7
8 #ifndef COMPONENTS_QUERY_PARSER_SNIPPET_H__ 8 #ifndef COMPONENTS_QUERY_PARSER_SNIPPET_H__
9 #define COMPONENTS_QUERY_PARSER_SNIPPET_H__ 9 #define COMPONENTS_QUERY_PARSER_SNIPPET_H__
10 10
11 #include <stddef.h>
12
11 #include <vector> 13 #include <vector>
12 14
13 #include "base/strings/string16.h" 15 #include "base/strings/string16.h"
14 16
15 namespace query_parser { 17 namespace query_parser {
16 18
17 class Snippet { 19 class Snippet {
18 public: 20 public:
19 // Each MatchPosition is the [begin, end) positions of a match within a 21 // Each MatchPosition is the [begin, end) positions of a match within a
20 // string. 22 // string.
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 // The text of the snippet. 66 // The text of the snippet.
65 base::string16 text_; 67 base::string16 text_;
66 68
67 // The matches within text_. 69 // The matches within text_.
68 MatchPositions matches_; 70 MatchPositions matches_;
69 }; 71 };
70 72
71 } // namespace query_parser 73 } // namespace query_parser
72 74
73 #endif // COMPONENTS_QUERY_PARSER_SNIPPET_H__ 75 #endif // COMPONENTS_QUERY_PARSER_SNIPPET_H__
OLDNEW
« no previous file with comments | « components/query_parser/query_parser_unittest.cc ('k') | components/query_parser/snippet.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698