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

Issue 1321733004: Use the site engagement eviction policy for temporary storage eviction. (Closed)

Created:
5 years, 3 months ago by calamity
Modified:
4 years, 11 months ago
Reviewers:
raymes
CC:
chromium-reviews, darin-cc_chromium.org, wjmaclean, jam, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@add_eviction_policy
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use the site engagement eviction policy for temporary storage eviction. This CL hooks up the SiteEngagementEvictionPolicy to the temporary storage eviction system. This involves adding a QuotaTask to QuotaManager which fetches information necessary for eviction calculation and then passes it to the eviction policy which is owned by the SiteEngagementService. This features is behind the --enable-site-engagement-storage-eviction flag. BUG=464234

Patch Set 1 : #

Total comments: 4

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+175 lines, -10 lines) Patch
M chrome/browser/chrome_content_browser_client.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/engagement/site_engagement_eviction_policy.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/engagement/site_engagement_eviction_policy.cc View 2 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/engagement/site_engagement_service.h View 1 5 chunks +10 lines, -1 line 0 comments Download
M chrome/browser/engagement/site_engagement_service.cc View 1 2 chunks +7 lines, -1 line 0 comments Download
M chrome/common/chrome_switches.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/storage_partition_impl.cc View 2 chunks +6 lines, -3 lines 0 comments Download
M content/public/browser/content_browser_client.h View 2 chunks +7 lines, -0 lines 0 comments Download
M content/public/browser/content_browser_client.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M storage/browser/quota/client_usage_tracker.h View 1 chunk +1 line, -0 lines 0 comments Download
M storage/browser/quota/client_usage_tracker.cc View 1 chunk +9 lines, -0 lines 0 comments Download
M storage/browser/quota/quota_manager.h View 3 chunks +8 lines, -1 line 0 comments Download
M storage/browser/quota/quota_manager.cc View 5 chunks +83 lines, -3 lines 0 comments Download
M storage/browser/quota/usage_tracker.h View 1 chunk +1 line, -0 lines 0 comments Download
M storage/browser/quota/usage_tracker.cc View 1 chunk +8 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 5 (2 generated)
calamity
+raymes for initial review
5 years, 3 months ago (2015-09-01 04:55:27 UTC) #3
raymes
Looks good overall - I haven't reviewed the storage/ stuff because it's so foreign to ...
5 years, 3 months ago (2015-09-01 06:52:52 UTC) #4
calamity
5 years, 3 months ago (2015-09-04 05:44:21 UTC) #5
https://codereview.chromium.org/1321733004/diff/20001/chrome/browser/engageme...
File chrome/browser/engagement/site_engagement_service.cc (right):

https://codereview.chromium.org/1321733004/diff/20001/chrome/browser/engageme...
chrome/browser/engagement/site_engagement_service.cc:168: new
SiteEngagementEvictionPolicy(profile)) {}
On 2015/09/01 06:52:52, raymes wrote:
> Should SiteEngagementService depend on SiteEngagementEvictionPolicy (which
> already depends on it)?

Forgot to put in the enable condition.

What do you mean by this? The eviction policy needs to live somewhere and this
seemed like a decent place. We could also add a new keyed service for it I
guess?

https://codereview.chromium.org/1321733004/diff/20001/chrome/browser/engageme...
File chrome/browser/engagement/site_engagement_service.h (right):

https://codereview.chromium.org/1321733004/diff/20001/chrome/browser/engageme...
chrome/browser/engagement/site_engagement_service.h:123:
SiteEngagementEvictionPolicy* GetSiteEngagementEvictionPolicy() {
On 2015/09/01 06:52:52, raymes wrote:
> site_engagement_eviction_policy()

Done.

Powered by Google App Engine
This is Rietveld 408576698