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

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

Issue 415053002: Remove AutocompleteMatch::is_starred (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 6 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) 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_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 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 // doesn't imply (alone) that the UI is going to show a keyword hint or 348 // doesn't imply (alone) that the UI is going to show a keyword hint or
349 // keyword mode. For that, see GetKeywordUIState() or 349 // keyword mode. For that, see GetKeywordUIState() or
350 // GetSubstitutingExplicitlyInvokedKeyword(). 350 // GetSubstitutingExplicitlyInvokedKeyword().
351 // 351 //
352 // CAUTION: The TemplateURL associated with this keyword may be deleted or 352 // CAUTION: The TemplateURL associated with this keyword may be deleted or
353 // modified while the AutocompleteMatch is alive. This means anyone who 353 // modified while the AutocompleteMatch is alive. This means anyone who
354 // accesses it must perform any necessary sanity checks before blindly using 354 // accesses it must perform any necessary sanity checks before blindly using
355 // it! 355 // it!
356 base::string16 keyword; 356 base::string16 keyword;
357 357
358 // True if the user has starred the destination URL.
359 bool starred;
360
361 // True if this match is from a previous result. 358 // True if this match is from a previous result.
362 bool from_previous; 359 bool from_previous;
363 360
364 // Optional search terms args. If present, 361 // Optional search terms args. If present,
365 // AutocompleteController::UpdateAssistedQueryStats() will incorporate this 362 // AutocompleteController::UpdateAssistedQueryStats() will incorporate this
366 // data with additional data it calculates and pass the completed struct to 363 // data with additional data it calculates and pass the completed struct to
367 // TemplateURLRef::ReplaceSearchTerms() to reset the match's |destination_url| 364 // TemplateURLRef::ReplaceSearchTerms() to reset the match's |destination_url|
368 // after the complete set of matches in the AutocompleteResult has been chosen 365 // after the complete set of matches in the AutocompleteResult has been chosen
369 // and sorted. Most providers will leave this as NULL, which will cause the 366 // and sorted. Most providers will leave this as NULL, which will cause the
370 // AutocompleteController to do no additional transformations. 367 // AutocompleteController to do no additional transformations.
(...skipping 16 matching lines...) Expand all
387 const base::string16& text, 384 const base::string16& text,
388 const ACMatchClassifications& classifications) const; 385 const ACMatchClassifications& classifications) const;
389 #endif 386 #endif
390 }; 387 };
391 388
392 typedef AutocompleteMatch::ACMatchClassification ACMatchClassification; 389 typedef AutocompleteMatch::ACMatchClassification ACMatchClassification;
393 typedef std::vector<ACMatchClassification> ACMatchClassifications; 390 typedef std::vector<ACMatchClassification> ACMatchClassifications;
394 typedef std::vector<AutocompleteMatch> ACMatches; 391 typedef std::vector<AutocompleteMatch> ACMatches;
395 392
396 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_MATCH_H_ 393 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_MATCH_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698