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

Side by Side Diff: chrome/browser/autocomplete/autocomplete_match.h

Issue 7321001: Changes SearchProvider to set the description of the first consecutive (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix DCHECK Created 9 years, 5 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_AUTOCOMPLETE_MATCH_H_ 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_MATCH_H_
6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_MATCH_H_ 6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_MATCH_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 #include <string> 10 #include <string>
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 // it to GENERATED. 170 // it to GENERATED.
171 PageTransition::Type transition; 171 PageTransition::Type transition;
172 172
173 // True when this match is the "what you typed" match from the history 173 // True when this match is the "what you typed" match from the history
174 // system. 174 // system.
175 bool is_history_what_you_typed_match; 175 bool is_history_what_you_typed_match;
176 176
177 // Type of this match. 177 // Type of this match.
178 Type type; 178 Type type;
179 179
180 // If this match corresponds to a keyword, this is the TemplateURL the 180 // Indicates the TemplateURL the match originated from. This is set for
181 // keyword was obtained from. 181 // keywords as well as matches for the default search provider.
182 const TemplateURL* template_url; 182 const TemplateURL* template_url;
183 183
184 // True if the user has starred the destination URL. 184 // True if the user has starred the destination URL.
185 bool starred; 185 bool starred;
186 186
187 // True if this match is from a previous result. 187 // True if this match is from a previous result.
188 bool from_previous; 188 bool from_previous;
189 189
190 #ifndef NDEBUG 190 #ifndef NDEBUG
191 // Does a data integrity check on this match. 191 // Does a data integrity check on this match.
192 void Validate() const; 192 void Validate() const;
193 193
194 // Checks one text/classifications pair for valid values. 194 // Checks one text/classifications pair for valid values.
195 void ValidateClassifications( 195 void ValidateClassifications(
196 const string16& text, 196 const string16& text,
197 const ACMatchClassifications& classifications) const; 197 const ACMatchClassifications& classifications) const;
198 #endif 198 #endif
199 }; 199 };
200 200
201 typedef AutocompleteMatch::ACMatchClassification ACMatchClassification; 201 typedef AutocompleteMatch::ACMatchClassification ACMatchClassification;
202 typedef std::vector<ACMatchClassification> ACMatchClassifications; 202 typedef std::vector<ACMatchClassification> ACMatchClassifications;
203 203
204 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_MATCH_H_ 204 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_MATCH_H_
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_edit.cc ('k') | chrome/browser/autocomplete/autocomplete_popup_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698