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

Issue 250143002: Media Galleries API: Audio/Video attached pictures support. (Closed)

Created:
6 years, 8 months ago by tommycli
Modified:
6 years, 6 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, feature-media-reviews_chromium.org, vandebo (ex-Chrome), Lei Zhang, tzik, nhiroki, Greg Billock, chromium-apps-reviews_chromium.org, kinuko+watch, michaeln
Visibility:
Public.

Description

Media Galleries API: Audio/Video attached pictures support. This patch enables audio / video thumbnail extraction. A lot of supporting code has already gone in. This is the last piece in the actual extension API that enables this. BUG=304290 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=274849

Patch Set 1 #

Patch Set 2 : #

Total comments: 22

Patch Set 3 : upload some changes #

Patch Set 4 : transition to AttachedPicture struct and eliminate a copy #

Total comments: 2

Patch Set 5 : change all 'picture' to 'image' #

Patch Set 6 : Create Blobs on browser-process, eliminating two IPC copies. #

Total comments: 14

Patch Set 7 : make blob_storage_host a content/public interface with a content-private impl #

Total comments: 4

Patch Set 8 : #

Patch Set 9 : remove a stray file #

Total comments: 1

Patch Set 10 : remove stray includes address comments #

Patch Set 11 : #

Patch Set 12 : remove stray changes. clarify some variable naming #

Total comments: 4

Patch Set 13 : Broke media/ portion off into its own patch. #

Patch Set 14 : Spinoff the SafeMediaMetadataParser/Utility-process portion into its own patch. #

Patch Set 15 : #

Patch Set 16 : Rebase. #

Patch Set 17 : Update to upstream #

Patch Set 18 : #

Total comments: 3

Patch Set 19 : rebase #

Total comments: 8

Patch Set 20 : address vandebo comments #

Patch Set 21 : #

Patch Set 22 : remove the extra loop #

Patch Set 23 : fix linux_chromium_chromeos_rel argument evaluation order bug #

