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

Issue 218793002: Provide monitoring of usage for a storage type and origin (Closed)

Created:
6 years, 8 months ago by tmdiep
Modified:
6 years, 8 months ago
Reviewers:
kinuko, nhiroki, tzik
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Provide monitoring of usage for a storage type and origin Introduces a quota::StorageObserver interface for observers that wish to monitor storage events such as changes in quota and usage. Observers register themselves with quota::QuotaManager. This patch only implements tracking of changes in usage. BUG=347801 TEST=content_unittests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=261358

Patch Set 1 #

Total comments: 6

Patch Set 2 : Addressed review comments #

Patch Set 3 : Refactoring #

Patch Set 4 : Fix test failures #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1413 lines, -15 lines) Patch
M content/content_tests.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M webkit/browser/quota/quota_manager.h View 5 chunks +12 lines, -0 lines 0 comments Download
M webkit/browser/quota/quota_manager.cc View 5 chunks +31 lines, -6 lines 0 comments Download
A webkit/browser/quota/storage_monitor.h View 1 2 1 chunk +175 lines, -0 lines 0 comments Download
A webkit/browser/quota/storage_monitor.cc View 1 2 3 1 chunk +367 lines, -0 lines 0 comments Download
A webkit/browser/quota/storage_monitor_unittest.cc View 1 2 3 1 chunk +640 lines, -0 lines 0 comments Download
A webkit/browser/quota/storage_observer.h View 1 1 chunk +79 lines, -0 lines 0 comments Download
A webkit/browser/quota/storage_observer.cc View 1 1 chunk +65 lines, -0 lines 0 comments Download
M webkit/browser/quota/usage_tracker.h View 6 chunks +10 lines, -2 lines 0 comments Download
M webkit/browser/quota/usage_tracker.cc View 6 chunks +28 lines, -6 lines 0 comments Download
M webkit/browser/quota/usage_tracker_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M webkit/storage_browser.gyp View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
tmdiep
This is the implementation of the quota monitoring interface proposed in: https://codereview.chromium.org/196573024 I have only ...
6 years, 8 months ago (2014-03-30 23:19:12 UTC) #1
tzik
Looking now. https://codereview.chromium.org/218793002/diff/1/webkit/browser/quota/storage_monitor.cc File webkit/browser/quota/storage_monitor.cc (right): https://codereview.chromium.org/218793002/diff/1/webkit/browser/quota/storage_monitor.cc#newcode43 webkit/browser/quota/storage_monitor.cc:43: StorageObserverStateMap::iterator it = observers_.find(observer); just observers_.erase(observer); works. ...
6 years, 8 months ago (2014-03-31 06:54:16 UTC) #2
tzik
Looks good overall. Does it make thing easier to separate StorageObserverList and HostStorageObserver apart? https://codereview.chromium.org/218793002/diff/1/webkit/browser/quota/storage_monitor.cc ...
6 years, 8 months ago (2014-03-31 07:45:48 UTC) #3
tmdiep
Thanks for the review. All your suggestions have been addressed in patch set 2. > ...
6 years, 8 months ago (2014-04-01 01:04:52 UTC) #4
tmdiep
+kinuko for webkit/storage_browser.gyp
6 years, 8 months ago (2014-04-01 01:41:37 UTC) #5
tmdiep
Might help if I add kinuko to reviewers. +kinuko for webkit/storage_browser.gyp
6 years, 8 months ago (2014-04-01 01:47:59 UTC) #6
tzik
Thanks! LGTM.
6 years, 8 months ago (2014-04-02 05:44:10 UTC) #7
tmdiep
Ping kinuko for webkit/storage_browser.gyp. I'll be going on leave for 1 month in less than ...
6 years, 8 months ago (2014-04-02 22:52:21 UTC) #8
nhiroki
Sorry for my delayed response. LGTM2.
6 years, 8 months ago (2014-04-03 01:30:40 UTC) #9
kinuko
lgtm for webkit/*.gypi, sorry this one had slipped under my radar.
6 years, 8 months ago (2014-04-03 03:59:52 UTC) #10
tmdiep
No problem, thanks all :)
6 years, 8 months ago (2014-04-03 05:34:14 UTC) #11
tmdiep
The CQ bit was checked by tmdiep@chromium.org
6 years, 8 months ago (2014-04-03 06:15:40 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tmdiep@chromium.org/218793002/100001
6 years, 8 months ago (2014-04-03 06:16:07 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-03 10:12:49 UTC) #14
commit-bot: I haz the power
Commit queue rejected this change because the description was changed between the time the change ...
6 years, 8 months ago (2014-04-03 10:12:49 UTC) #15
tmdiep
The CQ bit was checked by tmdiep@chromium.org
6 years, 8 months ago (2014-04-03 10:15:27 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tmdiep@chromium.org/218793002/100001
6 years, 8 months ago (2014-04-03 10:17:04 UTC) #17
commit-bot: I haz the power
6 years, 8 months ago (2014-04-03 12:02:24 UTC) #18
Message was sent while issue was closed.
Change committed as 261358

Powered by Google App Engine
This is Rietveld 408576698