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

Issue 8396013: AppCache INTERCEPT namespace. (Closed)

Created:
9 years, 2 months ago by michaeln
Modified:
9 years ago
Reviewers:
jennb
CC:
chromium-reviews, darin-cc_chromium.org
Visibility:
Public.

Description

AppCache INTERCEPT namespace. - Add support for a custom CHROMIUM CACHE MANIFEST signature. Other browsers should ignore files with this signature. - Parse intercept namespace entries out of the new CHROMIUM-INTERCEPT manifest section. Other browsers should ignore this entire section. - Store and retrieve the new kind of namespace records in the database layer. - Upgrade existing databases to the new schema. - Look for matches in the new namespaces when handling main and sub resource requests. - Add unit tests. BUG=101565 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=114151

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Total comments: 18

Patch Set 10 : '' #

Patch Set 11 : '' #

Total comments: 4

Patch Set 12 : '' #

Total comments: 1

Patch Set 13 : '' #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+1123 lines, -369 lines) Patch
M sql/connection.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +6 lines, -0 lines 0 comments Download
M sql/connection.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +12 lines, -2 lines 0 comments Download
M webkit/appcache/appcache.h View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +14 lines, -4 lines 0 comments Download
M webkit/appcache/appcache.cc View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +60 lines, -23 lines 0 comments Download
M webkit/appcache/appcache_database.h View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +29 lines, -16 lines 0 comments Download
M webkit/appcache/appcache_database.cc View 1 2 3 4 5 6 7 8 9 10 11 12 12 chunks +144 lines, -76 lines 0 comments Download
M webkit/appcache/appcache_database_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +278 lines, -57 lines 0 comments Download
M webkit/appcache/appcache_entry.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -0 lines 0 comments Download
M webkit/appcache/appcache_interfaces.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +18 lines, -0 lines 0 comments Download
M webkit/appcache/appcache_interfaces.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +18 lines, -5 lines 0 comments Download
M webkit/appcache/appcache_storage_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 14 chunks +117 lines, -85 lines 0 comments Download
M webkit/appcache/appcache_storage_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 10 chunks +101 lines, -21 lines 1 comment Download
M webkit/appcache/appcache_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +46 lines, -11 lines 0 comments Download
M webkit/appcache/appcache_update_job.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +9 lines, -5 lines 0 comments Download
M webkit/appcache/appcache_update_job_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 10 chunks +76 lines, -14 lines 0 comments Download
M webkit/appcache/manifest_parser.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -3 lines 0 comments Download
M webkit/appcache/manifest_parser.cc View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +86 lines, -5 lines 0 comments Download
M webkit/appcache/manifest_parser_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 chunks +94 lines, -36 lines 0 comments Download
M webkit/appcache/mock_appcache_storage_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +8 lines, -6 lines 0 comments Download
M webkit/appcache/view_appcache_internals_job.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
michaeln
hi jenn, this is quite ready for review yet but its getting close and i'm ...
9 years ago (2011-12-02 00:23:30 UTC) #1
jennb
Overall, looks good so far. Looks like most of this is "renaming" of the fallback ...
9 years ago (2011-12-05 23:23:07 UTC) #2
michaeln
not updated yet, i'll ping you when i do and add more unit tests... thnx ...
9 years ago (2011-12-06 02:07:05 UTC) #3
michaeln
still need new tests http://codereview.chromium.org/8396013/diff/32026/webkit/appcache/appcache_database_unittest.cc File webkit/appcache/appcache_database_unittest.cc (right): http://codereview.chromium.org/8396013/diff/32026/webkit/appcache/appcache_database_unittest.cc#newcode345 webkit/appcache/appcache_database_unittest.cc:345: std::vector<AppCacheDatabase::NamespaceRecord> records; On 2011/12/05 23:23:07, ...
9 years ago (2011-12-06 19:41:24 UTC) #4
jennb
Patch set 11 - looks alright so far. I'm trying to look periodically so the ...
9 years ago (2011-12-07 21:55:08 UTC) #5
michaeln
I've added unittests in snapshot 12. http://codereview.chromium.org/8396013/diff/42001/sql/connection.h File sql/connection.h (right): http://codereview.chromium.org/8396013/diff/42001/sql/connection.h#newcode289 sql/connection.h:289: // Internal helper ...
9 years ago (2011-12-08 01:38:59 UTC) #6
michaeln
http://codereview.chromium.org/8396013/diff/51001/webkit/appcache/appcache_storage_impl.cc File webkit/appcache/appcache_storage_impl.cc (right): http://codereview.chromium.org/8396013/diff/51001/webkit/appcache/appcache_storage_impl.cc#newcode838 webkit/appcache/appcache_storage_impl.cc:838: NetworkNamespaceHelper* network_namespace_helper); hmmm... some compilers might complain about this ...
9 years ago (2011-12-08 02:06:34 UTC) #7
michaeln
fixed some lint errors in #13
9 years ago (2011-12-08 22:01:29 UTC) #8
michaeln
ping
9 years ago (2011-12-13 00:20:26 UTC) #9
jennb
9 years ago (2011-12-13 00:33:09 UTC) #10
LGTM

http://codereview.chromium.org/8396013/diff/55002/webkit/appcache/appcache_st...
File webkit/appcache/appcache_storage_impl_unittest.cc (right):

http://codereview.chromium.org/8396013/diff/55002/webkit/appcache/appcache_st...
webkit/appcache/appcache_storage_impl_unittest.cc:978: // MakeCacheAndGroup has
inserted  the default entry record already
extra space in sentence

Powered by Google App Engine
This is Rietveld 408576698