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

Issue 2556433003: Support optional performance measuring in SubresourceFilter. (Closed)

Created:
4 years ago by pkalinnikov
Modified:
4 years ago
Reviewers:
palmer, engedy, mattm
CC:
chromium-reviews, darin-cc_chromium.org, jam, mlamouri+watch-content_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Support optional performance measuring in SubresourceFilter. The purpose of this CL is to provide a mechanism for enabling or disabling SubresourceFilter's performance measuring on a per-page basis, i.e. consistently for all DocumentSubresourceFilter instances of a page. A decision on whether to measure performance (currently always true) originates in ContentSubresourceFilterDriverFactory. It is distributed to SubresourceFilterAgents first in the ActivateForProvisionalLoad message, and eventually reaches individual DocumentSubresourceFilter instances corresponding to each subframe document. BUG=672519 Committed: https://crrev.com/88e76494111e68722f089ad41da81fe258ae09ab Cr-Commit-Position: refs/heads/master@{#437837}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Address comments of engedy@ #

Patch Set 3 : Fix build. #

Total comments: 2

Patch Set 4 : Link TODO to a bug. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+122 lines, -55 lines) Patch
M chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc View 1 2 5 chunks +10 lines, -6 lines 0 comments Download
M components/subresource_filter/content/browser/content_subresource_filter_driver.h View 1 chunk +2 lines, -1 line 0 comments Download
M components/subresource_filter/content/browser/content_subresource_filter_driver.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc View 1 2 3 1 chunk +8 lines, -2 lines 0 comments Download
M components/subresource_filter/content/browser/content_subresource_filter_driver_factory_unittest.cc View 1 4 chunks +6 lines, -5 lines 0 comments Download
M components/subresource_filter/content/common/subresource_filter_messages.h View 1 chunk +3 lines, -2 lines 0 comments Download
M components/subresource_filter/content/renderer/document_subresource_filter.h View 1 2 chunks +4 lines, -1 line 0 comments Download
M components/subresource_filter/content/renderer/document_subresource_filter.cc View 2 chunks +6 lines, -3 lines 0 comments Download
M components/subresource_filter/content/renderer/document_subresource_filter_unittest.cc View 1 3 chunks +28 lines, -15 lines 0 comments Download
M components/subresource_filter/content/renderer/subresource_filter_agent.h View 2 chunks +3 lines, -1 line 0 comments Download
M components/subresource_filter/content/renderer/subresource_filter_agent.cc View 1 4 chunks +11 lines, -8 lines 0 comments Download
M components/subresource_filter/content/renderer/subresource_filter_agent_unittest.cc View 1 4 chunks +37 lines, -9 lines 0 comments Download

Messages

Total messages: 35 (21 generated)
pkalinnikov
Balazs, please take a look. 1. Please verify the approach in general. 2. Probably I ...
4 years ago (2016-12-06 16:11:35 UTC) #1
engedy
LGTM % comments. I don't know if there is any way to add an end-to-end ...
4 years ago (2016-12-06 19:19:44 UTC) #4
pkalinnikov
Balazs, PTAL again. https://codereview.chromium.org/2556433003/diff/1/components/subresource_filter/content/browser/content_subresource_filter_driver_factory_unittest.cc File components/subresource_filter/content/browser/content_subresource_filter_driver_factory_unittest.cc (right): https://codereview.chromium.org/2556433003/diff/1/components/subresource_filter/content/browser/content_subresource_filter_driver_factory_unittest.cc#newcode265 components/subresource_filter/content/browser/content_subresource_filter_driver_factory_unittest.cc:265: ActivateForProvisionalLoad(::testing::_, ::testing::_, ::testing::_)) On 2016/12/06 19:19:44, ...
4 years ago (2016-12-07 16:30:49 UTC) #7
engedy
LGTM. Note that you'll need sign-off on IPC changes from a reviewer in ipc/SECURITY_OWNERS.
4 years ago (2016-12-07 16:46:51 UTC) #11
pkalinnikov
Hi Chris, Adding you because you are in "ipc/SECURITY_OWNERS". Can you please review message change ...
4 years ago (2016-12-07 17:07:38 UTC) #15
palmer
IPC LGTM. https://codereview.chromium.org/2556433003/diff/40001/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc File components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc (right): https://codereview.chromium.org/2556433003/diff/40001/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc#newcode126 components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc:126: // the |measure_performance| bit is set. Nit: ...
4 years ago (2016-12-07 20:36:11 UTC) #18
pkalinnikov
Addressed all comments, submitting. https://codereview.chromium.org/2556433003/diff/40001/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc File components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc (right): https://codereview.chromium.org/2556433003/diff/40001/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc#newcode126 components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc:126: // the |measure_performance| bit is ...
4 years ago (2016-12-08 16:40:44 UTC) #20
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/2556433003/60001
4 years ago (2016-12-08 16:41:09 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/321585)
4 years ago (2016-12-08 16:50:27 UTC) #25
pkalinnikov
Hey Matt, Please review the "safe_browsing_service_browsertest.cc" file. Thanks.
4 years ago (2016-12-08 17:33:42 UTC) #27
mattm
safe_browsing lgtm
4 years ago (2016-12-08 22:31:10 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/2556433003/60001
4 years ago (2016-12-12 09:01:16 UTC) #30
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years ago (2016-12-12 09:42:19 UTC) #33
commit-bot: I haz the power
4 years ago (2016-12-12 15:11:12 UTC) #35
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/88e76494111e68722f089ad41da81fe258ae09ab
Cr-Commit-Position: refs/heads/master@{#437837}

Powered by Google App Engine
This is Rietveld 408576698