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

Issue 7720022: Third-party appcache blocking. (Closed)

Created:
9 years, 4 months ago by marja
Modified:
9 years, 3 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, jam, darin-cc_chromium.org, jochen (gone - plz use gerrit)
Visibility:
Public.

Description

Third-party appcache blocking. BUG=72586 TEST=AppCacheHostTest.SelectCacheAllowed, AppCacheHostTest.SelectCacheBlocked, AppCacheRequestHandlerTest.MainResource_Blocked Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=100131

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : . #

Patch Set 6 : Removing policy checks; MockContentBrowserClient fix. #

Patch Set 7 : AppCachePolicy API is sync. Removed tests which depended on the policy checks I just removed. #

Patch Set 8 : Moving checks. #

Total comments: 24

Patch Set 9 : Code review comments (not all). #

Total comments: 2

Patch Set 10 : Code review comments. #

Patch Set 11 : Code review comments. Added tests. #

Patch Set 12 : Cleanup (minor). #

Patch Set 13 : MockAppCachePolicy fixes. #

Total comments: 12

Patch Set 14 : Code review comments. #

Patch Set 15 : Keeping up to date with trunk. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+313 lines, -323 lines) Patch
M chrome/browser/chrome_content_browser_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/renderer_host/offline_resource_handler.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/appcache/chrome_appcache_service.h View 1 2 3 4 5 6 1 chunk +4 lines, -3 lines 0 comments Download
M content/browser/appcache/chrome_appcache_service.cc View 1 2 3 4 5 6 1 chunk +6 lines, -5 lines 0 comments Download
M content/browser/content_browser_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/mock_content_browser_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/mock_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -1 line 0 comments Download
M webkit/appcache/appcache_group.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -3 lines 0 comments Download
M webkit/appcache/appcache_group.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -5 lines 0 comments Download
M webkit/appcache/appcache_host.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +7 lines, -1 line 0 comments Download
M webkit/appcache/appcache_host.cc View 1 2 3 4 5 6 7 8 9 4 chunks +19 lines, -5 lines 0 comments Download
M webkit/appcache/appcache_host_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +87 lines, -2 lines 0 comments Download
M webkit/appcache/appcache_policy.h View 1 2 3 4 5 6 2 chunks +6 lines, -12 lines 0 comments Download
M webkit/appcache/appcache_request_handler.h View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
M webkit/appcache/appcache_request_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +22 lines, -16 lines 0 comments Download
M webkit/appcache/appcache_request_handler_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 6 chunks +47 lines, -0 lines 0 comments Download
M webkit/appcache/appcache_service.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M webkit/appcache/appcache_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +15 lines, -9 lines 0 comments Download
M webkit/appcache/appcache_storage.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -2 lines 0 comments Download
M webkit/appcache/appcache_storage_impl.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M webkit/appcache/appcache_storage_impl.cc View 1 2 3 4 5 6 7 8 4 chunks +4 lines, -18 lines 0 comments Download
M webkit/appcache/appcache_storage_impl_unittest.cc View 1 2 3 4 5 6 7 17 chunks +14 lines, -77 lines 0 comments Download
M webkit/appcache/appcache_update_job.h View 1 2 3 4 5 2 chunks +0 lines, -6 lines 0 comments Download
M webkit/appcache/appcache_update_job.cc View 1 2 3 4 5 5 chunks +2 lines, -42 lines 0 comments Download
M webkit/appcache/appcache_update_job_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 13 chunks +1 line, -103 lines 0 comments Download
A webkit/appcache/mock_appcache_policy.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +30 lines, -0 lines 0 comments Download
A webkit/appcache/mock_appcache_policy.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +28 lines, -0 lines 0 comments Download
M webkit/appcache/mock_appcache_storage.cc View 1 2 3 4 5 6 7 3 chunks +4 lines, -4 lines 0 comments Download
M webkit/appcache/mock_appcache_storage_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -2 lines 0 comments Download
M webkit/appcache/view_appcache_internals_job.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M webkit/tools/test_shell/test_shell.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
michaeln
http://codereview.chromium.org/7720022/diff/16001/chrome/browser/renderer_host/offline_resource_handler.cc File chrome/browser/renderer_host/offline_resource_handler.cc (right): http://codereview.chromium.org/7720022/diff/16001/chrome/browser/renderer_host/offline_resource_handler.cc#newcode115 chrome/browser/renderer_host/offline_resource_handler.cc:115: url, GURL(), appcache_completion_callback_); is it possible to get the ...
9 years, 3 months ago (2011-08-31 23:42:08 UTC) #1
marja
Thanks for the comments. The smaller ones are done (I added some open questions to ...
9 years, 3 months ago (2011-09-02 13:40:23 UTC) #2
michaeln
http://codereview.chromium.org/7720022/diff/16001/webkit/appcache/appcache_request_handler.cc File webkit/appcache/appcache_request_handler.cc (right): http://codereview.chromium.org/7720022/diff/16001/webkit/appcache/appcache_request_handler.cc#newcode229 webkit/appcache/appcache_request_handler.cc:229: !policy->CanLoadAppCache(manifest_url, host_->first_party_url()); in most cases (the "nothing was found" ...
9 years, 3 months ago (2011-09-02 18:47:47 UTC) #3
michaeln
On 2011/09/02 13:40:23, marja wrote: > Thanks for the comments. The smaller ones are done ...
9 years, 3 months ago (2011-09-02 19:27:20 UTC) #4
michaeln
http://codereview.chromium.org/7720022/diff/24001/webkit/appcache/appcache_host.cc File webkit/appcache/appcache_host.cc (right): http://codereview.chromium.org/7720022/diff/24001/webkit/appcache/appcache_host.cc#newcode105 webkit/appcache/appcache_host.cc:105: host_ids.push_back(host_id_); there's a ctor for this single element vector ...
9 years, 3 months ago (2011-09-02 19:32:04 UTC) #5
marja
Thanks again for the comments! http://codereview.chromium.org/7720022/diff/16001/chrome/browser/renderer_host/offline_resource_handler.cc File chrome/browser/renderer_host/offline_resource_handler.cc (right): http://codereview.chromium.org/7720022/diff/16001/chrome/browser/renderer_host/offline_resource_handler.cc#newcode115 chrome/browser/renderer_host/offline_resource_handler.cc:115: url, GURL(), appcache_completion_callback_); On ...
9 years, 3 months ago (2011-09-05 10:42:24 UTC) #6
michaeln
thnx for adding the tests... looks really nice and very close to being wrapped up... ...
9 years, 3 months ago (2011-09-05 19:49:31 UTC) #7
marja
Hi, Here are some more modifications. I had indeed totally missed the deletion of CanHandleOfflineHelper. ...
9 years, 3 months ago (2011-09-06 09:09:28 UTC) #8
marja
Hi avi & tony, Could you review the following parts (you're OWNERS there): avi: content/browser/content_browser_client.h, ...
9 years, 3 months ago (2011-09-06 09:25:13 UTC) #9
tony
test_shell LGTM
9 years, 3 months ago (2011-09-06 18:29:56 UTC) #10
michaeln
LGTM
9 years, 3 months ago (2011-09-06 19:12:53 UTC) #11
Avi (use Gerrit)
content part LGTM
9 years, 3 months ago (2011-09-07 14:38:41 UTC) #12
commit-bot: I haz the power
Can't apply patch for file webkit/appcache/appcache_request_handler.cc. While running patch -p1 --forward --force; patching file webkit/appcache/appcache_request_handler.cc ...
9 years, 3 months ago (2011-09-08 07:27:05 UTC) #13
commit-bot: I haz the power
9 years, 3 months ago (2011-09-08 10:55:25 UTC) #14
Change committed as 100131

Powered by Google App Engine
This is Rietveld 408576698