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

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

Issue 14715010: Formatting fix. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 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
« no previous file with comments | « no previous file | chrome/browser/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_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 17 matching lines...) Expand all
28 // Use this value for "start margin" to prevent the "es_sm" parameter from 28 // Use this value for "start margin" to prevent the "es_sm" parameter from
29 // being used. 29 // being used.
30 extern const int kDisableStartMargin; 30 extern const int kDisableStartMargin;
31 31
32 // Returns whether the Instant Extended API is enabled. 32 // Returns whether the Instant Extended API is enabled.
33 bool IsInstantExtendedAPIEnabled(); 33 bool IsInstantExtendedAPIEnabled();
34 34
35 // Returns the value to pass to the &espv CGI parameter when loading the 35 // Returns the value to pass to the &espv CGI parameter when loading the
36 // embedded search page from the user's default search provider. Will be 36 // embedded search page from the user's default search provider. Will be
37 // 0 if the Instant Extended API is not enabled, or if the local-only Instant 37 // 0 if the Instant Extended API is not enabled, or if the local-only Instant
38 // Extended API is enabled. 38 // Extended API is enabled, or if in incognito mode.
39 uint64 EmbeddedSearchPageVersion(); 39 uint64 EmbeddedSearchPageVersion(Profile* profile);
40 40
41 // Returns whether query extraction is enabled. 41 // Returns whether query extraction is enabled.
42 bool IsQueryExtractionEnabled(); 42 bool IsQueryExtractionEnabled(Profile* profile);
43 43
44 // Returns whether the local-only version of Instant Extended API is enabled. 44 // Returns whether the local-only version of Instant Extended API is enabled.
45 bool IsLocalOnlyInstantExtendedAPIEnabled(); 45 bool IsLocalOnlyInstantExtendedAPIEnabled();
46 46
47 // Returns the search terms attached to a specific NavigationEntry, or empty 47 // Returns the search terms attached to a specific NavigationEntry, or empty
48 // string otherwise. Does not consider IsQueryExtractionEnabled(), so most 48 // string otherwise. Does not consider IsQueryExtractionEnabled(), so most
49 // callers should use GetSearchTerms() below instead. 49 // callers should use GetSearchTerms() below instead.
50 string16 GetSearchTermsFromNavigationEntry( 50 string16 GetSearchTermsFromNavigationEntry(
51 const content::NavigationEntry* entry); 51 const content::NavigationEntry* entry);
52 52
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 const TemplateURLRef& ref, 188 const TemplateURLRef& ref,
189 int start_margin); 189 int start_margin);
190 190
191 // Returns whether the default search provider has a valid Instant URL in its 191 // Returns whether the default search provider has a valid Instant URL in its
192 // template. Exposed for testing only. 192 // template. Exposed for testing only.
193 bool DefaultSearchProviderSupportsInstant(Profile* profile); 193 bool DefaultSearchProviderSupportsInstant(Profile* profile);
194 194
195 } // namespace chrome 195 } // namespace chrome
196 196
197 #endif // CHROME_BROWSER_SEARCH_SEARCH_H_ 197 #endif // CHROME_BROWSER_SEARCH_SEARCH_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/search/search.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698