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

Issue 2110833002: Basic framework for Budget API. (Closed)

Created:
4 years, 5 months ago by harkness
Modified:
4 years, 4 months ago
Reviewers:
Peter Beverloo, haraken
CC:
chromium-reviews, blink-reviews, haraken
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Basic framework for Budget API. This implements the basic framework for the Budget API in blink. Only the getCost and getBudget methods are defined, and a LayoutTest is specified which checks that the interfaces exist. BUG=617971 Committed: https://crrev.com/868da920b60dc73aafa236c288f4cf93a6610a4c Cr-Commit-Position: refs/heads/master@{#410378}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Added getDetailedBudget and trace. #

Patch Set 3 : Added BudgetChunk.idl #

Total comments: 28

Patch Set 4 : Integrated code review comments. #

Total comments: 12

Patch Set 5 : Updated to (almost) match the spec #

Total comments: 32

Patch Set 6 : Removed Navigator member and exception, other nits #

Total comments: 22

Patch Set 7 : Added interface tests and resolved nits #

Total comments: 4

Patch Set 8 : Removed Exposed lines and fixed build error. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+249 lines, -1 line) Patch
A third_party/WebKit/LayoutTests/http/tests/budget/interfaces.html View 1 2 3 4 5 6 1 chunk +33 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 2 chunks +6 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/budget/Budget.h View 1 2 3 4 5 6 7 1 chunk +39 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/budget/Budget.cpp View 1 2 3 4 5 6 1 chunk +29 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/budget/Budget.idl View 1 2 3 4 5 6 7 1 chunk +17 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/budget/BudgetChunk.idl View 1 2 3 4 5 1 chunk +11 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/budget/NavigatorBudget.h View 1 2 3 4 5 6 1 chunk +39 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/budget/NavigatorBudget.cpp View 1 2 3 4 5 1 chunk +54 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/budget/NavigatorBudget.idl View 1 2 3 4 5 6 7 1 chunk +13 lines, -0 lines 0 comments Download
A + third_party/WebKit/Source/modules/budget/OWNERS View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/modules.gypi View 1 2 3 4 3 chunks +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 35 (17 generated)
harkness
This is the very basic interface we talked about, which can be extended as I ...
4 years, 5 months ago (2016-06-29 16:52:59 UTC) #2
haraken
https://codereview.chromium.org/2110833002/diff/1/third_party/WebKit/Source/modules/budget_service/NavigatorBudget.h File third_party/WebKit/Source/modules/budget_service/NavigatorBudget.h (right): https://codereview.chromium.org/2110833002/diff/1/third_party/WebKit/Source/modules/budget_service/NavigatorBudget.h#newcode29 third_party/WebKit/Source/modules/budget_service/NavigatorBudget.h:29: public: You need to add DECLARE_TRACE/DEFINE_TRACE. I guess that ...
4 years, 5 months ago (2016-06-29 23:45:40 UTC) #4
harkness
It probably would have complained if I'd run a full build, but my local build ...
4 years, 5 months ago (2016-07-01 11:15:12 UTC) #5
Peter Beverloo
Thanks, cool to see! :-) A few higher-level comments: - The API is called "Budget ...
4 years, 5 months ago (2016-07-01 13:22:00 UTC) #6
harkness
https://codereview.chromium.org/2110833002/diff/40001/third_party/WebKit/LayoutTests/http/tests/budget_service/interfaces.html File third_party/WebKit/LayoutTests/http/tests/budget_service/interfaces.html (right): https://codereview.chromium.org/2110833002/diff/40001/third_party/WebKit/LayoutTests/http/tests/budget_service/interfaces.html#newcode14 third_party/WebKit/LayoutTests/http/tests/budget_service/interfaces.html:14: assert_own_property(Navigator.prototype, 'getBudgetDetails'); On 2016/07/01 13:21:59, Peter Beverloo wrote: > ...
4 years, 5 months ago (2016-07-20 09:41:48 UTC) #7
Peter Beverloo
This largely seems fine as-is, but we probably want to reflect the decisions we made ...
4 years, 5 months ago (2016-07-22 12:27:02 UTC) #8
harkness
https://codereview.chromium.org/2110833002/diff/60001/third_party/WebKit/LayoutTests/http/tests/budget/interfaces.html File third_party/WebKit/LayoutTests/http/tests/budget/interfaces.html (right): https://codereview.chromium.org/2110833002/diff/60001/third_party/WebKit/LayoutTests/http/tests/budget/interfaces.html#newcode7 third_party/WebKit/LayoutTests/http/tests/budget/interfaces.html:7: <script src="../serviceworker/resources/test-helpers.js"></script> On 2016/07/22 12:27:01, Peter Beverloo wrote: > ...
4 years, 4 months ago (2016-08-03 09:34:05 UTC) #9
Peter Beverloo
https://codereview.chromium.org/2110833002/diff/80001/third_party/WebKit/LayoutTests/http/tests/budget/interfaces.html File third_party/WebKit/LayoutTests/http/tests/budget/interfaces.html (right): https://codereview.chromium.org/2110833002/diff/80001/third_party/WebKit/LayoutTests/http/tests/budget/interfaces.html#newcode29 third_party/WebKit/LayoutTests/http/tests/budget/interfaces.html:29: }, 'NavigatorBudget should be exposed and have the expected ...
4 years, 4 months ago (2016-08-03 13:25:55 UTC) #10
harkness
https://codereview.chromium.org/2110833002/diff/80001/third_party/WebKit/LayoutTests/http/tests/budget/interfaces.html File third_party/WebKit/LayoutTests/http/tests/budget/interfaces.html (right): https://codereview.chromium.org/2110833002/diff/80001/third_party/WebKit/LayoutTests/http/tests/budget/interfaces.html#newcode29 third_party/WebKit/LayoutTests/http/tests/budget/interfaces.html:29: }, 'NavigatorBudget should be exposed and have the expected ...
4 years, 4 months ago (2016-08-04 14:18:24 UTC) #11
Peter Beverloo
lgtm This is a good base to start iterating upon, so let's do it. haraken@: ...
4 years, 4 months ago (2016-08-05 14:33:20 UTC) #16
Peter Beverloo
Oh, also fix the webexposed tests of course, which we spoke about yesterday :-).
4 years, 4 months ago (2016-08-05 14:33:53 UTC) #17
haraken
Implementation-wise LGTM https://codereview.chromium.org/2110833002/diff/100001/third_party/WebKit/Source/modules/budget/Budget.cpp File third_party/WebKit/Source/modules/budget/Budget.cpp (right): https://codereview.chromium.org/2110833002/diff/100001/third_party/WebKit/Source/modules/budget/Budget.cpp#newcode18 third_party/WebKit/Source/modules/budget/Budget.cpp:18: ScriptPromise Budget::getCost(ScriptState* state, const AtomicString& actionType) state ...
4 years, 4 months ago (2016-08-08 01:48:13 UTC) #18
harkness
https://codereview.chromium.org/2110833002/diff/100001/third_party/WebKit/LayoutTests/http/tests/budget/interfaces.html File third_party/WebKit/LayoutTests/http/tests/budget/interfaces.html (right): https://codereview.chromium.org/2110833002/diff/100001/third_party/WebKit/LayoutTests/http/tests/budget/interfaces.html#newcode14 third_party/WebKit/LayoutTests/http/tests/budget/interfaces.html:14: On 2016/08/05 14:33:19, Peter Beverloo wrote: > nit: consider ...
4 years, 4 months ago (2016-08-08 12:07:37 UTC) #19
Peter Beverloo
https://codereview.chromium.org/2110833002/diff/120001/third_party/WebKit/Source/modules/budget/Budget.idl File third_party/WebKit/Source/modules/budget/Budget.idl (right): https://codereview.chromium.org/2110833002/diff/120001/third_party/WebKit/Source/modules/budget/Budget.idl#newcode13 third_party/WebKit/Source/modules/budget/Budget.idl:13: Exposed=(Window), nit: drop https://codereview.chromium.org/2110833002/diff/120001/third_party/WebKit/Source/modules/budget/NavigatorBudget.idl File third_party/WebKit/Source/modules/budget/NavigatorBudget.idl (right): https://codereview.chromium.org/2110833002/diff/120001/third_party/WebKit/Source/modules/budget/NavigatorBudget.idl#newcode9 third_party/WebKit/Source/modules/budget/NavigatorBudget.idl:9: ...
4 years, 4 months ago (2016-08-08 12:45:01 UTC) #24
harkness
https://codereview.chromium.org/2110833002/diff/120001/third_party/WebKit/Source/modules/budget/Budget.idl File third_party/WebKit/Source/modules/budget/Budget.idl (right): https://codereview.chromium.org/2110833002/diff/120001/third_party/WebKit/Source/modules/budget/Budget.idl#newcode13 third_party/WebKit/Source/modules/budget/Budget.idl:13: Exposed=(Window), On 2016/08/08 12:45:01, Peter Beverloo wrote: > nit: ...
4 years, 4 months ago (2016-08-08 12:50:22 UTC) #26
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/2110833002/140001
4 years, 4 months ago (2016-08-08 16:25:46 UTC) #32
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 4 months ago (2016-08-08 16:31:37 UTC) #33
commit-bot: I haz the power
4 years, 4 months ago (2016-08-08 16:34:42 UTC) #35
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/868da920b60dc73aafa236c288f4cf93a6610a4c
Cr-Commit-Position: refs/heads/master@{#410378}

Powered by Google App Engine
This is Rietveld 408576698