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

Issue 2872933003: Add base persistence interfaces for Prefetching Offline Pages. (Closed)

Created:
3 years, 7 months ago by carlosk
Modified:
3 years, 7 months ago
CC:
chromium-reviews, romax+watch_chromium.org, fgorski+watch_chromium.org, dewittj+watch_chromium.org, petewil+watch_chromium.org, chili+watch_chromium.org, dimich+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add base persistence interfaces for Prefetching Offline Pages. BUG=701939 Review-Url: https://codereview.chromium.org/2872933003 Cr-Commit-Position: refs/heads/master@{#472166} Committed: https://chromium.googlesource.com/chromium/src/+/e01ab251f17d5460f8f0865ef681f18ba1042c8b

Patch Set 1 #

Total comments: 27

Patch Set 2 : Addressed comments and other changes; added constants file. #

Total comments: 10

Patch Set 3 : Renamed constants file; removed ClientId dependency; and more. #

Total comments: 2

Patch Set 4 : Added unittest and operator!=; added string client_id; renamed members. #

Patch Set 5 : Actually adding the unit test now. #

Patch Set 6 : Moved constructors and destructor to implementation file. #

Total comments: 8

Patch Set 7 : Comment updates. #

Patch Set 8 : Rebase. #

Patch Set 9 : Rename NO_ERROR to SUCCESS because of Windows. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+251 lines, -0 lines) Patch
M components/offline_pages/core/prefetch/BUILD.gn View 1 2 3 4 5 6 7 2 chunks +3 lines, -0 lines 0 comments Download
A components/offline_pages/core/prefetch/prefetch_item.h View 1 2 3 4 5 6 7 8 1 chunk +92 lines, -0 lines 0 comments Download
A components/offline_pages/core/prefetch/prefetch_item.cc View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
A components/offline_pages/core/prefetch/prefetch_item_unittest.cc View 1 2 3 4 1 chunk +84 lines, -0 lines 0 comments Download
M components/offline_pages/core/prefetch/prefetch_types.h View 1 2 3 4 5 6 7 8 1 chunk +40 lines, -0 lines 0 comments Download

Messages

