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

Unified Diff: chrome/browser/prerender/prerender_local_predictor.h

Issue 330063004: Various Prerender Service / Prerender LocalPredictor related changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: davidben feedback Created 6 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/prerender/prerender_local_predictor.h
diff --git a/chrome/browser/prerender/prerender_local_predictor.h b/chrome/browser/prerender/prerender_local_predictor.h
index 3081d4f4ad47c942f968bc698c4114ad4e322b83..64d47b6a42ec4153935f94d693664cae4622297e 100644
--- a/chrome/browser/prerender/prerender_local_predictor.h
+++ b/chrome/browser/prerender/prerender_local_predictor.h
@@ -181,13 +181,14 @@ class PrerenderLocalPredictor : public history::VisitDatabaseObserver,
// Returns an element of issued_prerenders_, which should be replaced
// by a new prerender of the priority indicated, or NULL, if the priority
- // is too low.
- PrerenderProperties* GetIssuedPrerenderSlotForPriority(double priority);
+ // is too low (or if the URL requested is already prerendering).
+ PrerenderProperties* GetIssuedPrerenderSlotForPriority(const GURL& url,
+ double priority);
void ContinuePrerenderCheck(scoped_ptr<CandidatePrerenderInfo> info);
void LogCandidateURLStats(const GURL& url) const;
- void IssuePrerender(scoped_ptr<CandidatePrerenderInfo> info,
- scoped_ptr<LocalPredictorURLInfo> url_info,
+ void IssuePrerender(CandidatePrerenderInfo* info,
+ LocalPredictorURLInfo* url_info,
PrerenderProperties* prerender_properties);
void MaybeCancelURLFetcher(net::URLFetcher* fetcher);
// Returns true if the parsed response is semantically correct and could

Powered by Google App Engine
This is Rietveld 408576698