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

Issue 9358076: Initial extension bindings for Media Gallery API. (Closed)

Created:
8 years, 10 months ago by vandebo (ex-Chrome)
Modified:
8 years, 9 months ago
Reviewers:
Aaron Boodman, jstritar
CC:
chromium-reviews, Aaron Boodman, mihaip+watch_chromium.org, asargent_no_longer_on_chrome
Visibility:
Public.

Description

Initial extension bindings for Media Gallery API. BUG=NONE TEST=NONE Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=128089

Patch Set 1 #

Patch Set 2 : rebase #

Total comments: 8

Patch Set 3 : Rebase #

Patch Set 4 : Address comments #

Patch Set 5 : Add custom bindings for getMediaGalleries #

Patch Set 6 : Rebase #

Total comments: 20

Patch Set 7 : Address comments #

Patch Set 8 : Rebase #

Patch Set 9 : Rebase #

Patch Set 10 : Address comment #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+371 lines, -1 line) Patch
A chrome/browser/extensions/api/media_gallery/media_gallery_api.h View 1 2 3 4 5 6 1 chunk +50 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/media_gallery/media_gallery_api.cc View 1 2 3 1 chunk +44 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/media_gallery/media_gallery_apitest.cc View 1 2 3 1 chunk +23 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_function_registry.cc View 1 2 3 4 5 6 7 8 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_renderer.gypi View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/common_resources.grd View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
A chrome/common/extensions/api/experimental.mediaGalleries.json View 1 2 3 4 5 6 1 chunk +98 lines, -0 lines 3 comments Download
M chrome/common/extensions/api/extension_api.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/docs/js/api_page_generator.js View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/extensions/extension_dispatcher.cc View 1 2 3 4 5 6 7 8 4 chunks +6 lines, -0 lines 0 comments Download
A chrome/renderer/extensions/media_gallery_custom_bindings.h View 1 2 3 4 1 chunk +28 lines, -0 lines 0 comments Download
A chrome/renderer/extensions/media_gallery_custom_bindings.cc View 1 2 3 4 1 chunk +38 lines, -0 lines 0 comments Download
M chrome/renderer/renderer_resources.grd View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
A chrome/renderer/resources/extensions/experimental.media_galleries_custom_bindings.js View 1 2 3 4 5 6 1 chunk +29 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/api_test/README.txt View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
A chrome/test/data/extensions/api_test/media_gallery/manifest.json View 1 2 3 4 5 6 7 8 9 1 chunk +10 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/media_gallery/test.js View 1 2 3 4 5 6 1 chunk +28 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
vandebo (ex-Chrome)
Jon, I picked an extension reviewer at random, please redirect if appropriate.
8 years, 10 months ago (2012-02-15 19:00:33 UTC) #1
jstritar
http://codereview.chromium.org/9358076/diff/1001/chrome/browser/extensions/api/media_gallery/media_gallery_api.cc File chrome/browser/extensions/api/media_gallery/media_gallery_api.cc (right): http://codereview.chromium.org/9358076/diff/1001/chrome/browser/extensions/api/media_gallery/media_gallery_api.cc#newcode12 chrome/browser/extensions/api/media_gallery/media_gallery_api.cc:12: Can you add an apitest for these methods? It ...
8 years, 10 months ago (2012-02-16 21:34:18 UTC) #2
vandebo (ex-Chrome)
Sorry for the long delay. We weren't sure if this approach was going to work ...
8 years, 9 months ago (2012-03-19 23:09:52 UTC) #3
vandebo (ex-Chrome)
Calendar says your in MTV this week; I understand travel time is best spent meeting ...
8 years, 9 months ago (2012-03-20 23:15:00 UTC) #4
jstritar
It's no problem... sorry for taking a little while. What do you need the custom ...
8 years, 9 months ago (2012-03-21 00:02:02 UTC) #5
jstritar
Also, you can update the TEST= field with your added test
8 years, 9 months ago (2012-03-21 00:02:24 UTC) #6
jstritar
Also, you can update the TEST= field with your added test
8 years, 9 months ago (2012-03-21 00:02:25 UTC) #7
vandebo (ex-Chrome)
On 2012/03/21 00:02:02, jstritar wrote: > What do you need the custom bindings for? Do ...
8 years, 9 months ago (2012-03-21 16:17:57 UTC) #8
jstritar
LGTM. http://codereview.chromium.org/9358076/diff/15001/chrome/common/extensions/api/experimental.mediaGalleries.json File chrome/common/extensions/api/experimental.mediaGalleries.json (right): http://codereview.chromium.org/9358076/diff/15001/chrome/common/extensions/api/experimental.mediaGalleries.json#newcode48 chrome/common/extensions/api/experimental.mediaGalleries.json:48: "type": "object", On 2012/03/21 16:17:57, vandebo wrote: > ...
8 years, 9 months ago (2012-03-21 18:10:47 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vandebo@chromium.org/9358076/24002
8 years, 9 months ago (2012-03-21 19:53:42 UTC) #10
commit-bot: I haz the power
Can't apply patch for file chrome/browser/extensions/extension_function_registry.cc. While running patch -p1 --forward --force; patching file chrome/browser/extensions/extension_function_registry.cc ...
8 years, 9 months ago (2012-03-21 20:57:43 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vandebo@chromium.org/9358076/26009
8 years, 9 months ago (2012-03-21 21:29:33 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vandebo@chromium.org/9358076/26010
8 years, 9 months ago (2012-03-21 21:42:58 UTC) #13
vandebo (ex-Chrome)
http://codereview.chromium.org/9358076/diff/15001/chrome/common/extensions/api/experimental.mediaGalleries.json File chrome/common/extensions/api/experimental.mediaGalleries.json (right): http://codereview.chromium.org/9358076/diff/15001/chrome/common/extensions/api/experimental.mediaGalleries.json#newcode48 chrome/common/extensions/api/experimental.mediaGalleries.json:48: "type": "object", On 2012/03/21 18:10:47, jstritar wrote: > On ...
8 years, 9 months ago (2012-03-21 22:08:07 UTC) #14
commit-bot: I haz the power
Failed to request the patch to try. Please note that binary filesare still unsupported at ...
8 years, 9 months ago (2012-03-21 23:15:01 UTC) #15
Aaron Boodman
http://codereview.chromium.org/9358076/diff/26010/chrome/common/extensions/api/experimental.mediaGalleries.json File chrome/common/extensions/api/experimental.mediaGalleries.json (right): http://codereview.chromium.org/9358076/diff/26010/chrome/common/extensions/api/experimental.mediaGalleries.json#newcode62 chrome/common/extensions/api/experimental.mediaGalleries.json:62: "choices": [ You can just mark the param optional ...
8 years, 9 months ago (2012-03-22 21:58:14 UTC) #16
Aaron Boodman
On Wed, Mar 21, 2012 at 9:17 AM, <vandebo@chromium.org> wrote: > On 2012/03/21 00:02:02, jstritar ...
8 years, 9 months ago (2012-03-22 22:13:00 UTC) #17
vandebo (ex-Chrome)
On 2012/03/22 22:13:00, Aaron Boodman wrote: > On Wed, Mar 21, 2012 at 9:17 AM, ...
8 years, 9 months ago (2012-03-23 01:03:24 UTC) #18
Aaron Boodman
On Thu, Mar 22, 2012 at 6:03 PM, <vandebo@chromium.org> wrote: > On 2012/03/22 22:13:00, Aaron ...
8 years, 9 months ago (2012-03-23 02:07:08 UTC) #19
vandebo (ex-Chrome)
8 years, 9 months ago (2012-03-23 21:26:24 UTC) #20
On 2012/03/23 02:07:08, Aaron Boodman wrote:
> On Thu, Mar 22, 2012 at 6:03 PM,  <mailto:vandebo@chromium.org> wrote:
> > As mentioned above, the entire API is described in this document:
> >
>
https://docs.google.com/a/google.com/document/pub?id=1RsLin39Zmun9kaxNUpChL55...
> > There is a high level design document at goto/mediagallerydesign , but I'm
> > not
> > sure that's what you're asking for.
> 
> I was looking for more detail on the class-level design than either of
> those documents provides.

This document is still in progress put probably contains what you want:
https://docs.google.com/a/google.com/document/d/1dWrdskIUA-8z7vfHY4LmXq_VMoZy...

> > My (limited) understanding of the security mechanisms that the extension
> > system
> > enforces is that it ensures that only contexts which should be able to call
> > the
> > extension interface are able to do so and that it does type enforcement for
> > the
> > extension methods.
> 
> One other bit:
> 
> - Extension-related IPC messages are rejected if they aren't coming
> from a renderer that is known to be running an extension with
> permission to the related feature.

Indeed, it was already part of the plan to do this as well.  There are multiple
gallery providers, so as requests come into the browser we have to dispatch to
the correct provider.  At this point we will also validate
requests wrt sanity of request from a particular renderer.

Powered by Google App Engine
This is Rietveld 408576698