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

Issue 12595005: Parsing filesystem url before giving it to media player (Closed)

Created:
7 years, 9 months ago by qinmin
Modified:
7 years, 9 months ago
CC:
chromium-reviews, tzik+watch_chromium.org, joi+watch-content_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, kinuko+watch
Visibility:
Public.

Description

Parsing filesystem url before giving it to media player Android media player directly takes a url to playback a video and it cannot handle filesystem urls. To solve the problem, we need to translate a filesystem url to a platform path before calling setDataSource(). CookieGetter is renamed to MediaResourceGetter to handle such translations. BUG=180541 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=189126

Patch Set 1 #

Total comments: 11

Patch Set 2 : using GURL instead of string #

Total comments: 4

Patch Set 3 : fixing nits #

Total comments: 2

Patch Set 4 : remove a line #

Patch Set 5 : moving some calls from FileapiMessageFilter into BrowserFileSystemHelper #

Total comments: 2

Patch Set 6 : fixing nits #

Total comments: 2

Patch Set 7 : fixing nits #

Total comments: 9

Patch Set 8 : adding dir check for returned file path #

Total comments: 1

Patch Set 9 : rebase change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+425 lines, -420 lines) Patch
D content/browser/android/cookie_getter_impl.h View 1 chunk +0 lines, -63 lines 0 comments Download
D content/browser/android/cookie_getter_impl.cc View 1 chunk +0 lines, -155 lines 0 comments Download
M content/browser/android/media_player_manager_android.h View 1 2 chunks +3 lines, -2 lines 0 comments Download
M content/browser/android/media_player_manager_android.cc View 1 3 chunks +8 lines, -4 lines 0 comments Download
A content/browser/android/media_resource_getter_impl.h View 1 2 3 4 1 chunk +79 lines, -0 lines 0 comments Download
A + content/browser/android/media_resource_getter_impl.cc View 1 2 3 4 5 6 7 8 7 chunks +99 lines, -21 lines 0 comments Download
M content/browser/fileapi/browser_file_system_helper.h View 1 2 3 4 5 2 chunks +16 lines, -0 lines 0 comments Download
M content/browser/fileapi/browser_file_system_helper.cc View 1 2 3 4 5 2 chunks +97 lines, -0 lines 0 comments Download
M content/browser/fileapi/fileapi_message_filter.cc View 1 2 3 4 5 6 3 chunks +4 lines, -80 lines 0 comments Download
M content/common/media/media_player_messages.h View 1 2 chunks +3 lines, -2 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/media/webmediaplayer_proxy_impl_android.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/media/webmediaplayer_proxy_impl_android.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
D media/base/android/cookie_getter.h View 1 chunk +0 lines, -30 lines 0 comments Download
D media/base/android/cookie_getter.cc View 1 chunk +0 lines, -11 lines 0 comments Download
M media/base/android/media_player_bridge.h View 1 2 3 4 5 6 7 6 chunks +14 lines, -10 lines 0 comments Download
M media/base/android/media_player_bridge.cc View 1 2 3 4 5 6 7 7 chunks +23 lines, -9 lines 0 comments Download
A media/base/android/media_resource_getter.h View 1 1 chunk +38 lines, -0 lines 0 comments Download
A + media/base/android/media_resource_getter.cc View 1 chunk +4 lines, -6 lines 0 comments Download
M media/media.gyp View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M webkit/media/android/webmediaplayer_impl_android.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M webkit/media/android/webmediaplayer_in_process_android.h View 1 2 chunks +12 lines, -8 lines 0 comments Download
M webkit/media/android/webmediaplayer_in_process_android.cc View 1 2 chunks +14 lines, -8 lines 0 comments Download
M webkit/media/android/webmediaplayer_proxy_android.h View 1 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 34 (0 generated)
qinmin
PTAL
7 years, 9 months ago (2013-03-08 02:27:58 UTC) #1
kinuko
https://codereview.chromium.org/12595005/diff/1/content/browser/android/media_resource_getter_impl.cc File content/browser/android/media_resource_getter_impl.cc (right): https://codereview.chromium.org/12595005/diff/1/content/browser/android/media_resource_getter_impl.cc#newcode163 content/browser/android/media_resource_getter_impl.cc:163: &platform_path); If you can implement this with async API, ...
7 years, 9 months ago (2013-03-08 02:43:20 UTC) #2
qinmin
https://codereview.chromium.org/12595005/diff/1/content/browser/android/media_resource_getter_impl.cc File content/browser/android/media_resource_getter_impl.cc (right): https://codereview.chromium.org/12595005/diff/1/content/browser/android/media_resource_getter_impl.cc#newcode163 content/browser/android/media_resource_getter_impl.cc:163: &platform_path); For GetMetadata(), does it has to be on ...
7 years, 9 months ago (2013-03-08 03:09:27 UTC) #3
kinuko
https://codereview.chromium.org/12595005/diff/1/content/browser/android/media_resource_getter_impl.cc File content/browser/android/media_resource_getter_impl.cc (right): https://codereview.chromium.org/12595005/diff/1/content/browser/android/media_resource_getter_impl.cc#newcode163 content/browser/android/media_resource_getter_impl.cc:163: &platform_path); On 2013/03/08 03:09:28, qinmin wrote: > For GetMetadata(), ...
7 years, 9 months ago (2013-03-08 03:14:32 UTC) #4
scherkus (not reviewing)
https://codereview.chromium.org/12595005/diff/1/content/browser/android/media_resource_getter_impl.cc File content/browser/android/media_resource_getter_impl.cc (right): https://codereview.chromium.org/12595005/diff/1/content/browser/android/media_resource_getter_impl.cc#newcode123 content/browser/android/media_resource_getter_impl.cc:123: : public base::RefCountedThreadSafe<PlatformPathGetterTask> { should be 4 space indent ...
7 years, 9 months ago (2013-03-08 21:26:27 UTC) #5
qinmin
https://codereview.chromium.org/12595005/diff/1/content/browser/android/media_resource_getter_impl.cc File content/browser/android/media_resource_getter_impl.cc (right): https://codereview.chromium.org/12595005/diff/1/content/browser/android/media_resource_getter_impl.cc#newcode123 content/browser/android/media_resource_getter_impl.cc:123: : public base::RefCountedThreadSafe<PlatformPathGetterTask> { On 2013/03/08 21:26:27, scherkus wrote: ...
7 years, 9 months ago (2013-03-08 22:36:12 UTC) #6
scherkus (not reviewing)
lgtm w/ nits https://codereview.chromium.org/12595005/diff/9001/media/base/android/media_player_bridge.h File media/base/android/media_player_bridge.h (right): https://codereview.chromium.org/12595005/diff/9001/media/base/android/media_player_bridge.h#newcode143 media/base/android/media_player_bridge.h:143: // Callback function passed to |cookies_retriever_|. ...
7 years, 9 months ago (2013-03-11 20:28:33 UTC) #7
qinmin
https://codereview.chromium.org/12595005/diff/9001/media/base/android/media_player_bridge.h File media/base/android/media_player_bridge.h (right): https://codereview.chromium.org/12595005/diff/9001/media/base/android/media_player_bridge.h#newcode143 media/base/android/media_player_bridge.h:143: // Callback function passed to |cookies_retriever_|. On 2013/03/11 20:28:33, ...
7 years, 9 months ago (2013-03-11 21:12:16 UTC) #8
ericu
I can't help but think that it's weird to have people calling directly into a ...
7 years, 9 months ago (2013-03-11 21:13:10 UTC) #9
kinuko
https://codereview.chromium.org/12595005/diff/13001/content/browser/fileapi/fileapi_message_filter.cc File content/browser/fileapi/fileapi_message_filter.cc (right): https://codereview.chromium.org/12595005/diff/13001/content/browser/fileapi/fileapi_message_filter.cc#newcode58 content/browser/fileapi/fileapi_message_filter.cc:58: bool CheckFilePermissionsForProcess( We're going to add a ChildProcessSecurityPolicy method ...
7 years, 9 months ago (2013-03-12 07:59:43 UTC) #10
qinmin
https://codereview.chromium.org/12595005/diff/13001/content/browser/fileapi/fileapi_message_filter.cc File content/browser/fileapi/fileapi_message_filter.cc (right): https://codereview.chromium.org/12595005/diff/13001/content/browser/fileapi/fileapi_message_filter.cc#newcode58 content/browser/fileapi/fileapi_message_filter.cc:58: bool CheckFilePermissionsForProcess( If that method is provided, it is ...
7 years, 9 months ago (2013-03-12 16:03:31 UTC) #11
qinmin
hi, kinuko, are you ok with the current change? or do you want me to ...
7 years, 9 months ago (2013-03-13 18:34:49 UTC) #12
kinuko
Hi, sorry for my late reply. I was hoping that the ChildProcessSecurityPolicy can be made ...
7 years, 9 months ago (2013-03-14 00:21:47 UTC) #13
qinmin
Hi, Kinuko. Just made the patch to move all the calls from FileAPIMessageFilter to BrowserFileSystemHelper. ...
7 years, 9 months ago (2013-03-14 02:36:13 UTC) #14
kinuko
Cool, fileapi changes lgtm (+nits for naming) Thanks! https://codereview.chromium.org/12595005/diff/28001/content/browser/fileapi/browser_file_system_helper.h File content/browser/fileapi/browser_file_system_helper.h (right): https://codereview.chromium.org/12595005/diff/28001/content/browser/fileapi/browser_file_system_helper.h#newcode35 content/browser/fileapi/browser_file_system_helper.h:35: CONTENT_EXPORT ...
7 years, 9 months ago (2013-03-14 03:11:44 UTC) #15
qinmin
jam, would you please take a look at this? need OWNERS stamp on content/ https://codereview.chromium.org/12595005/diff/28001/content/browser/fileapi/browser_file_system_helper.h ...
7 years, 9 months ago (2013-03-14 19:24:03 UTC) #16
ericu
That's much better, thanks. https://codereview.chromium.org/12595005/diff/33001/content/browser/fileapi/fileapi_message_filter.cc File content/browser/fileapi/fileapi_message_filter.cc (right): https://codereview.chromium.org/12595005/diff/33001/content/browser/fileapi/fileapi_message_filter.cc#newcode510 content/browser/fileapi/fileapi_message_filter.cc:510: SyncGetPlatformPath(context_, process_id_, Unwrap line? It ...
7 years, 9 months ago (2013-03-14 21:45:18 UTC) #17
qinmin
https://codereview.chromium.org/12595005/diff/33001/content/browser/fileapi/fileapi_message_filter.cc File content/browser/fileapi/fileapi_message_filter.cc (right): https://codereview.chromium.org/12595005/diff/33001/content/browser/fileapi/fileapi_message_filter.cc#newcode510 content/browser/fileapi/fileapi_message_filter.cc:510: SyncGetPlatformPath(context_, process_id_, On 2013/03/14 21:45:18, ericu wrote: > Unwrap ...
7 years, 9 months ago (2013-03-14 21:47:37 UTC) #18
qinmin
jam, would you please give some OWNER's blessing? Media and fileapi related changes are reviewed. ...
7 years, 9 months ago (2013-03-15 17:57:47 UTC) #19
qinmin
+yfriedman for content/browser/android
7 years, 9 months ago (2013-03-15 23:51:37 UTC) #20
jam
On 2013/03/15 17:57:47, qinmin wrote: > jam, would you please give some OWNER's blessing? > ...
7 years, 9 months ago (2013-03-18 17:05:52 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qinmin@chromium.org/12595005/39001
7 years, 9 months ago (2013-03-18 17:17:39 UTC) #22
commit-bot: I haz the power
Presubmit check for 12595005-39001 failed and returned exit status 1. INFO:root:Found 20 file(s). Running presubmit ...
7 years, 9 months ago (2013-03-18 17:17:58 UTC) #23
qinmin
+palmer for IPC
7 years, 9 months ago (2013-03-18 17:30:26 UTC) #24
palmer
https://chromiumcodereview.appspot.com/12595005/diff/39001/content/browser/android/media_resource_getter_impl.cc File content/browser/android/media_resource_getter_impl.cc (right): https://chromiumcodereview.appspot.com/12595005/diff/39001/content/browser/android/media_resource_getter_impl.cc#newcode161 content/browser/android/media_resource_getter_impl.cc:161: SyncGetPlatformPath(file_system_context_, At some point, possibly here or inside SyncGetPlatformPath, ...
7 years, 9 months ago (2013-03-18 19:54:33 UTC) #25
qinmin
https://chromiumcodereview.appspot.com/12595005/diff/39001/content/browser/android/media_resource_getter_impl.cc File content/browser/android/media_resource_getter_impl.cc (right): https://chromiumcodereview.appspot.com/12595005/diff/39001/content/browser/android/media_resource_getter_impl.cc#newcode161 content/browser/android/media_resource_getter_impl.cc:161: SyncGetPlatformPath(file_system_context_, For filesystem url, the data are actually stored ...
7 years, 9 months ago (2013-03-18 22:27:58 UTC) #26
Yaron
lgtm
7 years, 9 months ago (2013-03-18 23:05:44 UTC) #27
palmer
lgtm https://chromiumcodereview.appspot.com/12595005/diff/50002/content/browser/android/media_resource_getter_impl.cc File content/browser/android/media_resource_getter_impl.cc (right): https://chromiumcodereview.appspot.com/12595005/diff/50002/content/browser/android/media_resource_getter_impl.cc#newcode167 content/browser/android/media_resource_getter_impl.cc:167: PathService::Get(base::DIR_ANDROID_APP_DATA, &external_storage_path); Great, thanks.
7 years, 9 months ago (2013-03-18 23:42:36 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qinmin@chromium.org/12595005/50002
7 years, 9 months ago (2013-03-18 23:43:53 UTC) #29
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=124124
7 years, 9 months ago (2013-03-19 01:26:30 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qinmin@chromium.org/12595005/50002
7 years, 9 months ago (2013-03-19 02:44:23 UTC) #31
commit-bot: I haz the power
Failed to apply patch for content/content_browser.gypi: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 9 months ago (2013-03-19 02:44:29 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qinmin@chromium.org/12595005/70001
7 years, 9 months ago (2013-03-19 16:59:31 UTC) #33
commit-bot: I haz the power
7 years, 9 months ago (2013-03-19 22:04:21 UTC) #34
Message was sent while issue was closed.
Change committed as 189126

Powered by Google App Engine
This is Rietveld 408576698