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

Issue 1996043002: Split MediaContentType and AudioFocusType (Closed)

Created:
4 years, 7 months ago by Zhiqiang Zhang (Slow)
Modified:
4 years, 3 months ago
CC:
avayvod+watch_chromium.org, chromium-reviews, darin-cc_chromium.org, feature-media-reviews_chromium.org, jam, mcasas+watch+vc_chromium.org, miu+watch_chromium.org, mkwst+moarreviews-renderer_chromium.org, posciak+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Split MediaContentType and AudioFocusType The existing MediaSession::Type does not work well for Pepper&WebRTC. Spliting MediaContentType for MediaPlayer and AudioFocusType for MediaSession to gain more control of audio focus. Explainer for this CL: https://docs.google.com/a/google.com/document/d/1W4uRH8Wvgau0_GtMda4EOSXRtxFuFLhb9W77sJagJpI/edit?usp=sharing BUG=626351 Committed: https://crrev.com/5d8eab739eb23c4fd27ba6a18b0e1afc15182321 Cr-Commit-Position: refs/heads/master@{#414800}

Patch Set 1 : #

Patch Set 2 : Split MediaContentType and AudioFocusType #

Patch Set 3 : pepper #

Patch Set 4 : fix desktop build #

Patch Set 5 : fixed desktop build & tests #

Total comments: 6

Patch Set 6 : addressed Mounir's comments #

Total comments: 36

Patch Set 7 : addressed Anton's comments #

Patch Set 8 : some nits #

Total comments: 1

Patch Set 9 : added comments as suggested by Dale #

Total comments: 4