Unified diffs Side-by-side diffs Delta from patch set Stats (+197 lines, -23 lines) Patch
M chrome/browser/extensions/api/media_galleries/media_galleries_api.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +14 lines, -6 lines 0 comments Download
M chrome/browser/extensions/api/media_galleries/media_galleries_api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 7 chunks +113 lines, -14 lines 0 comments Download
M chrome/common/extensions/api/media_galleries.idl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +7 lines, -1 line 0 comments Download
M chrome/renderer/resources/extensions/media_galleries_custom_bindings.js View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +16 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/api_test/media_galleries/media_metadata/test.js View 1 2 3 4 6 chunks +45 lines, -0 lines 0 comments Download
M extensions/browser/blob_holder.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 45 (0 generated)
tommycli
vandebo: Let me know how you feel about the overall approach. I pretty much did ...
6 years, 8 months ago (2014-04-23 20:53:37 UTC) #1
vandebo (ex-Chrome)
https://codereview.chromium.org/250143002/diff/20001/chrome/browser/extensions/api/media_galleries/media_galleries_api.cc File chrome/browser/extensions/api/media_galleries/media_galleries_api.cc (right): https://codereview.chromium.org/250143002/diff/20001/chrome/browser/extensions/api/media_galleries/media_galleries_api.cc#newcode873 chrome/browser/extensions/api/media_galleries/media_galleries_api.cc:873: // The custom JS binding needs the extra empty ...
6 years, 8 months ago (2014-04-23 23:22:44 UTC) #2
tommycli
This is what I have so far without the changeover to browser-process Blob creation. https://codereview.chromium.org/250143002/diff/20001/chrome/browser/extensions/api/media_galleries/media_galleries_api.cc ...
6 years, 7 months ago (2014-04-29 00:15:51 UTC) #3
vandebo (ex-Chrome)
https://codereview.chromium.org/250143002/diff/20001/chrome/common/extensions/api/media_galleries.idl File chrome/common/extensions/api/media_galleries.idl (right): https://codereview.chromium.org/250143002/diff/20001/chrome/common/extensions/api/media_galleries.idl#newcode153 chrome/common/extensions/api/media_galleries.idl:153: // The pictures embedded in the media file's metadata. ...
6 years, 7 months ago (2014-04-29 16:09:03 UTC) #4
tommycli
https://codereview.chromium.org/250143002/diff/20001/chrome/common/extensions/api/media_galleries.idl File chrome/common/extensions/api/media_galleries.idl (right): https://codereview.chromium.org/250143002/diff/20001/chrome/common/extensions/api/media_galleries.idl#newcode153 chrome/common/extensions/api/media_galleries.idl:153: // The pictures embedded in the media file's metadata. ...
6 years, 7 months ago (2014-04-29 22:57:00 UTC) #5
tommycli
michaeln: I am trying to create Blobs on the browser process and pass them to ...
6 years, 7 months ago (2014-04-29 23:29:25 UTC) #6
tommycli
michaeln: ping
6 years, 7 months ago (2014-04-30 23:27:50 UTC) #7
michaeln
sorry, i hadn't noticed this cl, looking...
6 years, 7 months ago (2014-05-01 19:13:23 UTC) #8
michaeln
We should loop jam in since it's involves the content api. I can see two ...
6 years, 7 months ago (2014-05-01 21:27:35 UTC) #9
tommycli
Hi michaeln, +cc jam Thanks for the detailed recipie. I think this is all pretty ...
6 years, 7 months ago (2014-05-01 22:27:09 UTC) #10
jam
https://codereview.chromium.org/250143002/diff/120001/chrome/browser/extensions/api/media_galleries/media_galleries_api.cc File chrome/browser/extensions/api/media_galleries/media_galleries_api.cc (right): https://codereview.chromium.org/250143002/diff/120001/chrome/browser/extensions/api/media_galleries/media_galleries_api.cc#newcode931 chrome/browser/extensions/api/media_galleries/media_galleries_api.cc:931: render_view_host()->GetProcess()->GetBlobStorageHost(); RenderViewHost and RenderProcessHost are not thread safe, they ...
6 years, 7 months ago (2014-05-02 18:31:59 UTC) #11
michaeln
On 2014/05/01 22:27:09, tommycli wrote: > Hi michaeln, > > +cc jam > > Thanks ...
6 years, 7 months ago (2014-05-02 20:50:05 UTC) #12
michaeln
An extension function lives for the life of a function call, but it has access ...
6 years, 7 months ago (2014-05-02 23:55:21 UTC) #13
tommycli
Publishing my changes for reference. This patch now depends on https://codereview.chromium.org/266373006/, which contains the Blob-passing ...
6 years, 7 months ago (2014-05-07 21:39:03 UTC) #14
michaeln
https://codereview.chromium.org/250143002/diff/220001/chrome/browser/extensions/api/media_galleries/media_galleries_api.cc File chrome/browser/extensions/api/media_galleries/media_galleries_api.cc (right): https://codereview.chromium.org/250143002/diff/220001/chrome/browser/extensions/api/media_galleries/media_galleries_api.cc#newcode945 chrome/browser/extensions/api/media_galleries/media_galleries_api.cc:945: extensions::BlobHolder::CreateForWebContents(contents); If the holder already exists, is CreateForWebContents smart ...
6 years, 7 months ago (2014-05-08 21:22:23 UTC) #15
tommycli
https://codereview.chromium.org/250143002/diff/220001/chrome/browser/extensions/api/media_galleries/media_galleries_api.cc File chrome/browser/extensions/api/media_galleries/media_galleries_api.cc (right): https://codereview.chromium.org/250143002/diff/220001/chrome/browser/extensions/api/media_galleries/media_galleries_api.cc#newcode945 chrome/browser/extensions/api/media_galleries/media_galleries_api.cc:945: extensions::BlobHolder::CreateForWebContents(contents); On 2014/05/08 21:22:24, michaeln wrote: > If the ...
6 years, 7 months ago (2014-05-08 22:57:12 UTC) #16
michaeln
> > What happens if the page which has invoked this method unloads prior to ...
6 years, 7 months ago (2014-05-08 23:14:06 UTC) #17
tommycli
On 2014/05/08 23:14:06, michaeln wrote: > > > What happens if the page which has ...
6 years, 7 months ago (2014-05-09 16:15:58 UTC) #18
michaeln1
> The native handler should always run. The JS custom bindings are shipped with > ...
6 years, 7 months ago (2014-05-09 19:00:46 UTC) #19
tommycli
On 2014/05/09 19:00:46, michaeln1 wrote: > > The native handler should always run. The JS ...
6 years, 7 months ago (2014-05-09 20:27:34 UTC) #20
michaeln
> Hey. Thanks. > > The Extension response IPC in extension_messages.h > > // The ...
6 years, 7 months ago (2014-05-12 21:30:12 UTC) #21
tommycli
yoz: Can I get a weigh-in from you before I start making changes to the ...
6 years, 7 months ago (2014-05-13 00:12:16 UTC) #22
Yoyo Zhou
On 2014/05/13 00:12:16, tommycli wrote: > yoz: Can I get a weigh-in from you before ...
6 years, 7 months ago (2014-05-14 00:31:58 UTC) #23
tommycli
On 2014/05/12 21:30:12, michaeln wrote: > > Hey. Thanks. > > > > The Extension ...
6 years, 7 months ago (2014-05-14 00:48:55 UTC) #24
tommycli
On 2014/05/14 00:31:58, Yoyo Zhou wrote: > On 2014/05/13 00:12:16, tommycli wrote: > > yoz: ...
6 years, 7 months ago (2014-05-14 00:55:17 UTC) #25
michaeln
I have one question. (4) What's the plan if the frame navigates to a new ...
6 years, 7 months ago (2014-05-20 00:31:31 UTC) #26
tommycli
On 2014/05/20 00:31:31, michaeln wrote: > I have one question. > > (4) What's the ...
6 years, 7 months ago (2014-05-20 00:48:54 UTC) #27
michaeln
On 2014/05/20 00:48:54, tommycli wrote: > On 2014/05/20 00:31:31, michaeln wrote: > > I have ...
6 years, 7 months ago (2014-05-20 01:33:43 UTC) #28
tommycli
On 2014/05/20 01:33:43, michaeln wrote: > On 2014/05/20 00:48:54, tommycli wrote: > > On 2014/05/20 ...
6 years, 7 months ago (2014-05-20 16:02:29 UTC) #29
michaeln
> """ > Regarding your suggested flow. It sounds like you recommend making the extension ...
6 years, 7 months ago (2014-05-20 19:04:21 UTC) #30
Yoyo Zhou
On 2014/05/20 19:04:21, michaeln wrote: > > """ > > Regarding your suggested flow. It ...
6 years, 7 months ago (2014-05-20 23:30:10 UTC) #31
michaeln
> Disclaimer: I haven't reviewed serious extension IPC changes before. i dont think this should ...
6 years, 7 months ago (2014-05-21 01:31:56 UTC) #32
tommycli
On 2014/05/21 01:31:56, michaeln wrote: > > Disclaimer: I haven't reviewed serious extension IPC changes ...
6 years, 7 months ago (2014-05-22 23:23:14 UTC) #33
tommycli
vandebo: The last Blob transfer patch for etxensionsis currently in CQ. See https://codereview.chromium.org/280393003/ This is ...
6 years, 6 months ago (2014-06-02 17:19:05 UTC) #34
vandebo (ex-Chrome)
Also, update the description. https://codereview.chromium.org/250143002/diff/360001/chrome/browser/extensions/api/media_galleries/media_galleries_api.cc File chrome/browser/extensions/api/media_galleries/media_galleries_api.cc (right): https://codereview.chromium.org/250143002/diff/360001/chrome/browser/extensions/api/media_galleries/media_galleries_api.cc#newcode839 chrome/browser/extensions/api/media_galleries/media_galleries_api.cc:839: bool get_attached_images = On 2014/06/02 ...
6 years, 6 months ago (2014-06-02 18:07:26 UTC) #35
tommycli
https://codereview.chromium.org/250143002/diff/360001/chrome/browser/extensions/api/media_galleries/media_galleries_api.cc File chrome/browser/extensions/api/media_galleries/media_galleries_api.cc (right): https://codereview.chromium.org/250143002/diff/360001/chrome/browser/extensions/api/media_galleries/media_galleries_api.cc#newcode839 chrome/browser/extensions/api/media_galleries/media_galleries_api.cc:839: bool get_attached_images = On 2014/06/02 18:07:27, vandebo wrote: > ...
6 years, 6 months ago (2014-06-02 19:34:37 UTC) #36
tommycli
vandebo: I removed the extra loop at the end that created the ListValue and instead ...
6 years, 6 months ago (2014-06-02 21:49:52 UTC) #37
michaeln
blob lifetime stuff l g t m, i'll remove myself as reviewer for the media ...
6 years, 6 months ago (2014-06-03 00:44:36 UTC) #38
vandebo (ex-Chrome)
LGTM
6 years, 6 months ago (2014-06-03 18:12:48 UTC) #39
tommycli
yoz: extensions/browser/blob_holder.cc has a small bugfix that needs your review. This can also be a ...
6 years, 6 months ago (2014-06-03 18:18:13 UTC) #40
Yoyo Zhou
On 2014/06/03 18:18:13, tommycli wrote: > yoz: extensions/browser/blob_holder.cc has a small bugfix that needs your ...
6 years, 6 months ago (2014-06-03 22:11:28 UTC) #41
tommycli
The CQ bit was checked by tommycli@chromium.org
6 years, 6 months ago (2014-06-04 15:49:11 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommycli@chromium.org/250143002/460001
6 years, 6 months ago (2014-06-04 15:50:01 UTC) #43
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: ios_rel_device_ninja on tryserver.chromium ...
6 years, 6 months ago (2014-06-04 16:28:46 UTC) #44
commit-bot: I haz the power
6 years, 6 months ago (2014-06-04 16:52:56 UTC) #45
Message was sent while issue was closed.
Change committed as 274849

Powered by Google App Engine
This is Rietveld 408576698