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

Issue 2354643002: Add a cache counter for iOS. (Closed)

Created:
4 years, 3 months ago by msramek
Modified:
4 years, 3 months ago
Reviewers:
droger, ioanap
CC:
chromium-reviews, markusheintz_, msramek+watch_chromium.org, sdefresne+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a cache counter for iOS. The CacheCounter class in chrome/browser/browsing_data could not be componentized (unlike other counters in components/browsing_data) because of its usage of StoragePartitionHttpCacheDataRemover that has a dependency on content/. This CL implements a separate CacheCounter class for iOS with the same functionality. The core of the implementation, a series of IO thread callbacks, is delegated to the private IOThreadCacheCounter class that mimics StoragePartitionHttpCacheDataRemover. BUG=620317 Committed: https://crrev.com/2d290dc4a1bcac7ad6cd67553e5831fa3680d6bb Cr-Commit-Position: refs/heads/master@{#420599}

Patch Set 1 #

Patch Set 2 : Compilation fixes #

Patch Set 3 : Compilation fixes #2 #

Patch Set 4 : Compilation fixes #3 #

Patch Set 5 : Compilation fixes #5, added test. #

Patch Set 6 : More compilation fixes, this time really added a test. #

Patch Set 7 : Build fixes. #

Patch Set 8 : More build fixes #

Patch Set 9 : More fixes. #

Patch Set 10 : Rebase #

Patch Set 11 : Fixed test compilation. #

Patch Set 12 : Test fixes. #

Patch Set 13 : Test improvement and fixes. #

Patch Set 14 : Another test fix. #

Patch Set 15 : Fix hangup. #

Patch Set 16 : Fix another hangup. #

Patch Set 17 : Try without ClearCache() #

Patch Set 18 : Join the entry creation and deletion code. #

Patch Set 19 : More compilation fixes. #

Patch Set 20 : Fix another hangup. #

Total comments: 12

Patch Set 21 : Addressed comments. #

Patch Set 22 : Fixed test, reverted utils. #

Patch Set 23 : Compilation fix. #

Patch Set 24 : Forgot |next_step_| #

Unified diffs Side-by-side diffs Delta from patch set Stats (+496 lines, -13 lines) Patch
M ios/chrome/BUILD.gn View 1 2 3 4 5 6 7 3 chunks +3 lines, -0 lines 0 comments Download
M ios/chrome/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
A + ios/chrome/browser/browsing_data/cache_counter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +17 lines, -13 lines 0 comments Download
A ios/chrome/browser/browsing_data/cache_counter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +144 lines, -0 lines 0 comments Download
A ios/chrome/browser/browsing_data/cache_counter_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +326 lines, -0 lines 0 comments Download
M ios/chrome/browser/browsing_data/ios_browsing_data_counter_factory.cc View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 108 (100 generated)
msramek
Hey David, Please have a look! This is a part of Ioana's recent work on ...
4 years, 3 months ago (2016-09-22 12:35:15 UTC) #74
msramek
+Ioana PTAL as well :)
4 years, 3 months ago (2016-09-22 12:35:36 UTC) #76
ioanap
lgtm Could you also update browsing_data::GetCounterTextFromResult in components/browsing_data/core/browsing_data_utils.cc and GetChromeCounterTextFromResult in c/b/browsing_data/browsing_data_counter_utils.cc ? I think ...
4 years, 3 months ago (2016-09-22 13:39:53 UTC) #79
droger
lgtm https://codereview.chromium.org/2354643002/diff/380001/ios/chrome/browser/browsing_data/cache_counter.cc File ios/chrome/browser/browsing_data/cache_counter.cc (right): https://codereview.chromium.org/2354643002/diff/380001/ios/chrome/browser/browsing_data/cache_counter.cc#newcode45 ios/chrome/browser/browsing_data/cache_counter.cc:45: void CountInternal(int rv) { Add DCHECK_CURRENTLY_ON(IO); https://codereview.chromium.org/2354643002/diff/380001/ios/chrome/browser/browsing_data/cache_counter.cc#newcode64 ios/chrome/browser/browsing_data/cache_counter.cc:64: ...
4 years, 3 months ago (2016-09-22 14:13:02 UTC) #80
msramek
Thanks both! Ioana, as discussed offline, it's not possible to move the CacheCounter text processing ...
4 years, 3 months ago (2016-09-22 17:02:40 UTC) #91
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2354643002/480001
4 years, 3 months ago (2016-09-23 08:57:56 UTC) #105
commit-bot: I haz the power
Committed patchset #24 (id:480001)
4 years, 3 months ago (2016-09-23 11:36:48 UTC) #106
commit-bot: I haz the power
4 years, 3 months ago (2016-09-23 11:38:21 UTC) #108
Message was sent while issue was closed.
Patchset 24 (id:??) landed as
https://crrev.com/2d290dc4a1bcac7ad6cd67553e5831fa3680d6bb
Cr-Commit-Position: refs/heads/master@{#420599}

Powered by Google App Engine
This is Rietveld 408576698