Chromium Code Reviews| 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. |
| // ----------------------------------------------------- |