Chromium Code Reviews| Index: chrome/browser/ui/search/search.h |
| diff --git a/chrome/browser/ui/search/search.h b/chrome/browser/ui/search/search.h |
| index d7364b74e38501a170cda9738853e06223504ff7..5cd94224d262ca3d2f63fcff515b837b05424aed 100644 |
| --- a/chrome/browser/ui/search/search.h |
| +++ b/chrome/browser/ui/search/search.h |
| @@ -10,13 +10,22 @@ |
| #include <vector> |
| #include "base/basictypes.h" |
| +#include "base/string16.h" |
| class GURL; |
| class Profile; |
| +namespace content { |
|
sreeram
2013/01/30 21:41:39
Nit: Add a blank line between "class Profile" and
Mathieu
2013/01/30 21:55:12
Done.
|
| +class NavigationEntry; |
| +} |
| namespace chrome { |
| namespace search { |
| +// The key used to store search terms data in the NavigationEntry to be later |
| +// displayed in the Omnibox. With the context of the user's exact query, |
| +// InstantController sets the correct search terms to be displayed. |
| +extern const char kInstantExtendedSearchTermsKey[]; |
| + |
| // Returns whether the Instant extended API is enabled for the given |profile|. |
| // |profile| may not be NULL. |
| bool IsInstantExtendedAPIEnabled(Profile* profile); |
| @@ -37,6 +46,11 @@ bool IsQueryExtractionEnabled(Profile* profile); |
| // Force query extraction to be enabled for tests. |
| void EnableQueryExtractionForTesting(); |
| +// Return the search terms attached to a specific NavigationEntry, or empty |
| +// string otherwise. |
| +string16 GetSearchTermsFromNavigationEntry( |
| + const content::NavigationEntry* entry); |
| + |
| // Returns true if |url| has the same scheme, host, port and path as the |
| // Instant URL set via --instant-url. |
| bool IsForcedInstantURL(const GURL& url); |