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

Unified Diff: chrome/browser/google/google_util.h

Issue 16035020: Move instant support to SearchTabHelper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed failing tests. Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/google/google_util.h
diff --git a/chrome/browser/google/google_util.h b/chrome/browser/google/google_util.h
index ea49f360df489d7ef2a67a6165d320e0cdc22ea3..96526a9ed4811efa6f59b1133ee67635206bc764 100644
--- a/chrome/browser/google/google_util.h
+++ b/chrome/browser/google/google_util.h
@@ -11,6 +11,10 @@
#include "base/basictypes.h"
+namespace content {
+class NavigationEntry;
+}
+
class GURL;
class Profile;
@@ -49,6 +53,11 @@ bool GetBrand(std::string* brand);
// install. Returns false if the information is not available.
bool GetReactivationBrand(std::string* brand);
+// Returns true iff |entry| represents a Google search from the Omnibox.
+// This method assumes that we have already verified that |entry|'s URL is a
+// Google search URL.
+bool IsOmniboxGoogleSearchNavigation(const content::NavigationEntry& entry);
+
// WARNING: The following IsGoogleXXX() functions use heuristics to rule out
// "obviously false" answers. They do NOT guarantee that the string in question
// is actually on a Google-owned domain, just that it looks plausible. If you

Powered by Google App Engine
This is Rietveld 408576698