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

Issue 2438623002: [Extensions Bindings] Add APIBindingsSystem (Closed)

Created:
4 years, 2 months ago by Devlin
Modified:
4 years, 1 month ago
Reviewers:
lazyboy, jbroman
CC:
chromium-apps-reviews_chromium.org, chromium-reviews, extensions-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Extensions Bindings] Add APIBindingsSystem Add an APIBindingsSystem class that contains the necessary bits and pieces to construct the extension API bindings (the request handler, reference map, and collection of APIBinding objects). This object can vend API instances for a given API name, notifies when an API method is called, and fields any callbacks into the request handler. Add tests for the same, including one which demonstrates how we might set this up in the real world, i.e. using actual Extension APIs. BUG=653596 Committed: https://crrev.com/7616e8614f857f4366ca2127e9a7ea1fc2f48a6e Cr-Commit-Position: refs/heads/master@{#428851}

Patch Set 1 : woot #

Total comments: 12

Patch Set 2 : jbroman's initial #

Patch Set 3 : rebase #

Total comments: 2

Patch Set 4 : rebase #

Patch Set 5 : rebase #

Patch Set 6 : optional null type definitions #

Total comments: 2

Patch Set 7 : lazyboy's #

Unified diffs Side-by-side diffs Delta from patch set Stats (+618 lines, -70 lines) Patch
M extensions/renderer/BUILD.gn View 2 chunks +3 lines, -0 lines 0 comments Download
M extensions/renderer/api_binding.h View 1 2 3 4 5 2 chunks +5 lines, -1 line 0 comments Download
M extensions/renderer/api_binding.cc View 1 2 3 4 5 3 chunks +20 lines, -13 lines 0 comments Download
M extensions/renderer/api_binding_unittest.cc View 1 2 3 4 5 3 chunks +2 lines, -56 lines 0 comments Download
A extensions/renderer/api_bindings_system.h View 1 2 3 4 5 6 1 chunk +97 lines, -0 lines 0 comments Download
A extensions/renderer/api_bindings_system.cc View 1 2 3 4 5 1 chunk +74 lines, -0 lines 0 comments Download
A extensions/renderer/api_bindings_system_unittest.cc View 1 2 3 4 5 6 1 chunk +417 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (19 generated)
Devlin
lazyboy@ and jbroman@, mind taking a look?
4 years, 2 months ago (2016-10-21 19:37:54 UTC) #9
jbroman
getting on a plane shortly, but here's a few thoughts https://codereview.chromium.org/2438623002/diff/40001/extensions/renderer/api_bindings_system.cc File extensions/renderer/api_bindings_system.cc (right): https://codereview.chromium.org/2438623002/diff/40001/extensions/renderer/api_bindings_system.cc#newcode51 ...
4 years, 2 months ago (2016-10-21 22:53:59 UTC) #10
Devlin
I'll rebase and upload a new PS once I pull out the argument spec changes ...
4 years, 2 months ago (2016-10-22 00:49:15 UTC) #11
Devlin
On 2016/10/22 00:49:15, Devlin wrote: > I'll rebase and upload a new PS once I ...
4 years, 2 months ago (2016-10-22 00:55:21 UTC) #12
Devlin
https://codereview.chromium.org/2438623002/diff/40001/extensions/renderer/api_bindings_system.cc File extensions/renderer/api_bindings_system.cc (right): https://codereview.chromium.org/2438623002/diff/40001/extensions/renderer/api_bindings_system.cc#newcode51 extensions/renderer/api_bindings_system.cc:51: : static_cast<const base::ListValue&>(base::ListValue()), On 2016/10/22 00:49:15, Devlin wrote: > ...
4 years, 1 month ago (2016-10-26 20:17:03 UTC) #17
jbroman
Back from vacation. This looks reasonable, lgtm. https://codereview.chromium.org/2438623002/diff/40001/extensions/renderer/api_bindings_system.cc File extensions/renderer/api_bindings_system.cc (right): https://codereview.chromium.org/2438623002/diff/40001/extensions/renderer/api_bindings_system.cc#newcode51 extensions/renderer/api_bindings_system.cc:51: : static_cast<const ...
4 years, 1 month ago (2016-10-31 14:16:58 UTC) #18
lazyboy
lgtm with nits. https://codereview.chromium.org/2438623002/diff/80001/extensions/renderer/api_bindings_system.h File extensions/renderer/api_bindings_system.h (right): https://codereview.chromium.org/2438623002/diff/80001/extensions/renderer/api_bindings_system.h#newcode65 extensions/renderer/api_bindings_system.h:65: // Handles a call into an ...
4 years, 1 month ago (2016-10-31 20:08:31 UTC) #19
Devlin
https://codereview.chromium.org/2438623002/diff/80001/extensions/renderer/api_bindings_system.h File extensions/renderer/api_bindings_system.h (right): https://codereview.chromium.org/2438623002/diff/80001/extensions/renderer/api_bindings_system.h#newcode65 extensions/renderer/api_bindings_system.h:65: // Handles a call into an API, adds a ...
4 years, 1 month ago (2016-10-31 22:03:37 UTC) #22
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/2438623002/160001
4 years, 1 month ago (2016-10-31 22:04:08 UTC) #26
commit-bot: I haz the power
Committed patchset #7 (id:160001)
4 years, 1 month ago (2016-10-31 22:42:00 UTC) #28
commit-bot: I haz the power
4 years, 1 month ago (2016-10-31 22:45:50 UTC) #30
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/7616e8614f857f4366ca2127e9a7ea1fc2f48a6e
Cr-Commit-Position: refs/heads/master@{#428851}

Powered by Google App Engine
This is Rietveld 408576698