Patch Set 10 : addressed nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+504 lines, -273 lines) Patch
M content/browser/media/android/browser_media_player_manager.cc View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -1 line 0 comments Download
M content/browser/media/android/media_web_contents_observer_android.h View 1 2 3 4 5 6 7 2 chunks +5 lines, -1 line 0 comments Download
M content/browser/media/android/media_web_contents_observer_android.cc View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
M content/browser/media/media_web_contents_observer.h View 1 2 chunks +5 lines, -1 line 0 comments Download
M content/browser/media/media_web_contents_observer.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/media/session/media_session.h View 1 2 3 4 5 6 7 8 chunks +18 lines, -14 lines 0 comments Download
M content/browser/media/session/media_session.cc View 1 2 3 4 5 6 10 chunks +48 lines, -30 lines 0 comments Download
M content/browser/media/session/media_session_browsertest.cc View 1 2 3 4 5 6 59 chunks +207 lines, -112 lines 0 comments Download
M content/browser/media/session/media_session_controller.h View 1 2 3 4 5 6 2 chunks +7 lines, -1 line 0 comments Download
M content/browser/media/session/media_session_controller.cc View 1 2 3 4 5 3 chunks +6 lines, -10 lines 0 comments Download
M content/browser/media/session/media_session_controller_unittest.cc View 1 2 3 4 5 6 6 chunks +25 lines, -25 lines 0 comments Download
M content/browser/media/session/media_session_controllers_manager.h View 1 2 3 4 5 6 2 chunks +5 lines, -1 line 0 comments Download
M content/browser/media/session/media_session_controllers_manager.cc View 1 2 3 4 5 3 chunks +7 lines, -4 lines 0 comments Download
M content/browser/media/session/media_session_delegate.h View 1 2 3 4 5 6 2 chunks +4 lines, -2 lines 0 comments Download
M content/browser/media/session/media_session_delegate_android.h View 1 2 3 4 5 6 2 chunks +3 lines, -2 lines 0 comments Download
M content/browser/media/session/media_session_delegate_android.cc View 1 2 3 4 5 6 1 chunk +5 lines, -2 lines 0 comments Download
M content/browser/media/session/media_session_delegate_android_browsertest.cc View 1 2 3 4 5 6 2 chunks +3 lines, -2 lines 0 comments Download
M content/browser/media/session/media_session_delegate_default.cc View 1 2 3 4 5 6 2 chunks +6 lines, -6 lines 0 comments Download
M content/browser/media/session/media_session_delegate_default_browsertest.cc View 1 2 3 4 5 6 2 chunks +5 lines, -4 lines 0 comments Download
M content/browser/media/session/pepper_playback_observer.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/web_contents/web_contents_impl_unittest.cc View 1 2 3 4 5 6 5 chunks +10 lines, -5 lines 0 comments Download
M content/common/media/media_player_delegate_messages.h View 1 2 chunks +5 lines, -2 lines 0 comments Download
M content/renderer/media/android/webmediaplayer_android.cc View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M content/renderer/media/renderer_webmediaplayer_delegate.h View 1 2 3 4 5 2 chunks +3 lines, -1 line 0 comments Download
M content/renderer/media/renderer_webmediaplayer_delegate.cc View 1 2 3 4 5 2 chunks +8 lines, -6 lines 0 comments Download
M content/renderer/media/renderer_webmediaplayer_delegate_browsertest.cc View 1 2 3 4 5 6 9 chunks +34 lines, -28 lines 0 comments Download
M content/renderer/media/webmediaplayer_ms.cc View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M content/renderer/media/webmediaplayer_ms_unittest.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M media/base/BUILD.gn View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
A media/base/media_content_type.h View 1 2 3 4 5 6 7 8 9 1 chunk +36 lines, -0 lines 0 comments Download
A media/base/media_content_type.cc View 1 2 3 4 5 6 7 8 1 chunk +22 lines, -0 lines 0 comments Download
M media/blink/webmediaplayer_delegate.h View 1 2 3 4 5 2 chunks +3 lines, -1 line 0 comments Download
M media/blink/webmediaplayer_impl.cc View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -2 lines 0 comments Download
M media/blink/webmediaplayer_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M media/media.gyp View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 50 (25 generated)
Zhiqiang Zhang (Slow)
4 years, 7 months ago (2016-05-19 16:48:14 UTC) #3
Zhiqiang Zhang (Slow)
Did some refactoring. PTAL! +avayvod@ if you don't have time to review.
4 years, 5 months ago (2016-07-07 16:32:15 UTC) #7
Zhiqiang Zhang (Slow)
Ping! (bringing this CL up in Mounir's review queue)
4 years, 4 months ago (2016-08-18 11:43:38 UTC) #8
mlamouri (slow - plz ping)
The idea sgtm. Hopefully, avayvod@ can do the full review. https://codereview.chromium.org/1996043002/diff/120001/content/browser/media/session/media_session.h File content/browser/media/session/media_session.h (right): https://codereview.chromium.org/1996043002/diff/120001/content/browser/media/session/media_session.h#newcode63 ...
4 years, 4 months ago (2016-08-18 14:33:15 UTC) #9
Zhiqiang Zhang (Slow)
PTAL. Addressed Mounir's comments. Rebased onto AudioFocusManager and reusing AudioFocusManager::AudioFocusType in MediaSession. https://codereview.chromium.org/1996043002/diff/120001/content/browser/media/session/media_session.h File content/browser/media/session/media_session.h ...
4 years, 4 months ago (2016-08-18 17:31:45 UTC) #10
whywhat
https://codereview.chromium.org/1996043002/diff/140001/content/browser/media/session/media_session.cc File content/browser/media/session/media_session.cc (right): https://codereview.chromium.org/1996043002/diff/140001/content/browser/media/session/media_session.cc#newcode75 content/browser/media/session/media_session.cc:75: } nit: no need for {} here https://codereview.chromium.org/1996043002/diff/140001/content/browser/media/session/media_session.cc#newcode78 content/browser/media/session/media_session.cc:78: ...
4 years, 4 months ago (2016-08-18 20:33:42 UTC) #11
Zhiqiang Zhang (Slow)
Thanks for reviewing this large patch. Addressed Anton's comments w/ replies. PTAL. https://codereview.chromium.org/1996043002/diff/140001/content/browser/media/session/media_session.cc File content/browser/media/session/media_session.cc ...
4 years, 4 months ago (2016-08-19 15:05:55 UTC) #12
whywhat
lgtm Thanks for addressing my comments.
4 years, 4 months ago (2016-08-19 23:34:48 UTC) #17
Zhiqiang Zhang (Slow)
+dalecurtis@ for approval. Sorry the CL has to be so big, added an explainer in ...
4 years, 4 months ago (2016-08-22 10:15:53 UTC) #20
DaleCurtis
lgtm https://codereview.chromium.org/1996043002/diff/180001/media/base/media_content_type.cc File media/base/media_content_type.cc (right): https://codereview.chromium.org/1996043002/diff/180001/media/base/media_content_type.cc#newcode14 media/base/media_content_type.cc:14: return (duration.is_zero() || Should probably add a comment ...
4 years, 4 months ago (2016-08-22 17:37:22 UTC) #21
Zhiqiang Zhang (Slow)
+dcheng to review media_player_delegate_messages.h +jochen to rubberstamp web_contents_impl_unittest.cc
4 years, 4 months ago (2016-08-22 18:04:50 UTC) #23
jochen (gone - plz use gerrit)
lgtm
4 years, 4 months ago (2016-08-23 12:47:45 UTC) #28
mlamouri (slow - plz ping)
lgtm https://codereview.chromium.org/1996043002/diff/200001/media/base/media_content_type.h File media/base/media_content_type.h (right): https://codereview.chromium.org/1996043002/diff/200001/media/base/media_content_type.h#newcode23 media/base/media_content_type.h:23: // player instead of pausing it. style: you ...
4 years, 4 months ago (2016-08-23 13:19:04 UTC) #29
Zhiqiang Zhang (Slow)
Ping! dcheng@, can you review the IPC change? It should be trivial enough.
4 years, 3 months ago (2016-08-25 09:31:43 UTC) #30
Zhiqiang Zhang (Slow)
+tsepez@ for review IPC message changes
4 years, 3 months ago (2016-08-25 10:52:54 UTC) #31
Zhiqiang Zhang (Slow)
+tsepez@ to review IPC message changes.
4 years, 3 months ago (2016-08-25 10:53:43 UTC) #33
Tom Sepez
Messages LGTM with nit. https://codereview.chromium.org/1996043002/diff/200001/media/base/media_content_type.h File media/base/media_content_type.h (right): https://codereview.chromium.org/1996043002/diff/200001/media/base/media_content_type.h#newcode30 media/base/media_content_type.h:30: // Utility function for deciding ...
4 years, 3 months ago (2016-08-25 19:25:32 UTC) #34
Zhiqiang Zhang (Slow)
https://codereview.chromium.org/1996043002/diff/200001/media/base/media_content_type.h File media/base/media_content_type.h (right): https://codereview.chromium.org/1996043002/diff/200001/media/base/media_content_type.h#newcode23 media/base/media_content_type.h:23: // player instead of pausing it. On 2016/08/23 13:19:04, ...
4 years, 3 months ago (2016-08-26 10:26:20 UTC) #35
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/1996043002/220001
4 years, 3 months ago (2016-08-26 10:26:38 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/281863)
4 years, 3 months ago (2016-08-26 13:44:10 UTC) #40
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/1996043002/220001
4 years, 3 months ago (2016-08-26 13:48:06 UTC) #42
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/281936)
4 years, 3 months ago (2016-08-26 16:59:03 UTC) #44
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/1996043002/220001
4 years, 3 months ago (2016-08-26 17:03:41 UTC) #46
commit-bot: I haz the power
Committed patchset #10 (id:220001)
4 years, 3 months ago (2016-08-26 20:34:50 UTC) #48
commit-bot: I haz the power
4 years, 3 months ago (2016-08-26 20:36:24 UTC) #50
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/5d8eab739eb23c4fd27ba6a18b0e1afc15182321
Cr-Commit-Position: refs/heads/master@{#414800}

Powered by Google App Engine
This is Rietveld 408576698