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

Unified Diff: chrome/browser/search/search.h

Issue 13877028: Renderer initiated navigations from non instant process should not fall into instant. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Simplifying ToolbarModelTest fix. Created 7 years, 8 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/search/search.h
diff --git a/chrome/browser/search/search.h b/chrome/browser/search/search.h
index 07ab5173ca3d44fa431e4b2456ec958e835858c7..8865ebdec9e1a4548b84ebb2d3ea4f382a78b7c8 100644
--- a/chrome/browser/search/search.h
+++ b/chrome/browser/search/search.h
@@ -123,6 +123,24 @@ bool IsAggressiveLocalNTPFallbackEnabled();
// Returns true if |my_url| matches |other_url|.
bool MatchesOriginAndPath(const GURL& my_url, const GURL& other_url);
+// Transforms the input |url| into its "privileged URL". The returned URL
+// facilitates grouping process-per-site. The |url| is transformed, for
+// example, from
+//
+// https://www.google.com/search?espv=1&q=tractors
+//
+// to the privileged URL
+//
+// chrome-search://www.google.com/search?espv=1&q=tractors
+//
+// Notice the scheme change.
+//
+// If the input is already a privileged URL then that same URL is returned.
+GURL GetPrivilegedURLForInstant(const GURL& url, Profile* profile);
+
+// Returns true if the input |url| is a privileged Instant URL.
+bool IsPrivilegedURLForInstant(const GURL& url);
+
// -----------------------------------------------------
// The following APIs are exposed for use in tests only.
// -----------------------------------------------------

Powered by Google App Engine
This is Rietveld 408576698