|
Adding support for forced URLs to TopSites.
This CL makes it possible to add MostVisitedURLs to TopSites that have a non-null |last_forced_time| indicating that these URLs are "forced" and should stay in top-sites even as other non-forced URLs come in. These forced URLs are evicted on a Least Recently Used basis based on |last_forced_time|. Internally, the list of Forced URLs is kept at the beginning of the TopSitesCache list of MostVisitedURLs. These forced URLs are not returned by GetMostVisitedURLs.
Forced URLs make it possible for Chrome to capture thumbnails of sites that may have been suggested through other processes than the TopSitesBackend. They are not used yet but a soon-to-follow CL will link them to thumbnails requested via the chrome-search://thumb2/...
TBR'ing owners for minor API change.
BUG=
TBR=bulach@chromium.org,sky@chromium.org,darin@chromium.org,benwells@chromium.org,estade@chromium.org,
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=234394
Total comments: 19
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+646 lines, -81 lines) |
Patch |
 |
M |
chrome/browser/android/most_visited_sites.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/autocomplete/zero_suggest_provider.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/automation/automation_provider_observers.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/top_sites/top_sites_api.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/top_sites/top_sites_apitest.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/history/top_sites.h
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+16 lines, -11 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/history/top_sites_cache.h
|
View
|
1
2
3
4
5
6
7
|
4 chunks |
+17 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/history/top_sites_cache.cc
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+26 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/history/top_sites_cache_unittest.cc
|
View
|
1
2
3
4
5
6
7
|
4 chunks |
+25 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/history/top_sites_database.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/history/top_sites_database_unittest.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/history/top_sites_impl.h
|
View
|
1
2
3
4
5
6
7
8
|
6 chunks |
+35 lines, -11 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/history/top_sites_impl.cc
|
View
|
1
2
3
4
5
6
7
8
|
16 chunks |
+135 lines, -27 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/history/top_sites_impl_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
|
7 chunks |
+371 lines, -10 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/jumplist_win.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/search/instant_service.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/thumbnails/thumbnail_service_impl.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/thumbnails/thumbnail_service_unittest.cc
|
View
|
|
2 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/gtk/global_history_menu.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/frame/global_menu_bar_x11.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/webui/ntp/most_visited_handler.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/webui/ntp/thumbnail_list_source.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 17 (0 generated)
|