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

Issue 10067018: Add PrerenderLocalPredictor, which will eventually perform (Closed)

Created:
8 years, 8 months ago by tburkard
Modified:
8 years, 8 months ago
Reviewers:
cbentzel, brettw
CC:
chromium-reviews, tburkard+watch_chromium.org, cbentzel+watch_chromium.org, dominich+watch_chromium.org, mmenke, brettw-cc_chromium.org
Visibility:
Public.

Description

Add PrerenderLocalPredictor, which will eventually perform local prerender predictions. At this point, the class itself is just a dummy, and the focus for now is on the interface with the history service. I added everything I need added in history, and PrerenderLocalPredictor performs the basic interface functionality it needs with the History. In a later CL, I will actually add the prerender semantics. R=brettw@chromium.org, cbentzel@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=133548

Patch Set 1 #

Total comments: 10

Patch Set 2 : #

Total comments: 13

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Total comments: 18

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Total comments: 14

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+322 lines, -3 lines) Patch
M chrome/browser/history/history.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/history/history.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +30 lines, -2 lines 0 comments Download
M chrome/browser/history/history_backend.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/history/history_backend.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/history/history_backend_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/history/history_types.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +14 lines, -0 lines 0 comments Download
M chrome/browser/history/history_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/history/visit_database.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/history/visit_database.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +23 lines, -0 lines 0 comments Download
A chrome/browser/prerender/prerender_local_predictor.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +64 lines, -0 lines 0 comments Download
A chrome/browser/prerender/prerender_local_predictor.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +139 lines, -0 lines 0 comments Download
M chrome/browser/prerender/prerender_manager.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/prerender/prerender_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
tburkard
8 years, 8 months ago (2012-04-12 20:34:44 UTC) #1
cbentzel
I'm going to have to spend some time looking at the history API to comment ...
8 years, 8 months ago (2012-04-12 21:16:35 UTC) #2
tburkard
https://chromiumcodereview.appspot.com/10067018/diff/1/chrome/browser/history/history.cc File chrome/browser/history/history.cc (right): https://chromiumcodereview.appspot.com/10067018/diff/1/chrome/browser/history/history.cc#newcode905 chrome/browser/history/history.cc:905: if (history_backend_) In the add case, I am loading ...
8 years, 8 months ago (2012-04-12 21:32:37 UTC) #3
cbentzel
Overall this seems OK. I do wonder if this could register itself as a WebContentsObserver ...
8 years, 8 months ago (2012-04-17 18:29:27 UTC) #4
cbentzel
On 2012/04/17 18:29:27, cbentzel wrote: > Overall this seems OK. > > I do wonder ...
8 years, 8 months ago (2012-04-17 19:07:02 UTC) #5
cbentzel
On 2012/04/17 19:07:02, cbentzel wrote: > On 2012/04/17 18:29:27, cbentzel wrote: > > Overall this ...
8 years, 8 months ago (2012-04-17 19:35:32 UTC) #6
cbentzel
http://codereview.chromium.org/10067018/diff/6002/chrome/browser/history/history.h File chrome/browser/history/history.h (right): http://codereview.chromium.org/10067018/diff/6002/chrome/browser/history/history.h#newcode600 chrome/browser/history/history.h:600: // Adds or removes observers for the VisitDatabase. Should ...
8 years, 8 months ago (2012-04-17 20:28:16 UTC) #7
tburkard
Yes. The other reason is that since this is not really a history feature, we ...
8 years, 8 months ago (2012-04-17 20:36:26 UTC) #8
tburkard
https://chromiumcodereview.appspot.com/10067018/diff/6002/chrome/browser/history/history.h File chrome/browser/history/history.h (right): https://chromiumcodereview.appspot.com/10067018/diff/6002/chrome/browser/history/history.h#newcode600 chrome/browser/history/history.h:600: // Adds or removes observers for the VisitDatabase. Should ...
8 years, 8 months ago (2012-04-17 20:51:36 UTC) #9
cbentzel
OK, at this point I'm pretty satisfied with the overall approach. I want Brett to ...
8 years, 8 months ago (2012-04-17 20:57:51 UTC) #10
brettw
https://chromiumcodereview.appspot.com/10067018/diff/10002/chrome/browser/history/history_backend.cc File chrome/browser/history/history_backend.cc (right): https://chromiumcodereview.appspot.com/10067018/diff/10002/chrome/browser/history/history_backend.cc#newcode2496 chrome/browser/history/history_backend.cc:2496: db_->AddVisitDatabaseObserver(observer); This isn't safe to do from any thread ...
8 years, 8 months ago (2012-04-19 19:17:51 UTC) #11
tburkard
https://chromiumcodereview.appspot.com/10067018/diff/10002/chrome/browser/history/history_backend.cc File chrome/browser/history/history_backend.cc (right): https://chromiumcodereview.appspot.com/10067018/diff/10002/chrome/browser/history/history_backend.cc#newcode2496 chrome/browser/history/history_backend.cc:2496: db_->AddVisitDatabaseObserver(observer); Per our conversation, pulled the ObserverListThreadsafe into HistoryService. ...
8 years, 8 months ago (2012-04-20 19:38:21 UTC) #12
brettw
https://chromiumcodereview.appspot.com/10067018/diff/18001/chrome/browser/history/history.h File chrome/browser/history/history.h (right): https://chromiumcodereview.appspot.com/10067018/diff/18001/chrome/browser/history/history.h#newcode914 chrome/browser/history/history.h:914: visit_database_observers_; Indent this line 4 spaces. https://chromiumcodereview.appspot.com/10067018/diff/18001/chrome/browser/history/history_backend.h File chrome/browser/history/history_backend.h ...
8 years, 8 months ago (2012-04-20 22:21:50 UTC) #13
tburkard
Thanks for your comments, Brett. About passing BriefVisitInfo as const ref&, I'm not sure if ...
8 years, 8 months ago (2012-04-20 22:56:44 UTC) #14
brettw
LGTM with pass by ref change. I'd still consider in the future whether you want ...
8 years, 8 months ago (2012-04-23 17:52:54 UTC) #15
tburkard
Thanks for the LGTM. I just fixed the const ref, and I will now run ...
8 years, 8 months ago (2012-04-23 18:24:11 UTC) #16
cbentzel
On Mon, Apr 23, 2012 at 2:24 PM, <tburkard@chromium.org> wrote: > Thanks for the LGTM. ...
8 years, 8 months ago (2012-04-23 20:07:29 UTC) #17
cbentzel
https://chromiumcodereview.appspot.com/10067018/diff/31003/chrome/browser/prerender/prerender_local_predictor.cc File chrome/browser/prerender/prerender_local_predictor.cc (right): https://chromiumcodereview.appspot.com/10067018/diff/31003/chrome/browser/prerender/prerender_local_predictor.cc#newcode82 chrome/browser/prerender/prerender_local_predictor.cc:82: PrerenderLocalPredictor::PrerenderLocalPredictor( Nit: ordering of implementations should match ordering of ...
8 years, 8 months ago (2012-04-23 20:29:46 UTC) #18
tburkard
https://chromiumcodereview.appspot.com/10067018/diff/31003/chrome/browser/prerender/prerender_local_predictor.cc File chrome/browser/prerender/prerender_local_predictor.cc (right): https://chromiumcodereview.appspot.com/10067018/diff/31003/chrome/browser/prerender/prerender_local_predictor.cc#newcode82 chrome/browser/prerender/prerender_local_predictor.cc:82: PrerenderLocalPredictor::PrerenderLocalPredictor( On 2012/04/23 20:29:47, cbentzel wrote: > Nit: ordering ...
8 years, 8 months ago (2012-04-23 20:54:55 UTC) #19
cbentzel
8 years, 8 months ago (2012-04-23 21:15:54 UTC) #20
LGTM

Powered by Google App Engine
This is Rietveld 408576698