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

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

Issue 10537154: A working implementation of AQS (Assisted Query Stats). (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Removed SupportsAssistedQueryStats. Created 8 years, 6 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_H_ 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_H_
6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_H_ 6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 729 matching lines...) Expand 10 before | Expand all | Expand 10 after
740 740
741 // Updates |result| to populate each match's |associated_keyword| if that 741 // Updates |result| to populate each match's |associated_keyword| if that
742 // match can show a keyword hint. |result| should be sorted by 742 // match can show a keyword hint. |result| should be sorted by
743 // relevance before this is called. 743 // relevance before this is called.
744 void UpdateAssociatedKeywords(AutocompleteResult* result); 744 void UpdateAssociatedKeywords(AutocompleteResult* result);
745 745
746 // For each group of contiguous matches from the same TemplateURL, show the 746 // For each group of contiguous matches from the same TemplateURL, show the
747 // provider name as a description on the first match in the group. 747 // provider name as a description on the first match in the group.
748 void UpdateKeywordDescriptions(AutocompleteResult* result); 748 void UpdateKeywordDescriptions(AutocompleteResult* result);
749 749
750 // For each AutocompleteMatch returned by SearchProvider, updates the
751 // destination_url iff the provider's TemplateURL supports assisted query
752 // stats.
753 void UpdateAssistedQueryStats(AutocompleteResult* result);
754
750 // Calls AutocompleteControllerDelegate::OnResultChanged() and if done sends 755 // Calls AutocompleteControllerDelegate::OnResultChanged() and if done sends
751 // AUTOCOMPLETE_CONTROLLER_RESULT_READY. 756 // AUTOCOMPLETE_CONTROLLER_RESULT_READY.
752 void NotifyChanged(bool notify_default_match); 757 void NotifyChanged(bool notify_default_match);
753 758
754 // Updates |done_| to be accurate with respect to current providers' statuses. 759 // Updates |done_| to be accurate with respect to current providers' statuses.
755 void CheckIfDone(); 760 void CheckIfDone();
756 761
757 // Starts the expire timer. 762 // Starts the expire timer.
758 void StartExpireTimer(); 763 void StartExpireTimer();
759 764
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
833 size_t inline_autocompleted_length; 838 size_t inline_autocompleted_length;
834 // Result set. 839 // Result set.
835 const AutocompleteResult& result; 840 const AutocompleteResult& result;
836 // Diagnostic information from providers. See 841 // Diagnostic information from providers. See
837 // AutocompleteController::AddProvidersInfo() and 842 // AutocompleteController::AddProvidersInfo() and
838 // AutocompleteProvider::AddProviderInfo() above. 843 // AutocompleteProvider::AddProviderInfo() above.
839 ProvidersInfo providers_info; 844 ProvidersInfo providers_info;
840 }; 845 };
841 846
842 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_H_ 847 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/autocomplete/autocomplete.cc » ('j') | chrome/browser/autocomplete/autocomplete.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698