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

Issue 2060933002: Let Flash join and be controlled by media session (Closed)

Created:
4 years, 6 months ago by Zhiqiang Zhang (Slow)
Modified:
4 years, 5 months ago
CC:
bbudge, chromium-reviews, darin-cc_chromium.org, feature-media-reviews_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@pepper_to_contents
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Let Flash join and be controlled by media session This CL lets Flash join and be controlled by media session. This feature is only valid when default media session (on desktop) is enabled. If Flash starts playing, it will join the media session, and suspend all existing media players. However if other player starts playing after this, Flash will always duck until all other media players are paused. BUG=619084 Committed: https://crrev.com/181047e6d762633e8ff503c96952ce5d8892ab41 Cr-Commit-Position: refs/heads/master@{#403447}

Patch Set 1 #

Patch Set 2 : added TODO #

Total comments: 26

Patch Set 3 : rebasing and fixing style issues #

Patch Set 4 : modified when to add/remove player to/from MediaSession #

Patch Set 5 : modified when to add/remove player to/from MediaSession #

Total comments: 16

Patch Set 6 : addressed Mounir's comments #

Total comments: 16

Patch Set 7 : addressed Jochen's comments #

Total comments: 12

Patch Set 8 : addressed dcheng and mlamouri's comments #

Total comments: 2

