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

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

Issue 38007: Tell DNS prefetch when search URL is likely so that prewarming can be done... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/autocomplete/autocomplete.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 (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_H_ 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_H_
6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_H_ 6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 // Similar to ClassifyMatchInString(), but for cases where the range to mark 366 // Similar to ClassifyMatchInString(), but for cases where the range to mark
367 // as matching is already known (avoids calling find()). This can be helpful 367 // as matching is already known (avoids calling find()). This can be helpful
368 // when find() would be misleading (e.g. you want to mark the second match in 368 // when find() would be misleading (e.g. you want to mark the second match in
369 // a string instead of the first). 369 // a string instead of the first).
370 static void ClassifyLocationInString(size_t match_location, 370 static void ClassifyLocationInString(size_t match_location,
371 size_t match_length, 371 size_t match_length,
372 size_t overall_length, 372 size_t overall_length,
373 int style, 373 int style,
374 ACMatchClassifications* classifications); 374 ACMatchClassifications* classifications);
375 375
376 // The type of this match is a search query with the default engine.
377 bool IsSearchType() const;
378
376 // The provider of this match, used to remember which provider the user had 379 // The provider of this match, used to remember which provider the user had
377 // selected when the input changes. This may be NULL, in which case there is 380 // selected when the input changes. This may be NULL, in which case there is
378 // no provider (or memory of the user's selection). 381 // no provider (or memory of the user's selection).
379 AutocompleteProvider* provider; 382 AutocompleteProvider* provider;
380 383
381 // The relevance of this match. See table above for scores returned by 384 // The relevance of this match. See table above for scores returned by
382 // various providers. This is used to rank matches among all responding 385 // various providers. This is used to rank matches among all responding
383 // providers, so different providers must be carefully tuned to supply 386 // providers, so different providers must be carefully tuned to supply
384 // matches with appropriate relevance. 387 // matches with appropriate relevance.
385 // 388 //
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after
889 AutocompleteInput::Type input_type; 892 AutocompleteInput::Type input_type;
890 // Selected index (if selected) or -1 (AutocompletePopupModel::kNoMatch). 893 // Selected index (if selected) or -1 (AutocompletePopupModel::kNoMatch).
891 size_t selected_index; 894 size_t selected_index;
892 // Inline autocompleted length (if displayed). 895 // Inline autocompleted length (if displayed).
893 size_t inline_autocompleted_length; 896 size_t inline_autocompleted_length;
894 // Result set. 897 // Result set.
895 const AutocompleteResult& result; 898 const AutocompleteResult& result;
896 }; 899 };
897 900
898 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_H_ 901 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/autocomplete/autocomplete.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698