Total messages: 55 (30 generated)
Dmitry Titov
https://codereview.chromium.org/2872933003/diff/1/components/offline_pages/core/prefetch/prefetch_item.h File components/offline_pages/core/prefetch/prefetch_item.h (right): https://codereview.chromium.org/2872933003/diff/1/components/offline_pages/core/prefetch/prefetch_item.h#newcode53 components/offline_pages/core/prefetch/prefetch_item.h:53: // to confirm that the same URL is not ...
3 years, 7 months ago (2017-05-09 20:42:26 UTC) #2
fgorski
drive by https://codereview.chromium.org/2872933003/diff/1/components/offline_pages/core/prefetch/prefetch_item.h File components/offline_pages/core/prefetch/prefetch_item.h (right): https://codereview.chromium.org/2872933003/diff/1/components/offline_pages/core/prefetch/prefetch_item.h#newcode28 components/offline_pages/core/prefetch/prefetch_item.h:28: enum class State { Is there a ...
3 years, 7 months ago (2017-05-09 22:31:32 UTC) #4
dewittj
https://codereview.chromium.org/2872933003/diff/1/components/offline_pages/core/prefetch/prefetch_item.h File components/offline_pages/core/prefetch/prefetch_item.h (right): https://codereview.chromium.org/2872933003/diff/1/components/offline_pages/core/prefetch/prefetch_item.h#newcode19 components/offline_pages/core/prefetch/prefetch_item.h:19: // Instances of this class are mainly used for ...
3 years, 7 months ago (2017-05-09 22:41:25 UTC) #6
carlosk
Thanks. dimich@, fgorski@, dewittj@: PTAL. I created a new header to hold prefetcher constants, added ...
3 years, 7 months ago (2017-05-09 23:57:40 UTC) #7
Dmitry Titov
I think we should just go to guid, see the comment for additional info. https://codereview.chromium.org/2872933003/diff/1/components/offline_pages/core/prefetch/prefetch_item.h ...
3 years, 7 months ago (2017-05-10 00:44:47 UTC) #8
fgorski
https://codereview.chromium.org/2872933003/diff/20001/components/offline_pages/core/prefetch/prefetch_constants.h File components/offline_pages/core/prefetch/prefetch_constants.h (right): https://codereview.chromium.org/2872933003/diff/20001/components/offline_pages/core/prefetch/prefetch_constants.h#newcode13 components/offline_pages/core/prefetch/prefetch_constants.h:13: enum class PrefetchItemState { I don't thing my original ...
3 years, 7 months ago (2017-05-10 05:02:53 UTC) #9
carlosk
Thanks. https://codereview.chromium.org/2872933003/diff/1/components/offline_pages/core/prefetch/prefetch_item.h File components/offline_pages/core/prefetch/prefetch_item.h (right): https://codereview.chromium.org/2872933003/diff/1/components/offline_pages/core/prefetch/prefetch_item.h#newcode64 components/offline_pages/core/prefetch/prefetch_item.h:64: int64_t id = INVALID_ID; On 2017/05/10 00:44:47, Dmitry ...
3 years, 7 months ago (2017-05-10 22:48:54 UTC) #10
dewittj
please add prefetch_types.h to this CL
3 years, 7 months ago (2017-05-11 17:04:27 UTC) #11
dewittj
https://codereview.chromium.org/2872933003/diff/40001/components/offline_pages/core/prefetch/prefetch_item.cc File components/offline_pages/core/prefetch/prefetch_item.cc (right): https://codereview.chromium.org/2872933003/diff/40001/components/offline_pages/core/prefetch/prefetch_item.cc#newcode9 components/offline_pages/core/prefetch/prefetch_item.cc:9: bool PrefetchItem::operator==(const PrefetchItem& other) const { If you have ...
3 years, 7 months ago (2017-05-11 17:07:13 UTC) #12
carlosk
On 2017/05/11 17:04:27, dewittj wrote: > please add prefetch_types.h to this CL Done! Thanks for ...
3 years, 7 months ago (2017-05-11 22:59:52 UTC) #13
Dmitry Titov
lgtm
3 years, 7 months ago (2017-05-12 00:26:22 UTC) #14
dewittj
lgtm
3 years, 7 months ago (2017-05-12 18:33:13 UTC) #19
fgorski
lgtm with comments. (about comments and formatting) https://codereview.chromium.org/2872933003/diff/100001/components/offline_pages/core/prefetch/prefetch_item.cc File components/offline_pages/core/prefetch/prefetch_item.cc (right): https://codereview.chromium.org/2872933003/diff/100001/components/offline_pages/core/prefetch/prefetch_item.cc#newcode13 components/offline_pages/core/prefetch/prefetch_item.cc:13: PrefetchItem::~PrefetchItem(){}; was ...
3 years, 7 months ago (2017-05-12 22:54:06 UTC) #24
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/2872933003/140001
3 years, 7 months ago (2017-05-12 23:06:12 UTC) #28
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/2872933003/160001
3 years, 7 months ago (2017-05-12 23:13:42 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/210278) ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 7 months ago (2017-05-12 23:18:00 UTC) #35
carlosk
Thanks! https://codereview.chromium.org/2872933003/diff/100001/components/offline_pages/core/prefetch/prefetch_item.cc File components/offline_pages/core/prefetch/prefetch_item.cc (right): https://codereview.chromium.org/2872933003/diff/100001/components/offline_pages/core/prefetch/prefetch_item.cc#newcode13 components/offline_pages/core/prefetch/prefetch_item.cc:13: PrefetchItem::~PrefetchItem(){}; On 2017/05/12 22:54:06, fgorski wrote: > was ...
3 years, 7 months ago (2017-05-13 01:54:32 UTC) #36
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/2872933003/180001
3 years, 7 months ago (2017-05-13 01:55:01 UTC) #39
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/410529)
3 years, 7 months ago (2017-05-13 02:29:12 UTC) #41
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/2872933003/180001
3 years, 7 months ago (2017-05-15 22:10:29 UTC) #43
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/445075) win_clang on master.tryserver.chromium.win (JOB_FAILED, ...
3 years, 7 months ago (2017-05-15 22:58:12 UTC) #45
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/2872933003/200001
3 years, 7 months ago (2017-05-16 01:06:55 UTC) #48
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/454306)
3 years, 7 months ago (2017-05-16 03:22:05 UTC) #50
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/2872933003/200001
3 years, 7 months ago (2017-05-16 17:22:17 UTC) #52
commit-bot: I haz the power
3 years, 7 months ago (2017-05-16 18:24:39 UTC) #55
Message was sent while issue was closed.
Committed patchset #9 (id:200001) as
https://chromium.googlesource.com/chromium/src/+/e01ab251f17d5460f8f0865ef681...

Powered by Google App Engine
This is Rietveld 408576698