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

Issue 1023473003: Allow BackoffEntry to be serialized and deserialized. (Closed)

Created:
5 years, 9 months ago by johnme
Modified:
5 years, 7 months ago
Reviewers:
davidben, mmenke
CC:
chromium-reviews, cbentzel+watch_chromium.org, Ryan Sleevi
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow BackoffEntry to be serialized and deserialized. This will be used by push messaging for https://crbug.com/465399, where we need to continue retrying unregistration even if the browser gets killed and restarted. BUG=465399 Committed: https://crrev.com/6727a62ae541389ec4a5264b279485d75e2c4fe5 Cr-Commit-Position: refs/heads/master@{#328755}

Patch Set 1 #

Patch Set 2 : Factor out a BackoffRequestSerializer class #

Patch Set 3 : Tweak comments #

Total comments: 27

Patch Set 4 : Addressed mmenke's review comments #

Total comments: 25

Patch Set 5 : Addressed mmenke's review nits #

Total comments: 6

Patch Set 6 : Address mmenke's final review nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+353 lines, -9 lines) Patch
M net/base/backoff_entry.h View 1 2 3 4 4 chunks +13 lines, -2 lines 0 comments Download
M net/base/backoff_entry.cc View 1 2 3 2 chunks +16 lines, -7 lines 0 comments Download
A net/base/backoff_entry_serializer.h View 1 2 3 4 1 chunk +55 lines, -0 lines 0 comments Download
A net/base/backoff_entry_serializer.cc View 1 2 3 4 5 1 chunk +92 lines, -0 lines 0 comments Download
A net/base/backoff_entry_serializer_unittest.cc View 1 2 3 4 5 1 chunk +174 lines, -0 lines 0 comments Download
M net/net.gypi View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (4 generated)
johnme
This patch introduces some potential for integer overflows; I've uploaded a follow-up patch which fixes ...
5 years, 9 months ago (2015-03-27 20:10:45 UTC) #2
Ryan Sleevi
My inclination is not LG, but I'm going to redirect to mmenke and davidben who ...
5 years, 9 months ago (2015-03-27 20:26:45 UTC) #4
mmenke
On 2015/03/27 20:26:45, Ryan Sleevi wrote: > My inclination is not LG, but I'm going ...
5 years, 9 months ago (2015-03-27 20:48:47 UTC) #5
johnme
Ryan wrote: > Arbitrary serialization/deserialization tends to run up against > chromium.org/Home/chromium-security/education/security-tips-for-ipc I'm not sure ...
5 years, 8 months ago (2015-03-30 20:23:24 UTC) #6
mmenke
On 2015/03/30 20:23:24, johnme wrote: > Ryan wrote: > > Arbitrary serialization/deserialization tends to run ...
5 years, 8 months ago (2015-03-31 21:09:15 UTC) #7
Ryan Sleevi
On 2015/03/31 21:09:15, mmenke wrote: > The ability to resume backoff between browser restarts > ...
5 years, 8 months ago (2015-03-31 21:32:26 UTC) #8
mmenke
On 2015/03/31 21:32:26, Ryan Sleevi wrote: > On 2015/03/31 21:09:15, mmenke wrote: > > The ...
5 years, 8 months ago (2015-03-31 22:23:13 UTC) #9
johnme
On 2015/03/31 21:32:26, Ryan Sleevi wrote: > On 2015/03/31 21:09:15, mmenke wrote: > > so ...
5 years, 8 months ago (2015-04-01 19:09:02 UTC) #10
Ryan Sleevi
On 2015/04/01 19:09:02, johnme wrote: > I could refactor BackoffRequest to remove ImplGetTimeNow and have ...
5 years, 8 months ago (2015-04-09 01:01:02 UTC) #11
johnme
Refactored as suggested. PTAL. On 2015/04/09 01:01:02, Ryan Sleevi wrote: > On 2015/04/01 19:09:02, johnme ...
5 years, 7 months ago (2015-04-29 16:45:39 UTC) #12
mmenke
Haven't gone over the tests yet https://codereview.chromium.org/1023473003/diff/40001/net/base/backoff_entry.h File net/base/backoff_entry.h (right): https://codereview.chromium.org/1023473003/diff/40001/net/base/backoff_entry.h#newcode110 net/base/backoff_entry.h:110: base::TimeDelta time_until_release) const; ...
5 years, 7 months ago (2015-05-05 15:47:52 UTC) #13
johnme
Addressed mmenke's review comments - thanks! https://codereview.chromium.org/1023473003/diff/40001/net/base/backoff_entry.h File net/base/backoff_entry.h (right): https://codereview.chromium.org/1023473003/diff/40001/net/base/backoff_entry.h#newcode110 net/base/backoff_entry.h:110: base::TimeDelta time_until_release) const; ...
5 years, 7 months ago (2015-05-06 12:46:47 UTC) #14
mmenke
Most of these are nits. Next pass should be fast, and hope to sign off ...
5 years, 7 months ago (2015-05-06 17:34:48 UTC) #15
johnme
Addressed mmenke's review nits - thanks :) https://codereview.chromium.org/1023473003/diff/60001/net/base/backoff_entry_serializer.cc File net/base/backoff_entry_serializer.cc (right): https://codereview.chromium.org/1023473003/diff/60001/net/base/backoff_entry_serializer.cc#newcode12 net/base/backoff_entry_serializer.cc:12: const int ...
5 years, 7 months ago (2015-05-06 20:38:09 UTC) #16
mmenke
LGTM https://codereview.chromium.org/1023473003/diff/60001/net/base/backoff_entry_serializer_unittest.cc File net/base/backoff_entry_serializer_unittest.cc (right): https://codereview.chromium.org/1023473003/diff/60001/net/base/backoff_entry_serializer_unittest.cc#newcode68 net/base/backoff_entry_serializer_unittest.cc:68: Time later = now_time + TimeDelta::FromDays(1); On 2015/05/06 ...
5 years, 7 months ago (2015-05-06 20:48:44 UTC) #17
johnme
Addressed mmenke's final review nits - thanks :) https://codereview.chromium.org/1023473003/diff/80001/net/base/backoff_entry_serializer.cc File net/base/backoff_entry_serializer.cc (right): https://codereview.chromium.org/1023473003/diff/80001/net/base/backoff_entry_serializer.cc#newcode66 net/base/backoff_entry_serializer.cc:66: || ...
5 years, 7 months ago (2015-05-07 12:16:01 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1023473003/100001
5 years, 7 months ago (2015-05-07 12:16:18 UTC) #21
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 7 months ago (2015-05-07 13:48:43 UTC) #22
commit-bot: I haz the power
5 years, 7 months ago (2015-05-07 13:49:41 UTC) #23
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/6727a62ae541389ec4a5264b279485d75e2c4fe5
Cr-Commit-Position: refs/heads/master@{#328755}

Powered by Google App Engine
This is Rietveld 408576698