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

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: rebase Created 6 years, 4 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 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 // doesn't imply (alone) that the UI is going to show a keyword hint or 344 // doesn't imply (alone) that the UI is going to show a keyword hint or
345 // keyword mode. For that, see GetKeywordUIState() or 345 // keyword mode. For that, see GetKeywordUIState() or
346 // GetSubstitutingExplicitlyInvokedKeyword(). 346 // GetSubstitutingExplicitlyInvokedKeyword().
347 // 347 //
348 // CAUTION: The TemplateURL associated with this keyword may be deleted or 348 // CAUTION: The TemplateURL associated with this keyword may be deleted or
349 // modified while the AutocompleteMatch is alive. This means anyone who 349 // modified while the AutocompleteMatch is alive. This means anyone who
350 // accesses it must perform any necessary sanity checks before blindly using 350 // accesses it must perform any necessary sanity checks before blindly using
351 // it! 351 // it!
352 base::string16 keyword; 352 base::string16 keyword;
353 353
354 // True if the user has starred the destination URL.
355 bool starred;
356
357 // True if this match is from a previous result. 354 // True if this match is from a previous result.
358 bool from_previous; 355 bool from_previous;
359 356
360 // Optional search terms args. If present, 357 // Optional search terms args. If present,
361 // AutocompleteController::UpdateAssistedQueryStats() will incorporate this 358 // AutocompleteController::UpdateAssistedQueryStats() will incorporate this
362 // data with additional data it calculates and pass the completed struct to 359 // data with additional data it calculates and pass the completed struct to
363 // TemplateURLRef::ReplaceSearchTerms() to reset the match's |destination_url| 360 // TemplateURLRef::ReplaceSearchTerms() to reset the match's |destination_url|
364 // after the complete set of matches in the AutocompleteResult has been chosen 361 // after the complete set of matches in the AutocompleteResult has been chosen
365 // and sorted. Most providers will leave this as NULL, which will cause the 362 // and sorted. Most providers will leave this as NULL, which will cause the
366 // AutocompleteController to do no additional transformations. 363 // AutocompleteController to do no additional transformations.
(...skipping 16 matching lines...) Expand all
383 const base::string16& text, 380 const base::string16& text,
384 const ACMatchClassifications& classifications) const; 381 const ACMatchClassifications& classifications) const;
385 #endif 382 #endif
386 }; 383 };
387 384
388 typedef AutocompleteMatch::ACMatchClassification ACMatchClassification; 385 typedef AutocompleteMatch::ACMatchClassification ACMatchClassification;
389 typedef std::vector<ACMatchClassification> ACMatchClassifications; 386 typedef std::vector<ACMatchClassification> ACMatchClassifications;
390 typedef std::vector<AutocompleteMatch> ACMatches; 387 typedef std::vector<AutocompleteMatch> ACMatches;
391 388
392 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_MATCH_H_ 389 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_MATCH_H_
OLDNEW
« no previous file with comments | « chrome/browser/android/omnibox/autocomplete_controller_android.cc ('k') | chrome/browser/autocomplete/autocomplete_match.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698