Patch Set 9 : addressed dcheng's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+302 lines, -15 lines) Patch
A content/browser/media/session/pepper_playback_observer.h View 1 2 3 4 5 6 7 8 1 chunk +46 lines, -0 lines 0 comments Download
A content/browser/media/session/pepper_playback_observer.cc View 1 2 3 4 5 6 7 8 1 chunk +64 lines, -0 lines 0 comments Download
A content/browser/media/session/pepper_player_delegate.h View 1 2 3 4 5 6 7 8 1 chunk +43 lines, -0 lines 0 comments Download
A content/browser/media/session/pepper_player_delegate.cc View 1 2 3 4 5 6 7 8 1 chunk +51 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 5 6 3 chunks +13 lines, -2 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 7 8 7 chunks +34 lines, -4 lines 0 comments Download
M content/common/frame_messages.h View 1 2 3 4 5 6 7 2 chunks +14 lines, -2 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 8 3 chunks +21 lines, -7 lines 0 comments Download
M media/base/media_switches.h View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
M media/base/media_switches.cc View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (12 generated)
Zhiqiang Zhang (Slow)
https://codereview.chromium.org/2060933002/diff/20001/content/browser/media/pepper/pepper_player_delegate.h File content/browser/media/pepper/pepper_player_delegate.h (right): https://codereview.chromium.org/2060933002/diff/20001/content/browser/media/pepper/pepper_player_delegate.h#newcode14 content/browser/media/pepper/pepper_player_delegate.h:14: class PepperPlayerDelegate : public MediaSessionObserver { Do you prefer ...
4 years, 6 months ago (2016-06-13 17:40:19 UTC) #2
mlamouri (slow - plz ping)
Sounds good but there are a lot of style issues. I will have another look ...
4 years, 6 months ago (2016-06-23 13:23:20 UTC) #4
mlamouri (slow - plz ping)
https://codereview.chromium.org/2060933002/diff/100001/content/browser/media/session/pepper/pepper_player_delegate.h File content/browser/media/session/pepper/pepper_player_delegate.h (right): https://codereview.chromium.org/2060933002/diff/100001/content/browser/media/session/pepper/pepper_player_delegate.h#newcode6 content/browser/media/session/pepper/pepper_player_delegate.h:6: #define CONTENT_BROWSER_MEDIA_SESSION_PEPPER_PEPPER_PLAYER_DELEGATE_H_ No need to create a pepper/ directory. ...
4 years, 6 months ago (2016-06-24 15:33:33 UTC) #5
Zhiqiang Zhang (Slow)
PTAL, addressed comments. Sorry the last patch was only for rebasing but I didn't labeled ...
4 years, 6 months ago (2016-06-24 17:43:21 UTC) #6
Zhiqiang Zhang (Slow)
+jochen to review content/
4 years, 6 months ago (2016-06-24 17:44:49 UTC) #8
Zhiqiang Zhang (Slow)
+dcheng@ to review frame_messages.h
4 years, 6 months ago (2016-06-24 18:00:20 UTC) #9
jochen (gone - plz use gerrit)
+raymes who might be a better reviewer, or can suggest a better reviewer
4 years, 5 months ago (2016-06-27 08:16:19 UTC) #11
Zhiqiang Zhang (Slow)
On 2016/06/27 08:16:19, jochen wrote: > +raymes who might be a better reviewer, or can ...
4 years, 5 months ago (2016-06-27 10:13:14 UTC) #12
jochen (gone - plz use gerrit)
https://codereview.chromium.org/2060933002/diff/120001/content/browser/media/session/pepper_player_delegate.h File content/browser/media/session/pepper_player_delegate.h (right): https://codereview.chromium.org/2060933002/diff/120001/content/browser/media/session/pepper_player_delegate.h#newcode22 content/browser/media/session/pepper_player_delegate.h:22: void OnSuspend(int player_id) override; add a comment like // ...
4 years, 5 months ago (2016-06-27 11:47:11 UTC) #13
Zhiqiang Zhang (Slow)
PTAL. Addressed jochen's comments w/replies. https://codereview.chromium.org/2060933002/diff/120001/content/browser/media/session/pepper_player_delegate.h File content/browser/media/session/pepper_player_delegate.h (right): https://codereview.chromium.org/2060933002/diff/120001/content/browser/media/session/pepper_player_delegate.h#newcode22 content/browser/media/session/pepper_player_delegate.h:22: void OnSuspend(int player_id) override; ...
4 years, 5 months ago (2016-06-28 18:53:25 UTC) #14
jochen (gone - plz use gerrit)
lgtm
4 years, 5 months ago (2016-06-29 15:17:33 UTC) #15
Zhiqiang Zhang (Slow)
+dcheng to review the IPC messages. +cc:bbudge, -raymes (since bbudge has reviewed the previous patch)
4 years, 5 months ago (2016-06-29 16:11:34 UTC) #17
dcheng
https://codereview.chromium.org/2060933002/diff/140001/content/browser/media/session/pepper_playback_observer.cc File content/browser/media/session/pepper_playback_observer.cc (right): https://codereview.chromium.org/2060933002/diff/140001/content/browser/media/session/pepper_playback_observer.cc#newcode44 content/browser/media/session/pepper_playback_observer.cc:44: players_map_.AddWithID(new PepperPlayerDelegate( Would an ordinary std::map work here? It ...
4 years, 5 months ago (2016-06-30 07:02:39 UTC) #18
mlamouri (slow - plz ping)
lgtm with dcheng@ comments applied. \o/ https://codereview.chromium.org/2060933002/diff/140001/content/browser/media/session/pepper_playback_observer.cc File content/browser/media/session/pepper_playback_observer.cc (right): https://codereview.chromium.org/2060933002/diff/140001/content/browser/media/session/pepper_playback_observer.cc#newcode26 content/browser/media/session/pepper_playback_observer.cc:26: PepperStopsPlayback(iter.GetCurrentKey()); style: can ...
4 years, 5 months ago (2016-06-30 11:01:18 UTC) #19
Zhiqiang Zhang (Slow)
PTAL, addressed dcheng and mlamouri's comments. +dalecurtis for reviewing media_switches https://codereview.chromium.org/2060933002/diff/140001/content/browser/media/session/pepper_playback_observer.cc File content/browser/media/session/pepper_playback_observer.cc (right): https://codereview.chromium.org/2060933002/diff/140001/content/browser/media/session/pepper_playback_observer.cc#newcode26 ...
4 years, 5 months ago (2016-06-30 12:46:55 UTC) #24
DaleCurtis
media/ lgtm, though I got excited and thought you had found some way to pause ...
4 years, 5 months ago (2016-06-30 18:00:54 UTC) #25
dcheng
mojom lgtm https://codereview.chromium.org/2060933002/diff/140001/content/browser/media/session/pepper_playback_observer.cc File content/browser/media/session/pepper_playback_observer.cc (right): https://codereview.chromium.org/2060933002/diff/140001/content/browser/media/session/pepper_playback_observer.cc#newcode44 content/browser/media/session/pepper_playback_observer.cc:44: players_map_.AddWithID(new PepperPlayerDelegate( On 2016/06/30 12:46:54, Zhiqiang Zhang ...
4 years, 5 months ago (2016-07-01 05:57:59 UTC) #26
Zhiqiang Zhang (Slow)
https://codereview.chromium.org/2060933002/diff/140001/content/browser/media/session/pepper_playback_observer.cc File content/browser/media/session/pepper_playback_observer.cc (right): https://codereview.chromium.org/2060933002/diff/140001/content/browser/media/session/pepper_playback_observer.cc#newcode44 content/browser/media/session/pepper_playback_observer.cc:44: players_map_.AddWithID(new PepperPlayerDelegate( On 2016/07/01 05:57:59, dcheng wrote: > On ...
4 years, 5 months ago (2016-07-01 11:01:07 UTC) #27
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/2060933002/240001
4 years, 5 months ago (2016-07-01 11:01:41 UTC) #30
commit-bot: I haz the power
Committed patchset #9 (id:240001)
4 years, 5 months ago (2016-07-01 13:37:38 UTC) #31
commit-bot: I haz the power
4 years, 5 months ago (2016-07-01 13:39:14 UTC) #33
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/181047e6d762633e8ff503c96952ce5d8892ab41
Cr-Commit-Position: refs/heads/master@{#403447}

Powered by Google App Engine
This is Rietveld 408576698