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

Issue 2667443002: Convert utility process ParseMediaMetadata blob reading IPC to mojo (Closed)

Created:
3 years, 10 months ago by Noel Gordon
Modified:
3 years, 10 months ago
CC:
Aaron Boodman, abarth-chromium, chromium-apps-reviews_chromium.org, chromium-reviews, darin (slow to review), extensions-reviews_chromium.org, kinuko+fileapi, nhiroki, qsr+mojo_chromium.org, Lei Zhang, tzik, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Convert utility process ParseMediaMetadata blob reading IPC to mojo Update mojo ParseMediaMetadata API Add API documentation. Add a new MediaDataSource interface to the API and document: allow the utility process to request blob data for parsing from the browser process using mojo, rather than IPC. Use content::UtilityProcessMojoClient The code used content::UtilityProcessHost to control the utility process. Replace that with the mojo utility client, remove parser state, implement the MediaDataSource (used to handle utility process blob data requests by calling into existing IO/UI thread blob reader trampolines). Remove the utility process AddHandler ParseMediaMetadata needed the utility client so it could hook its message handler to receive IPC blob data responses from the browser. This can now go: ditch utility client AddHandler() and related. Update metadata::IPCDataSource, MediaMetadataParser Make IPCDataSource own the MediaDataSource and use it to request the blob data. In turn, make MediaMetadataParser own the IPCDataSource. TEST=Covered by MediaGalleriesPlatformAppBrowserTest.GetMetadata BUG=680928 Review-Url: https://codereview.chromium.org/2667443002 Cr-Commit-Position: refs/heads/master@{#450313} Committed: https://chromium.googlesource.com/chromium/src/+/4ce9a407ae2f2299f9d62016fd5a4c71e3dc49d5

Patch Set 1 #

Patch Set 2 : Utility Service. MediaGalleriesPlatformAppBrowserTest.GetMetadata #

Patch Set 3 : Remove typedef, redo some naming. #

Patch Set 4 : Remove the damn helper: call ReleaseProcessIfNeeded directly. #

Total comments: 9

Patch Set 5 : Review comments. #

Patch Set 6 : Add IsSupportedMetadataMimetype helper. #

Patch Set 7 : Make ~SafeMediaMetadataParser non-virtual. #

Total comments: 5

Patch Set 8 : Remove IPCDataSource Crash(). #

Patch Set 9 : Sync to ToT and merge in dependent patch changes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+247 lines, -310 lines) Patch
M chrome/browser/media_galleries/fileapi/safe_media_metadata_parser.h View 1 2 3 4 5 6 4 chunks +35 lines, -44 lines 0 comments Download
M chrome/browser/media_galleries/fileapi/safe_media_metadata_parser.cc View 1 2 3 4 2 chunks +95 lines, -92 lines 0 comments Download
M chrome/common/extensions/chrome_utility_extensions_messages.h View 1 2 3 4 5 6 7 8 2 chunks +0 lines, -9 lines 0 comments Download
M chrome/common/extensions/media_parser.mojom View 1 2 3 4 2 chunks +19 lines, -6 lines 0 comments Download
M chrome/utility/chrome_content_utility_client.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/utility/chrome_content_utility_client.cc View 1 2 3 4 5 6 7 8 3 chunks +1 line, -12 lines 0 comments Download
M chrome/utility/extensions/extensions_handler.h View 2 chunks +0 lines, -3 lines 0 comments Download
M chrome/utility/extensions/extensions_handler.cc View 1 2 3 4 5 6 7 8 9 chunks +19 lines, -29 lines 0 comments Download
M chrome/utility/media_galleries/ipc_data_source.h View 1 2 3 4 5 6 7 2 chunks +20 lines, -32 lines 0 comments Download
M chrome/utility/media_galleries/ipc_data_source.cc View 1 2 3 4 5 6 7 4 chunks +24 lines, -53 lines 0 comments Download
M chrome/utility/media_galleries/media_metadata_parser.h View 1 2 3 4 5 3 chunks +5 lines, -6 lines 0 comments Download
M chrome/utility/media_galleries/media_metadata_parser.cc View 1 2 3 4 5 1 chunk +29 lines, -22 lines 0 comments Download

