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

Issue 248803003: ServiceWorker: Store registration data in ServiceWorkerDatabase (Closed)

Created:
6 years, 8 months ago by nhiroki
Modified:
6 years, 7 months ago
CC:
chromium-reviews, jsbell+serviceworker_chromium.org, tzik, serviceworker-reviews, jam, darin-cc_chromium.org, horo+watch_chromium.org, kinuko+watch, alecflett+watch_chromium.org
Visibility:
Public.

Description

ServiceWorker: Store registration data in ServiceWorkerDatabase This CL adds: - proto file for RegistrationData and ResourceRecords - reading/writing/deleting operations for RegistrationData - unittests for these operations BUG=364099 TEST=content_unittests --gtest_filter=ServiceWorkerDatabaseTest.* Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=266760

Patch Set 1 : #

Total comments: 22

Patch Set 2 : address comments and focus on registration manipulation #

Patch Set 3 : rebase on https://codereview.chromium.org/257593003/ #

Total comments: 12

Patch Set 4 : review fix #

Total comments: 12

Patch Set 5 : review fix #

Patch Set 6 : rebase #

Patch Set 7 : fix win build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+660 lines, -46 lines) Patch
M content/browser/service_worker/service_worker_database.h View 1 2 3 4 5 6 6 chunks +57 lines, -6 lines 0 comments Download
M content/browser/service_worker/service_worker_database.cc View 1 2 3 4 8 chunks +362 lines, -38 lines 0 comments Download
A content/browser/service_worker/service_worker_database.proto View 1 2 3 1 chunk +31 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_database_unittest.cc View 1 2 3 4 4 chunks +192 lines, -2 lines 0 comments Download
A content/browser/service_worker/service_worker_proto.gyp View 1 chunk +16 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
nhiroki
Hi michaeln@ and jsbell@, This CL seems still rough and hasn't been well-tested yet, but ...
6 years, 8 months ago (2014-04-23 11:59:04 UTC) #1
jsbell
Just a few observations. michaeln@ will have more. https://codereview.chromium.org/248803003/diff/40001/content/browser/service_worker/service_worker_database.cc File content/browser/service_worker/service_worker_database.cc (right): https://codereview.chromium.org/248803003/diff/40001/content/browser/service_worker/service_worker_database.cc#newcode73 content/browser/service_worker/service_worker_database.cc:73: std::string ...
6 years, 8 months ago (2014-04-23 22:55:54 UTC) #2
michaeln
wdyt about the api and schema changes outlined below? https://codereview.chromium.org/248803003/diff/40001/content/browser/service_worker/service_worker_database.cc File content/browser/service_worker/service_worker_database.cc (right): https://codereview.chromium.org/248803003/diff/40001/content/browser/service_worker/service_worker_database.cc#newcode15 content/browser/service_worker/service_worker_database.cc:15: ...
6 years, 8 months ago (2014-04-24 00:35:03 UTC) #3
nhiroki
Thank you for reviewing! Comment reply only. https://codereview.chromium.org/248803003/diff/40001/content/browser/service_worker/service_worker_database.cc File content/browser/service_worker/service_worker_database.cc (right): https://codereview.chromium.org/248803003/diff/40001/content/browser/service_worker/service_worker_database.cc#newcode15 content/browser/service_worker/service_worker_database.cc:15: #include "content/browser/service_worker/service_worker_database.pb.h" ...
6 years, 8 months ago (2014-04-24 05:57:29 UTC) #4
nhiroki
Updated. PTAL. https://codereview.chromium.org/248803003/diff/40001/content/browser/service_worker/service_worker_database.cc File content/browser/service_worker/service_worker_database.cc (right): https://codereview.chromium.org/248803003/diff/40001/content/browser/service_worker/service_worker_database.cc#newcode73 content/browser/service_worker/service_worker_database.cc:73: std::string RemovePrefix(const std::string& str, On 2014/04/23 22:55:54, ...
6 years, 8 months ago (2014-04-24 12:12:37 UTC) #5
nhiroki
fyi: factored out non-essential parts into a separate patch (https://codereview.chromium.org/257593003/)
6 years, 8 months ago (2014-04-24 12:54:50 UTC) #6
michaeln
looking pretty good https://codereview.chromium.org/248803003/diff/140001/content/browser/service_worker/service_worker_database.cc File content/browser/service_worker/service_worker_database.cc (right): https://codereview.chromium.org/248803003/diff/140001/content/browser/service_worker/service_worker_database.cc#newcode94 content/browser/service_worker/service_worker_database.cc:94: GURL origin = GURL(data.scope_url()).GetOrigin(); Maybe this ...
6 years, 8 months ago (2014-04-25 00:48:20 UTC) #7
nhiroki
Thanks! Reply only. https://codereview.chromium.org/248803003/diff/140001/content/browser/service_worker/service_worker_database.cc File content/browser/service_worker/service_worker_database.cc (right): https://codereview.chromium.org/248803003/diff/140001/content/browser/service_worker/service_worker_database.cc#newcode94 content/browser/service_worker/service_worker_database.cc:94: GURL origin = GURL(data.scope_url()).GetOrigin(); On 2014/04/25 ...
6 years, 8 months ago (2014-04-25 02:06:11 UTC) #8
michaeln
super duper! now if only the cq would commit things in a timely fashion :)
6 years, 8 months ago (2014-04-25 02:16:29 UTC) #9
kinuko
https://codereview.chromium.org/248803003/diff/140001/content/browser/service_worker/service_worker_database.cc File content/browser/service_worker/service_worker_database.cc (right): https://codereview.chromium.org/248803003/diff/140001/content/browser/service_worker/service_worker_database.cc#newcode94 content/browser/service_worker/service_worker_database.cc:94: GURL origin = GURL(data.scope_url()).GetOrigin(); On 2014/04/25 00:48:21, michaeln wrote: ...
6 years, 8 months ago (2014-04-25 03:43:26 UTC) #10
nhiroki
Updated the CL and removed 'wip' mark. Can you take another look? Thanks! https://codereview.chromium.org/248803003/diff/140001/content/browser/service_worker/service_worker_database.cc File ...
6 years, 8 months ago (2014-04-25 11:01:04 UTC) #11
nhiroki
https://codereview.chromium.org/248803003/diff/200001/content/browser/service_worker/service_worker_database.cc File content/browser/service_worker/service_worker_database.cc (left): https://codereview.chromium.org/248803003/diff/200001/content/browser/service_worker/service_worker_database.cc#oldcode137 content/browser/service_worker/service_worker_database.cc:137: if (IsEmpty() && !PopulateInitialData()) { fyi: Removed all write ...
6 years, 8 months ago (2014-04-25 11:05:00 UTC) #12
michaeln
lgtm https://codereview.chromium.org/248803003/diff/140001/content/browser/service_worker/service_worker_database.cc File content/browser/service_worker/service_worker_database.cc (right): https://codereview.chromium.org/248803003/diff/140001/content/browser/service_worker/service_worker_database.cc#newcode94 content/browser/service_worker/service_worker_database.cc:94: GURL origin = GURL(data.scope_url()).GetOrigin(); I think the serialization ...
6 years, 8 months ago (2014-04-26 00:29:01 UTC) #13
nhiroki
https://codereview.chromium.org/248803003/diff/200001/content/browser/service_worker/service_worker_database.cc File content/browser/service_worker/service_worker_database.cc (right): https://codereview.chromium.org/248803003/diff/200001/content/browser/service_worker/service_worker_database.cc#newcode106 content/browser/service_worker/service_worker_database.cc:106: GURL origin = GURL(data.scope_url()).GetOrigin(); On 2014/04/26 00:29:02, michaeln wrote: ...
6 years, 8 months ago (2014-04-28 04:15:58 UTC) #14
nhiroki
The CQ bit was checked by nhiroki@chromium.org
6 years, 8 months ago (2014-04-28 04:18:41 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nhiroki@chromium.org/248803003/240001
6 years, 8 months ago (2014-04-28 04:19:19 UTC) #16
nhiroki
The CQ bit was unchecked by nhiroki@chromium.org
6 years, 7 months ago (2014-04-28 15:10:35 UTC) #17
nhiroki
The CQ bit was checked by nhiroki@chromium.org
6 years, 7 months ago (2014-04-28 15:19:28 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nhiroki@chromium.org/248803003/260001
6 years, 7 months ago (2014-04-28 15:19:46 UTC) #19
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-28 16:04:13 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on win_chromium_x64_rel
6 years, 7 months ago (2014-04-28 16:04:14 UTC) #21
nhiroki
The CQ bit was checked by nhiroki@chromium.org
6 years, 7 months ago (2014-04-28 16:47:44 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nhiroki@chromium.org/248803003/260001
6 years, 7 months ago (2014-04-28 16:47:54 UTC) #23
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-28 17:49:51 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_rel
6 years, 7 months ago (2014-04-28 17:49:51 UTC) #25
nhiroki
The CQ bit was checked by nhiroki@chromium.org
6 years, 7 months ago (2014-04-29 02:24:45 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nhiroki@chromium.org/248803003/260001
6 years, 7 months ago (2014-04-29 02:25:17 UTC) #27
commit-bot: I haz the power
6 years, 7 months ago (2014-04-29 07:21:36 UTC) #28
Message was sent while issue was closed.
Change committed as 266760

Powered by Google App Engine
This is Rietveld 408576698