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

Issue 2655663004: Introduce content-side Feature Policy object and maintain in parallel with renderer policy. (Closed)

Created:
3 years, 10 months ago by iclelland
Modified:
3 years, 9 months ago
CC:
chromium-reviews, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, dglazkov+blink, darin-cc_chromium.org, blink-reviews, blink-reviews-api_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce content-side Feature Policy object and maintain in parallel with renderer policy. This is part 3 of 5 in the effort to move the FeaturePolicy implementation into the content layer, which will facilitate use of the framework for browser- based policy decisions. See the other CLs in this series: [1/5] https://codereview.chromium.org/2648423002/ (Rename classes) [2/5] https://codereview.chromium.org/2654873004/ (Centralize content-side code) [3/5] (This CL) (Maintain parallel FP in browser) [4/5] https://codereview.chromium.org/2651883008/ (Use content/ FP in blink) [5/5] https://codereview.chromium.org/2656533004/ (Remove unused blink code.) BUG=685195 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Review-Url: https://codereview.chromium.org/2655663004 Cr-Commit-Position: refs/heads/master@{#449444} Committed: https://chromium.googlesource.com/chromium/src/+/2c79efe295ea0cd234b3e13b44369fdba046280e

Patch Set 1 #

Patch Set 2 : Add DISALLOW_COPY_AND_ASSIGN macro to FP class #

Patch Set 3 : Rebase #

Total comments: 35

Patch Set 4 : Addressing review comments #

Total comments: 5

Patch Set 5 : Move FeaturePolicy to RenderFrameHostImpl #

Total comments: 8

Patch Set 6 : Simplify FP mirroring logic; move most of it to RFHI #

Total comments: 23

Patch Set 7 : Responding to review comments #

Total comments: 6

Patch Set 8 : Review nits #

Total comments: 2

Patch Set 9 : Add comments for public enum members #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1061 lines, -6 lines) Patch
M content/browser/frame_host/frame_tree_node.h View 1 2 3 4 5 1 chunk +3 lines, -4 lines 0 comments Download
M content/browser/frame_host/frame_tree_node.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M content/browser/frame_host/navigator_impl.cc View 1 2 3 4 5 6 2 chunks +5 lines, -1 line 0 comments Download
M content/browser/frame_host/render_frame_host_impl.h View 1 2 3 4 5 6 7 8 3 chunks +11 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 5 6 7 8 2 chunks +10 lines, -0 lines 0 comments Download
M content/common/feature_policy/feature_policy.h View 1 2 3 4 5 6 2 chunks +171 lines, -0 lines 0 comments Download
M content/common/feature_policy/feature_policy.cc View 1 2 3 4 5 6 7 2 chunks +179 lines, -0 lines 0 comments Download
A content/common/feature_policy/feature_policy_unittest.cc View 1 2 3 4 5 6 7 1 chunk +644 lines, -0 lines 0 comments Download
M content/test/BUILD.gn View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/public/platform/WebFeaturePolicy.h View 1 2 3 4 5 6 7 8 1 chunk +36 lines, -0 lines 0 comments Download

Messages