Messages

Total messages: 82 (58 generated)
Noel Gordon
+ sam and tibell for mojo + tommycli for media galleries + dcheng for IPC ...
3 years, 10 months ago (2017-02-03 15:25:14 UTC) #24
tommycli
On 2017/02/03 15:25:14, noel gordon wrote: > + sam and tibell for mojo > + ...
3 years, 10 months ago (2017-02-03 17:17:29 UTC) #26
Sam McNally
https://codereview.chromium.org/2667443002/diff/80001/chrome/browser/media_galleries/fileapi/safe_media_metadata_parser.h File chrome/browser/media_galleries/fileapi/safe_media_metadata_parser.h (right): https://codereview.chromium.org/2667443002/diff/80001/chrome/browser/media_galleries/fileapi/safe_media_metadata_parser.h#newcode54 chrome/browser/media_galleries/fileapi/safe_media_metadata_parser.h:54: virtual ~SafeMediaMetadataParser(); Why is this protected and virtual instead ...
3 years, 10 months ago (2017-02-03 22:14:16 UTC) #27
Noel Gordon
https://codereview.chromium.org/2667443002/diff/80001/chrome/browser/media_galleries/fileapi/safe_media_metadata_parser.h File chrome/browser/media_galleries/fileapi/safe_media_metadata_parser.h (right): https://codereview.chromium.org/2667443002/diff/80001/chrome/browser/media_galleries/fileapi/safe_media_metadata_parser.h#newcode54 chrome/browser/media_galleries/fileapi/safe_media_metadata_parser.h:54: virtual ~SafeMediaMetadataParser(); On 2017/02/03 22:14:16, Sam McNally wrote: > ...
3 years, 10 months ago (2017-02-05 23:45:04 UTC) #36
Sam McNally
lgtm https://codereview.chromium.org/2667443002/diff/80001/chrome/browser/media_galleries/fileapi/safe_media_metadata_parser.h File chrome/browser/media_galleries/fileapi/safe_media_metadata_parser.h (right): https://codereview.chromium.org/2667443002/diff/80001/chrome/browser/media_galleries/fileapi/safe_media_metadata_parser.h#newcode54 chrome/browser/media_galleries/fileapi/safe_media_metadata_parser.h:54: virtual ~SafeMediaMetadataParser(); On 2017/02/05 23:45:03, noel gordon wrote: ...
3 years, 10 months ago (2017-02-06 00:03:39 UTC) #37
Noel Gordon
On 2017/02/06 00:03:39, Sam McNally wrote: > lgtm > In this case the destructor appears ...
3 years, 10 months ago (2017-02-06 03:13:56 UTC) #42
dcheng
https://codereview.chromium.org/2667443002/diff/140001/chrome/common/extensions/media_parser.mojom File chrome/common/extensions/media_parser.mojom (right): https://codereview.chromium.org/2667443002/diff/140001/chrome/common/extensions/media_parser.mojom#newcode40 chrome/common/extensions/media_parser.mojom:40: ReadBlob(int64 position, int64 length) => (array<uint8> data); Is this ...
3 years, 10 months ago (2017-02-06 06:36:48 UTC) #43
Noel Gordon
https://codereview.chromium.org/2667443002/diff/140001/chrome/common/extensions/media_parser.mojom File chrome/common/extensions/media_parser.mojom (right): https://codereview.chromium.org/2667443002/diff/140001/chrome/common/extensions/media_parser.mojom#newcode40 chrome/common/extensions/media_parser.mojom:40: ReadBlob(int64 position, int64 length) => (array<uint8> data); On 2017/02/06 ...
3 years, 10 months ago (2017-02-07 12:20:42 UTC) #44
Noel Gordon
On 2017/02/03 17:17:29, tommycli wrote: > On 2017/02/03 15:25:14, noel gordon wrote: > > + ...
3 years, 10 months ago (2017-02-07 12:38:51 UTC) #45
tommycli
On 2017/02/07 12:38:51, noel gordon wrote: > On 2017/02/03 17:17:29, tommycli wrote: > > On ...
3 years, 10 months ago (2017-02-07 17:43:46 UTC) #46
dcheng
https://codereview.chromium.org/2667443002/diff/140001/chrome/utility/media_galleries/ipc_data_source.cc File chrome/utility/media_galleries/ipc_data_source.cc (right): https://codereview.chromium.org/2667443002/diff/140001/chrome/utility/media_galleries/ipc_data_source.cc#newcode63 chrome/utility/media_galleries/ipc_data_source.cc:63: IMMEDIATE_CRASH(); On 2017/02/07 12:20:42, noel gordon wrote: > On ...
3 years, 10 months ago (2017-02-07 23:47:30 UTC) #47
Noel Gordon
On 2017/02/07 23:47:30, dcheng wrote: > https://codereview.chromium.org/2667443002/diff/140001/chrome/utility/media_galleries/ipc_data_source.cc > File chrome/utility/media_galleries/ipc_data_source.cc (right): > > https://codereview.chromium.org/2667443002/diff/140001/chrome/utility/media_galleries/ipc_data_source.cc#newcode63 > ...
3 years, 10 months ago (2017-02-07 23:53:00 UTC) #48
Sam McNally
On 2017/02/07 23:53:00, noel gordon wrote: > On 2017/02/07 23:47:30, dcheng wrote: > > > ...
3 years, 10 months ago (2017-02-08 00:45:59 UTC) #49
dcheng
On 2017/02/08 00:45:59, Sam McNally wrote: > On 2017/02/07 23:53:00, noel gordon wrote: > > ...
3 years, 10 months ago (2017-02-08 00:55:15 UTC) #50
Noel Gordon
On 2017/02/08 00:55:15, dcheng wrote: > On 2017/02/08 00:45:59, Sam McNally wrote: > > On ...
3 years, 10 months ago (2017-02-08 03:29:13 UTC) #51
dcheng
On 2017/02/08 03:29:13, noel gordon wrote: > On 2017/02/08 00:55:15, dcheng wrote: > > On ...
3 years, 10 months ago (2017-02-08 03:34:13 UTC) #52
tibell
lgtm
3 years, 10 months ago (2017-02-08 04:33:00 UTC) #53
Noel Gordon
On 2017/02/08 03:34:13, dcheng wrote: > On 2017/02/08 03:29:13, noel gordon wrote: > > So ...
3 years, 10 months ago (2017-02-08 05:01:31 UTC) #54
dcheng
mojo lgtm
3 years, 10 months ago (2017-02-08 08:33:39 UTC) #59
Noel Gordon
On 2017/02/06 06:36:48, dcheng wrote: > https://codereview.chromium.org/2667443002/diff/140001/chrome/common/extensions/media_parser.mojom > File chrome/common/extensions/media_parser.mojom (right): > > https://codereview.chromium.org/2667443002/diff/140001/chrome/common/extensions/media_parser.mojom#newcode40 > ...
3 years, 10 months ago (2017-02-08 13:12:12 UTC) #64
Noel Gordon
Synced up to tip, +jochen for OWNERS
3 years, 10 months ago (2017-02-13 00:28:36 UTC) #74
jochen (gone - plz use gerrit)
lgtm
3 years, 10 months ago (2017-02-14 09:03:36 UTC) #76
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/2667443002/180001
3 years, 10 months ago (2017-02-14 09:06:44 UTC) #79
commit-bot: I haz the power
3 years, 10 months ago (2017-02-14 10:29:42 UTC) #82
Message was sent while issue was closed.
Committed patchset #9 (id:180001) as
https://chromium.googlesource.com/chromium/src/+/4ce9a407ae2f2299f9d62016fd5a...

Powered by Google App Engine
This is Rietveld 408576698