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

Side by Side Diff: chrome/browser/ui/search/search.h

Issue 12319124: Enable query extraction for Android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed build errors Created 7 years, 9 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 | « chrome/browser/policy/policy_browsertest.cc ('k') | chrome/browser/ui/search/search.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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_UI_SEARCH_SEARCH_H_ 5 #ifndef CHROME_BROWSER_UI_SEARCH_SEARCH_H_
6 #define CHROME_BROWSER_UI_SEARCH_SEARCH_H_ 6 #define CHROME_BROWSER_UI_SEARCH_SEARCH_H_
7 7
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 // lead to an infinite recursion. 104 // lead to an infinite recursion.
105 bool IsInstantEnabled(Profile* profile); 105 bool IsInstantEnabled(Profile* profile);
106 106
107 // ----------------------------------------------------- 107 // -----------------------------------------------------
108 // The following APIs are exposed for use in tests only. 108 // The following APIs are exposed for use in tests only.
109 // ----------------------------------------------------- 109 // -----------------------------------------------------
110 110
111 // Forces the Instant Extended API to be enabled for tests. 111 // Forces the Instant Extended API to be enabled for tests.
112 void EnableInstantExtendedAPIForTesting(); 112 void EnableInstantExtendedAPIForTesting();
113 113
114 // Forces query extraction to be enabled for tests.
115 void EnableQueryExtractionForTesting();
116
117 // Type for a collection of experiment configuration parameters. 114 // Type for a collection of experiment configuration parameters.
118 typedef std::vector<std::pair<std::string, std::string> > FieldTrialFlags; 115 typedef std::vector<std::pair<std::string, std::string> > FieldTrialFlags;
119 116
120 // Given a field trial group name, parses out the group number and configuration 117 // Given a field trial group name, parses out the group number and configuration
121 // flags. On success, |flags| will be filled with the field trial flags. |flags| 118 // flags. On success, |flags| will be filled with the field trial flags. |flags|
122 // must not be NULL. If not NULL, |group_number| will receive the experiment 119 // must not be NULL. If not NULL, |group_number| will receive the experiment
123 // group number. 120 // group number.
124 // Returns true iff field trial info was successfully parsed out of 121 // Returns true iff field trial info was successfully parsed out of
125 // |group_name|. 122 // |group_name|.
126 // Exposed for testing only. 123 // Exposed for testing only.
(...skipping 23 matching lines...) Expand all
150 147
151 // Coerces the commandline Instant URL to look like a template URL, so that we 148 // Coerces the commandline Instant URL to look like a template URL, so that we
152 // can extract search terms from it. Exposed for testing only. 149 // can extract search terms from it. Exposed for testing only.
153 GURL CoerceCommandLineURLToTemplateURL(const GURL& instant_url, 150 GURL CoerceCommandLineURLToTemplateURL(const GURL& instant_url,
154 const TemplateURLRef& ref); 151 const TemplateURLRef& ref);
155 152
156 } // namespace search 153 } // namespace search
157 } // namespace chrome 154 } // namespace chrome
158 155
159 #endif // CHROME_BROWSER_UI_SEARCH_SEARCH_H_ 156 #endif // CHROME_BROWSER_UI_SEARCH_SEARCH_H_
OLDNEW
« no previous file with comments | « chrome/browser/policy/policy_browsertest.cc ('k') | chrome/browser/ui/search/search.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698