Total messages: 64 (43 generated)
iclelland
+r raymes, PTAL -- this is starting to get to the meat of the change ...
3 years, 10 months ago (2017-01-26 05:18:07 UTC) #12
raymes
lgtm with a bunch of nits. Thanks! https://codereview.chromium.org/2655663004/diff/40001/content/browser/frame_host/frame_tree_node.cc File content/browser/frame_host/frame_tree_node.cc (right): https://codereview.chromium.org/2655663004/diff/40001/content/browser/frame_host/frame_tree_node.cc#newcode274 content/browser/frame_host/frame_tree_node.cc:274: } optional: ...
3 years, 10 months ago (2017-02-01 22:42:21 UTC) #17
iclelland
https://codereview.chromium.org/2655663004/diff/40001/content/browser/frame_host/frame_tree_node.cc File content/browser/frame_host/frame_tree_node.cc (right): https://codereview.chromium.org/2655663004/diff/40001/content/browser/frame_host/frame_tree_node.cc#newcode274 content/browser/frame_host/frame_tree_node.cc:274: } On 2017/02/01 22:42:20, raymes wrote: > optional: alternatively: ...
3 years, 10 months ago (2017-02-03 16:38:29 UTC) #20
raymes
still lgtm, thanks :)
3 years, 10 months ago (2017-02-03 17:55:18 UTC) #21
iclelland
Thanks, raymes! +r pfeldman, could you PTAL as OWNER?
3 years, 10 months ago (2017-02-03 17:57:57 UTC) #23
pfeldman
https://codereview.chromium.org/2655663004/diff/60001/content/browser/frame_host/frame_tree_node.h File content/browser/frame_host/frame_tree_node.h (right): https://codereview.chromium.org/2655663004/diff/60001/content/browser/frame_host/frame_tree_node.h#newcode356 content/browser/frame_host/frame_tree_node.h:356: std::unique_ptr<FeaturePolicy> feature_policy_; I'd talk to someone from the site ...
3 years, 10 months ago (2017-02-03 18:04:26 UTC) #25
iclelland
Thanks, pfeldman. +alexmos for site-isolation input https://codereview.chromium.org/2655663004/diff/60001/content/browser/frame_host/frame_tree_node.h File content/browser/frame_host/frame_tree_node.h (right): https://codereview.chromium.org/2655663004/diff/60001/content/browser/frame_host/frame_tree_node.h#newcode356 content/browser/frame_host/frame_tree_node.h:356: std::unique_ptr<FeaturePolicy> feature_policy_; On ...
3 years, 10 months ago (2017-02-03 19:26:37 UTC) #29
alexmos
https://codereview.chromium.org/2655663004/diff/60001/content/browser/frame_host/frame_tree_node.h File content/browser/frame_host/frame_tree_node.h (right): https://codereview.chromium.org/2655663004/diff/60001/content/browser/frame_host/frame_tree_node.h#newcode356 content/browser/frame_host/frame_tree_node.h:356: std::unique_ptr<FeaturePolicy> feature_policy_; On 2017/02/03 19:26:37, iclelland wrote: > On ...
3 years, 10 months ago (2017-02-03 22:37:16 UTC) #30
iclelland
https://codereview.chromium.org/2655663004/diff/60001/content/browser/frame_host/frame_tree_node.h File content/browser/frame_host/frame_tree_node.h (right): https://codereview.chromium.org/2655663004/diff/60001/content/browser/frame_host/frame_tree_node.h#newcode356 content/browser/frame_host/frame_tree_node.h:356: std::unique_ptr<FeaturePolicy> feature_policy_; On 2017/02/03 22:37:16, alexmos wrote: > On ...
3 years, 10 months ago (2017-02-06 18:32:33 UTC) #35
alexmos
https://codereview.chromium.org/2655663004/diff/60001/content/browser/frame_host/frame_tree_node.h File content/browser/frame_host/frame_tree_node.h (right): https://codereview.chromium.org/2655663004/diff/60001/content/browser/frame_host/frame_tree_node.h#newcode356 content/browser/frame_host/frame_tree_node.h:356: std::unique_ptr<FeaturePolicy> feature_policy_; On 2017/02/06 18:32:33, iclelland wrote: > On ...
3 years, 10 months ago (2017-02-07 00:21:35 UTC) #36
iclelland
https://codereview.chromium.org/2655663004/diff/80001/content/browser/frame_host/frame_tree_node.cc File content/browser/frame_host/frame_tree_node.cc (right): https://codereview.chromium.org/2655663004/diff/80001/content/browser/frame_host/frame_tree_node.cc#newcode296 content/browser/frame_host/frame_tree_node.cc:296: current_frame_host()->SetFeaturePolicy( On 2017/02/07 00:21:35, alexmos wrote: > Similarly, it ...
3 years, 10 months ago (2017-02-07 15:47:37 UTC) #37
alexmos
https://codereview.chromium.org/2655663004/diff/80001/content/browser/frame_host/frame_tree_node.cc File content/browser/frame_host/frame_tree_node.cc (right): https://codereview.chromium.org/2655663004/diff/80001/content/browser/frame_host/frame_tree_node.cc#newcode296 content/browser/frame_host/frame_tree_node.cc:296: current_frame_host()->SetFeaturePolicy( On 2017/02/07 15:47:37, iclelland wrote: > On 2017/02/07 ...
3 years, 10 months ago (2017-02-07 23:15:16 UTC) #38
iclelland
https://codereview.chromium.org/2655663004/diff/80001/content/browser/frame_host/frame_tree_node.cc File content/browser/frame_host/frame_tree_node.cc (right): https://codereview.chromium.org/2655663004/diff/80001/content/browser/frame_host/frame_tree_node.cc#newcode289 content/browser/frame_host/frame_tree_node.cc:289: current_frame_host()->GetFeaturePolicy()->SetHeaderPolicy(parsed_header); On 2017/02/07 00:21:35, alexmos wrote: > Could we ...
3 years, 10 months ago (2017-02-08 05:14:42 UTC) #41
alexmos
Thanks, the current approach of keeping the feature policy in the RFHI looks good. Just ...
3 years, 10 months ago (2017-02-09 05:59:51 UTC) #44
iclelland
> Thanks, the current approach of keeping the feature policy in the RFHI looks > ...
3 years, 10 months ago (2017-02-09 17:16:18 UTC) #47
alexmos
LGTM % nits https://codereview.chromium.org/2655663004/diff/100001/content/common/feature_policy/feature_policy.h File content/common/feature_policy/feature_policy.h (right): https://codereview.chromium.org/2655663004/diff/100001/content/common/feature_policy/feature_policy.h#newcode202 content/common/feature_policy/feature_policy.h:202: const FeatureList& feature_list_; On 2017/02/09 17:16:18, ...
3 years, 10 months ago (2017-02-09 19:11:19 UTC) #48
iclelland
Thanks, Alex! +r rbyers for OWNER stamp on 3p/WK/public/platform https://codereview.chromium.org/2655663004/diff/120001/content/common/feature_policy/feature_policy.cc File content/common/feature_policy/feature_policy.cc (right): https://codereview.chromium.org/2655663004/diff/120001/content/common/feature_policy/feature_policy.cc#newcode18 content/common/feature_policy/feature_policy.cc:18: ...
3 years, 10 months ago (2017-02-09 20:12:01 UTC) #54
Rick Byers
public/ LGTM with nit https://codereview.chromium.org/2655663004/diff/140001/third_party/WebKit/public/platform/WebFeaturePolicy.h File third_party/WebKit/public/platform/WebFeaturePolicy.h (right): https://codereview.chromium.org/2655663004/diff/140001/third_party/WebKit/public/platform/WebFeaturePolicy.h#newcode14 third_party/WebKit/public/platform/WebFeaturePolicy.h:14: enum class WebFeaturePolicyFeature { nit: ...
3 years, 10 months ago (2017-02-09 20:40:14 UTC) #55
iclelland
https://codereview.chromium.org/2655663004/diff/140001/third_party/WebKit/public/platform/WebFeaturePolicy.h File third_party/WebKit/public/platform/WebFeaturePolicy.h (right): https://codereview.chromium.org/2655663004/diff/140001/third_party/WebKit/public/platform/WebFeaturePolicy.h#newcode14 third_party/WebKit/public/platform/WebFeaturePolicy.h:14: enum class WebFeaturePolicyFeature { On 2017/02/09 20:40:14, Rick Byers ...
3 years, 10 months ago (2017-02-09 21:01:00 UTC) #58
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/2655663004/160001
3 years, 10 months ago (2017-02-09 21:30:05 UTC) #61
commit-bot: I haz the power
3 years, 10 months ago (2017-02-09 22:44:47 UTC) #64
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/2c79efe295ea0cd234b3e13b4436...

Powered by Google App Engine
This is Rietveld 408576698