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

Issue 2106983002: Allow origin trials to be declared on IDL operations (methods) (Closed)

Created:
4 years, 5 months ago by iclelland
Modified:
4 years, 5 months ago
Reviewers:
haraken, Yuki
CC:
chromium-reviews, blink-reviews, blink-reviews-bindings_chromium.org, chasej+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow origin trials to be declared on IDL operations (methods) This change follows the changes to the V8 bindings generation code that allowed origin trials to be defined on attributes and constants. Similarly, it refactors the various lists of methods which were being passed into the template context into a single list and several filters which may be applied to it. This patch covers only the first stage of method support: Individual methods in full or partial interfaces, with no overloads. Attempting to define an origin trial on an overloaded method will result in an exception at compile time. R=haraken@chromium.org, yukishiino@chromium.org BUG=621641 Committed: https://crrev.com/81ca9f1a235637fffa49775ecf9d62286297dc95 Cr-Commit-Position: refs/heads/master@{#402799}

Patch Set 1 #

Patch Set 2 : Eliminate empty install methods #

Total comments: 4

Patch Set 3 : Removing unneeded includes, addressing nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+165 lines, -93 lines) Patch
M third_party/WebKit/LayoutTests/http/tests/origin_trials/resources/origin_trials.js View 3 chunks +0 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/bindings/scripts/code_generator_v8.py View 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/scripts/v8_interface.py View 1 2 6 chunks +17 lines, -46 lines 0 comments Download
M third_party/WebKit/Source/bindings/scripts/v8_methods.py View 1 2 3 chunks +56 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/bindings/scripts/v8_utilities.py View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/bindings/templates/interface.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/templates/interface.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/templates/interface_base.cpp View 1 6 chunks +22 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/bindings/templates/methods.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/templates/partial_interface.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/idls/core/TestObject.idl View 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/idls/modules/TestInterfacePartial4.idl View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceOriginTrialEnabled.cpp View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp View 1 2 chunks +40 lines, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterfacePartial.cpp View 1 2 chunks +16 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/origin_trials/testing/InternalsFrobulateInterfaceBindings.idl View 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 12 (3 generated)
iclelland
haraken, Yuki, can you PTAL? Thanks!
4 years, 5 months ago (2016-06-29 02:56:45 UTC) #1
Yuki
LGTM. https://codereview.chromium.org/2106983002/diff/20001/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface.cpp File third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface.cpp (right): https://codereview.chromium.org/2106983002/diff/20001/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface.cpp#newcode33 third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface.cpp:33: #include "core/origin_trials/OriginTrials.h" Why do we need OriginTrials.h? Can ...
4 years, 5 months ago (2016-06-29 03:56:22 UTC) #2
haraken
LGTM https://codereview.chromium.org/2106983002/diff/20001/third_party/WebKit/Source/bindings/scripts/v8_methods.py File third_party/WebKit/Source/bindings/scripts/v8_methods.py (right): https://codereview.chromium.org/2106983002/diff/20001/third_party/WebKit/Source/bindings/scripts/v8_methods.py#newcode105 third_party/WebKit/Source/bindings/scripts/v8_methods.py:105: 'method_for_origin_trial_feature': method_for_origin_trial_feature} Nit: Alphabetical order.
4 years, 5 months ago (2016-06-29 04:05:28 UTC) #3
iclelland
https://codereview.chromium.org/2106983002/diff/20001/third_party/WebKit/Source/bindings/scripts/v8_methods.py File third_party/WebKit/Source/bindings/scripts/v8_methods.py (right): https://codereview.chromium.org/2106983002/diff/20001/third_party/WebKit/Source/bindings/scripts/v8_methods.py#newcode105 third_party/WebKit/Source/bindings/scripts/v8_methods.py:105: 'method_for_origin_trial_feature': method_for_origin_trial_feature} On 2016/06/29 04:05:28, haraken wrote: > > ...
4 years, 5 months ago (2016-06-29 05:04:21 UTC) #4
Yuki
Thanks! LGTM.
4 years, 5 months ago (2016-06-29 05:33:16 UTC) #5
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/2106983002/40001
4 years, 5 months ago (2016-06-29 13:13:45 UTC) #8
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 5 months ago (2016-06-29 14:20:01 UTC) #9
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-06-29 14:20:07 UTC) #10
commit-bot: I haz the power
4 years, 5 months ago (2016-06-29 14:21:45 UTC) #12
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/81ca9f1a235637fffa49775ecf9d62286297dc95
Cr-Commit-Position: refs/heads/master@{#402799}

Powered by Google App Engine
This is Rietveld 408576698