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

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

Issue 282183002: [AiS] Enable AiS flag on all platforms (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 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_SEARCH_SEARCH_H_ 5 #ifndef CHROME_BROWSER_SEARCH_SEARCH_H_
6 #define CHROME_BROWSER_SEARCH_SEARCH_H_ 6 #define CHROME_BROWSER_SEARCH_SEARCH_H_
7 7
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 // Use this value for "start margin" to prevent the "es_sm" parameter from 67 // Use this value for "start margin" to prevent the "es_sm" parameter from
68 // being used. 68 // being used.
69 extern const int kDisableStartMargin; 69 extern const int kDisableStartMargin;
70 70
71 // Returns whether the Instant Extended API is enabled. 71 // Returns whether the Instant Extended API is enabled.
72 bool IsInstantExtendedAPIEnabled(); 72 bool IsInstantExtendedAPIEnabled();
73 73
74 // Returns whether the suggest is enabled for the given |profile|. 74 // Returns whether the suggest is enabled for the given |profile|.
75 bool IsSuggestPrefEnabled(Profile* profile); 75 bool IsSuggestPrefEnabled(Profile* profile);
76 76
77 // Returns whether Answers in Suggest is enabled.
78 bool IsAnswersInSuggestEnabled();
79
77 // Returns the value to pass to the &espv CGI parameter when loading the 80 // Returns the value to pass to the &espv CGI parameter when loading the
78 // embedded search page from the user's default search provider. Returns 0 if 81 // embedded search page from the user's default search provider. Returns 0 if
79 // the Instant Extended API is not enabled. 82 // the Instant Extended API is not enabled.
80 uint64 EmbeddedSearchPageVersion(); 83 uint64 EmbeddedSearchPageVersion();
81 84
82 // Returns a string indicating whether InstantExtended is enabled, suitable 85 // Returns a string indicating whether InstantExtended is enabled, suitable
83 // for adding as a query string param to the homepage or search requests. 86 // for adding as a query string param to the homepage or search requests.
84 // Returns an empty string otherwise. 87 // Returns an empty string otherwise.
85 // 88 //
86 // |for_search| should be set to true for search requests, in which case this 89 // |for_search| should be set to true for search requests, in which case this
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 bool GetBoolValueForFlagWithDefault(const std::string& flag, 300 bool GetBoolValueForFlagWithDefault(const std::string& flag,
298 bool default_value, 301 bool default_value,
299 const FieldTrialFlags& flags); 302 const FieldTrialFlags& flags);
300 303
301 // Returns the Cacheable New Tab Page URL for the given |profile|. 304 // Returns the Cacheable New Tab Page URL for the given |profile|.
302 GURL GetNewTabPageURL(Profile* profile); 305 GURL GetNewTabPageURL(Profile* profile);
303 306
304 } // namespace chrome 307 } // namespace chrome
305 308
306 #endif // CHROME_BROWSER_SEARCH_SEARCH_H_ 309 #endif // CHROME_BROWSER_SEARCH_SEARCH_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698