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

Side by Side Diff: chrome/browser/prerender/prerender_util.h

Issue 2645713003: [Prerender] Cleanup prerender_util (Closed)
Patch Set: Review comments Created 3 years, 11 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_PRERENDER_PRERENDER_UTIL_H_ 5 #ifndef CHROME_BROWSER_PRERENDER_PRERENDER_UTIL_H_
6 #define CHROME_BROWSER_PRERENDER_PRERENDER_UTIL_H_ 6 #define CHROME_BROWSER_PRERENDER_PRERENDER_UTIL_H_
7 7
8 #include "url/gurl.h" 8 class GURL;
9 9
10 namespace prerender { 10 namespace prerender {
11 11
12 // Extracts a urlencoded URL stored in a url= query parameter from a URL 12 // Indicates whether the URL provided is a GWS origin.
13 // supplied, if available, and stores it in alias_url. Returns whether or not 13 bool IsGoogleOriginURL(const GURL& origin_url);
14 // the operation succeeded (i.e. a valid URL was found).
15 bool MaybeGetQueryStringBasedAliasURL(const GURL& url, GURL* alias_url);
16
17 // Indicates whether the URL provided has a Google domain
18 bool IsGoogleDomain(const GURL& url);
19
20 // Indicates whether the URL provided could be a Google search result page.
21 bool IsGoogleSearchResultURL(const GURL& url);
22 14
23 // Report a URL was canceled due to trying to handle an external URL. 15 // Report a URL was canceled due to trying to handle an external URL.
24 void ReportPrerenderExternalURL(); 16 void ReportPrerenderExternalURL();
25 17
26 // Report a URL was canceled due to unsupported prerender scheme. 18 // Report a URL was canceled due to unsupported prerender scheme.
27 void ReportUnsupportedPrerenderScheme(const GURL& url); 19 void ReportUnsupportedPrerenderScheme(const GURL& url);
28 20
29 } // namespace prerender 21 } // namespace prerender
30 22
31 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_UTIL_H_ 23 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/browser/prerender/prerender_manager.cc ('k') | chrome/browser/prerender/prerender_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698