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

Side by Side Diff: chrome/browser/search_engines/template_url_service.h

Issue 11415292: [Search] No longer reverting omnibox text on instant search (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: indent Created 8 years 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
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_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_H_ 5 #ifndef CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_H_
6 #define CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_H_ 6 #define CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 const GURL& url, 122 const GURL& url,
123 TemplateURL** template_url_to_replace); 123 TemplateURL** template_url_to_replace);
124 124
125 // Returns (in |matches|) all keywords beginning with |prefix|, sorted 125 // Returns (in |matches|) all keywords beginning with |prefix|, sorted
126 // shortest-first. If support_replacement_only is true, only keywords that 126 // shortest-first. If support_replacement_only is true, only keywords that
127 // support replacement are returned. 127 // support replacement are returned.
128 void FindMatchingKeywords(const string16& prefix, 128 void FindMatchingKeywords(const string16& prefix,
129 bool support_replacement_only, 129 bool support_replacement_only,
130 std::vector<string16>* matches) const; 130 std::vector<string16>* matches) const;
131 131
132 // Attempt to extract search terms from the supplied |url|.
133 string16 TryToExtractSearchTermsFromURL(GURL url);
sky 2012/12/12 22:41:57 const GURL&
Mathieu 2012/12/12 23:37:24 Done.
134
132 // Looks up |keyword| and returns the element it maps to. Returns NULL if 135 // Looks up |keyword| and returns the element it maps to. Returns NULL if
133 // the keyword was not found. 136 // the keyword was not found.
134 // The caller should not try to delete the returned pointer; the data store 137 // The caller should not try to delete the returned pointer; the data store
135 // retains ownership of it. 138 // retains ownership of it.
136 TemplateURL* GetTemplateURLForKeyword(const string16& keyword); 139 TemplateURL* GetTemplateURLForKeyword(const string16& keyword);
137 140
138 // Returns that TemplateURL with the specified GUID, or NULL if not found. 141 // Returns that TemplateURL with the specified GUID, or NULL if not found.
139 // The caller should not try to delete the returned pointer; the data store 142 // The caller should not try to delete the returned pointer; the data store
140 // retains ownership of it. 143 // retains ownership of it.
141 TemplateURL* GetTemplateURLForGUID(const std::string& sync_guid); 144 TemplateURL* GetTemplateURLForGUID(const std::string& sync_guid);
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after
677 680
678 // This is used to log the origin of changes to the default search provider. 681 // This is used to log the origin of changes to the default search provider.
679 // We set this value to increasingly specific values when we know what is the 682 // We set this value to increasingly specific values when we know what is the
680 // cause/origin of a default search change. 683 // cause/origin of a default search change.
681 DefaultSearchChangeOrigin dsp_change_origin_; 684 DefaultSearchChangeOrigin dsp_change_origin_;
682 685
683 DISALLOW_COPY_AND_ASSIGN(TemplateURLService); 686 DISALLOW_COPY_AND_ASSIGN(TemplateURLService);
684 }; 687 };
685 688
686 #endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_H_ 689 #endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698