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

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: Address comments & ensure InstantLoader pages start in the right SiteInstance. 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
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | chrome/browser/search/search.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/search/search.h
diff --git a/chrome/browser/search/search.h b/chrome/browser/search/search.h
index 07ab5173ca3d44fa431e4b2456ec958e835858c7..8136a9aca846f629379e1b0565f5ab9a22bb8926 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 an privileged URL then that same URL is returned.
sreeram 2013/05/01 19:17:45 an -> a
Shishir 2013/05/01 21:53:49 Done.
+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.
// -----------------------------------------------------
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | chrome/browser/search/search.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698