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

Issue 649003003: Add a mojoPrivate API that exposes mojo to component apps/extensions. (Closed)

Created:
6 years, 2 months ago by Sam McNally
Modified:
5 years, 11 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, chromium-apps-reviews_chromium.org, darin (slow to review), ben+mojo_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@serial-service
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a mojoPrivate API that exposes mojo to component apps/extensions. Some component apps and extensions use private extension APIs to communicate with their browser components. This CL adds the mojoPrivate API as a way to use mojo directly from Javascript without needing to create a private API. BUG=448565, 448569 Committed: https://crrev.com/2cc22656103e5df811de911b693eadc55d3ad0b2 Cr-Commit-Position: refs/heads/master@{#311385}

Patch Set 1 #

Patch Set 2 : #

Total comments: 8

Patch Set 3 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+144 lines, -7 lines) Patch
M extensions/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M extensions/common/api/_api_features.json View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
A extensions/common/api/mojo_private.idl View 1 2 1 chunk +19 lines, -0 lines 0 comments Download
M extensions/common/api/schemas.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download
M extensions/extensions.gyp View 1 1 chunk +1 line, -0 lines 0 comments Download
A extensions/renderer/api/mojo_private/mojo_private_unittest.cc View 1 1 chunk +48 lines, -0 lines 0 comments Download
M extensions/renderer/dispatcher.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M extensions/renderer/module_system.cc View 1 2 1 chunk +10 lines, -7 lines 0 comments Download
M extensions/renderer/resources/extensions_renderer_resources.grd View 1 1 chunk +1 line, -0 lines 0 comments Download
A extensions/renderer/resources/mojo_private_custom_bindings.js View 1 2 1 chunk +19 lines, -0 lines 1 comment Download
A extensions/test/data/mojo_private_unittest.js View 1 1 chunk +34 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (8 generated)
Sam McNally
5 years, 11 months ago (2015-01-13 04:25:42 UTC) #7
not at google - send to devlin
Please add a BUG.
5 years, 11 months ago (2015-01-13 20:24:20 UTC) #8
not at google - send to devlin
lgtm https://codereview.chromium.org/649003003/diff/120001/extensions/common/api/mojo_private.idl File extensions/common/api/mojo_private.idl (right): https://codereview.chromium.org/649003003/diff/120001/extensions/common/api/mojo_private.idl#newcode16 extensions/common/api/mojo_private.idl:16: DefineCallback callback); You might want to call this ...
5 years, 11 months ago (2015-01-13 21:46:46 UTC) #9
Sam McNally
https://codereview.chromium.org/649003003/diff/120001/extensions/common/api/mojo_private.idl File extensions/common/api/mojo_private.idl (right): https://codereview.chromium.org/649003003/diff/120001/extensions/common/api/mojo_private.idl#newcode16 extensions/common/api/mojo_private.idl:16: DefineCallback callback); On 2015/01/13 21:46:46, kalman wrote: > You ...
5 years, 11 months ago (2015-01-13 23:48:43 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/649003003/140001
5 years, 11 months ago (2015-01-13 23:49:26 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:140001)
5 years, 11 months ago (2015-01-14 01:25:35 UTC) #13
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/2cc22656103e5df811de911b693eadc55d3ad0b2 Cr-Commit-Position: refs/heads/master@{#311385}
5 years, 11 months ago (2015-01-14 01:26:32 UTC) #14
not at google - send to devlin
5 years, 11 months ago (2015-01-16 20:25:14 UTC) #16
Message was sent while issue was closed.
https://codereview.chromium.org/649003003/diff/140001/extensions/renderer/res...
File extensions/renderer/resources/mojo_private_custom_bindings.js (right):

https://codereview.chromium.org/649003003/diff/140001/extensions/renderer/res...
extensions/renderer/resources/mojo_private_custom_bindings.js:9: let binding =
require('binding').Binding.create('mojoPrivate');
I was curious about using "let" over "var", and apparently "let" is behind a
flag that *may* get turned off. So, it's safer to use "var" for now.

Powered by Google App Engine
This is Rietveld 408576698