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

Issue 20572004: Add media file validation to utility process (Closed)

Created:
7 years, 4 months ago by vandebo (ex-Chrome)
Modified:
7 years, 4 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Visibility:
Public.

Description

Add media file validation to utility process This does not do a full validation of the media file, but only does basic checks. BUG=144509 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=216653

Patch Set 1 #

Patch Set 2 : Checkpoint #

Patch Set 3 : Working #

Patch Set 4 : Init media library #

Patch Set 5 : Checkpoint - init in preSandbox, move checker to media/ #

Patch Set 6 : Checkpoint file decoding #

Patch Set 7 : Fix EOF detection #

Patch Set 8 : nits #

Total comments: 25

Patch Set 9 : Address comments #

Patch Set 10 : nit #

Total comments: 2

Patch Set 11 : More comments #

Total comments: 6

Patch Set 12 : nits #

Total comments: 27

Patch Set 13 : Address comments #

Patch Set 14 : exclude test when source is excluded #

Total comments: 9

Patch Set 15 : Final nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+279 lines, -5 lines) Patch
M chrome/app/chrome_main_delegate.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome.gyp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_utility_messages.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +17 lines, -0 lines 0 comments Download
M chrome/utility/DEPS View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M chrome/utility/chrome_content_utility_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +6 lines, -2 lines 0 comments Download
M chrome/utility/chrome_content_utility_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 7 chunks +32 lines, -2 lines 0 comments Download
A media/base/media_file_checker.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +41 lines, -0 lines 0 comments Download
A media/base/media_file_checker.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +110 lines, -0 lines 0 comments Download
A media/base/media_file_checker_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +48 lines, -0 lines 0 comments Download
M media/filters/file_data_source.h View 2 chunks +2 lines, -0 lines 0 comments Download
M media/filters/file_data_source.cc View 1 chunk +11 lines, -0 lines 0 comments Download
M media/media.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +9 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
vandebo (ex-Chrome)
dalecurtis for media/* and chrome/utility/DEPS tsepez for chrome_utility_message.h thestig for chrome/*
7 years, 4 months ago (2013-08-07 06:12:36 UTC) #1
vandebo (ex-Chrome)
BTW - https://codereview.chromium.org/20190002/ is the consumer of this change.
7 years, 4 months ago (2013-08-07 06:13:22 UTC) #2
Tom Sepez
Messages LGTM.
7 years, 4 months ago (2013-08-07 16:49:16 UTC) #3
DaleCurtis
https://codereview.chromium.org/20572004/diff/24001/media/base/media_file_checker.cc File media/base/media_file_checker.cc (right): https://codereview.chromium.org/20572004/diff/24001/media/base/media_file_checker.cc#newcode21 media/base/media_file_checker.cc:21: void ClearBoolCallback(bool* called) { Name is pretty meaningless. How ...
7 years, 4 months ago (2013-08-07 18:27:06 UTC) #4
Lei Zhang
https://codereview.chromium.org/20572004/diff/24001/chrome/app/chrome_main_delegate.cc File chrome/app/chrome_main_delegate.cc (right): https://codereview.chromium.org/20572004/diff/24001/chrome/app/chrome_main_delegate.cc#newcode645 chrome/app/chrome_main_delegate.cc:645: PathService::Get(content::DIR_MEDIA_LIBS, &media_path); Why not just do this in PreSandboxStartup() ...
7 years, 4 months ago (2013-08-07 20:56:21 UTC) #5
vandebo (ex-Chrome)
https://codereview.chromium.org/20572004/diff/24001/chrome/app/chrome_main_delegate.cc File chrome/app/chrome_main_delegate.cc (right): https://codereview.chromium.org/20572004/diff/24001/chrome/app/chrome_main_delegate.cc#newcode645 chrome/app/chrome_main_delegate.cc:645: PathService::Get(content::DIR_MEDIA_LIBS, &media_path); On 2013/08/07 20:56:21, Lei Zhang wrote: > ...
7 years, 4 months ago (2013-08-07 21:00:43 UTC) #6
Lei Zhang
https://codereview.chromium.org/20572004/diff/24001/chrome/app/chrome_main_delegate.cc File chrome/app/chrome_main_delegate.cc (right): https://codereview.chromium.org/20572004/diff/24001/chrome/app/chrome_main_delegate.cc#newcode645 chrome/app/chrome_main_delegate.cc:645: PathService::Get(content::DIR_MEDIA_LIBS, &media_path); On 2013/08/07 21:00:43, vandebo wrote: > On ...
7 years, 4 months ago (2013-08-07 22:30:14 UTC) #7
DaleCurtis
https://codereview.chromium.org/20572004/diff/24001/media/base/media_file_checker.cc File media/base/media_file_checker.cc (right): https://codereview.chromium.org/20572004/diff/24001/media/base/media_file_checker.cc#newcode86 media/base/media_file_checker.cc:86: do { On 2013/08/07 21:00:43, vandebo wrote: > On ...
7 years, 4 months ago (2013-08-07 22:56:20 UTC) #8
vandebo (ex-Chrome)
On 2013/08/07 22:56:20, DaleCurtis wrote: > https://codereview.chromium.org/20572004/diff/24001/media/base/media_file_checker.cc > File media/base/media_file_checker.cc (right): > > https://codereview.chromium.org/20572004/diff/24001/media/base/media_file_checker.cc#newcode86 > ...
7 years, 4 months ago (2013-08-07 23:09:46 UTC) #9
vandebo (ex-Chrome)
+avi for DEPS changes https://codereview.chromium.org/20572004/diff/24001/chrome/app/chrome_main_delegate.cc File chrome/app/chrome_main_delegate.cc (right): https://codereview.chromium.org/20572004/diff/24001/chrome/app/chrome_main_delegate.cc#newcode645 chrome/app/chrome_main_delegate.cc:645: PathService::Get(content::DIR_MEDIA_LIBS, &media_path); On 2013/08/07 22:30:14, ...
7 years, 4 months ago (2013-08-07 23:26:12 UTC) #10
Lei Zhang
chrome/ lgtm with some nits: https://codereview.chromium.org/20572004/diff/33002/chrome/app/chrome_main_delegate.cc File chrome/app/chrome_main_delegate.cc (right): https://codereview.chromium.org/20572004/diff/33002/chrome/app/chrome_main_delegate.cc#newcode8 chrome/app/chrome_main_delegate.cc:8: #include "base/files/file_path.h" Undo https://codereview.chromium.org/20572004/diff/33002/chrome/utility/DEPS ...
7 years, 4 months ago (2013-08-07 23:32:57 UTC) #11
DaleCurtis
Pretty much what I just said, you're only calling decode once per packet when you ...
7 years, 4 months ago (2013-08-08 00:36:07 UTC) #12
vandebo (ex-Chrome)
On 2013/08/08 00:36:07, DaleCurtis wrote: > Pretty much what I just said, you're only calling ...
7 years, 4 months ago (2013-08-08 05:18:57 UTC) #13
vandebo (ex-Chrome)
-avi: nevermind https://codereview.chromium.org/20572004/diff/33002/chrome/app/chrome_main_delegate.cc File chrome/app/chrome_main_delegate.cc (right): https://codereview.chromium.org/20572004/diff/33002/chrome/app/chrome_main_delegate.cc#newcode8 chrome/app/chrome_main_delegate.cc:8: #include "base/files/file_path.h" On 2013/08/07 23:32:57, Lei Zhang ...
7 years, 4 months ago (2013-08-08 16:01:47 UTC) #14
DaleCurtis
MediaFileChecker needs a unittest. Check out audio_file_reader for an example. https://codereview.chromium.org/20572004/diff/21002/chrome/utility/chrome_content_utility_client.cc File chrome/utility/chrome_content_utility_client.cc (right): https://codereview.chromium.org/20572004/diff/21002/chrome/utility/chrome_content_utility_client.cc#newcode538 ...
7 years, 4 months ago (2013-08-08 21:04:33 UTC) #15
vandebo (ex-Chrome)
On 2013/08/08 21:04:33, DaleCurtis wrote: > MediaFileChecker needs a unittest. Check out audio_file_reader for an ...
7 years, 4 months ago (2013-08-08 23:04:18 UTC) #16
DaleCurtis
lgtm % nits. https://codereview.chromium.org/20572004/diff/67001/chrome/utility/chrome_content_utility_client.h File chrome/utility/chrome_content_utility_client.h (right): https://codereview.chromium.org/20572004/diff/67001/chrome/utility/chrome_content_utility_client.h#newcode87 chrome/utility/chrome_content_utility_client.h:87: IPC::PlatformFileForTransit media_file); Looks like this can ...
7 years, 4 months ago (2013-08-09 00:58:04 UTC) #17
vandebo (ex-Chrome)
https://codereview.chromium.org/20572004/diff/67001/chrome/utility/chrome_content_utility_client.h File chrome/utility/chrome_content_utility_client.h (right): https://codereview.chromium.org/20572004/diff/67001/chrome/utility/chrome_content_utility_client.h#newcode87 chrome/utility/chrome_content_utility_client.h:87: IPC::PlatformFileForTransit media_file); On 2013/08/09 00:58:04, DaleCurtis wrote: > Looks ...
7 years, 4 months ago (2013-08-09 04:26:14 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vandebo@chromium.org/20572004/36002
7 years, 4 months ago (2013-08-09 04:27:38 UTC) #19
commit-bot: I haz the power
7 years, 4 months ago (2013-08-09 10:26:27 UTC) #20
Message was sent while issue was closed.
Change committed as 216653

Powered by Google App Engine
This is Rietveld 408576698