Bug 126087

Summary: AudioSessionManager should be MediaSessionManager
Product: WebKit Reporter: Eric Carlson <eric.carlson>
Component: MediaAssignee: Eric Carlson <eric.carlson>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, esprehn+autocc, glenn, gyuyoung.kim, jer.noble
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Proposed patch
none
Updated patch none

Description Eric Carlson 2013-12-20 15:04:38 PST
AudioSessionManager tracks Audio, Video, and WebAudio instances so it should be a MediaSessionManager instead. 

Some platforms may need to manage other aspects of media playback, eg. limiting the number instances that can play simultaneously, when a media is allowed to play, etc, it should be refactored so it is possible for the session manager to inform clients of state changes.
Comment 1 Eric Carlson 2013-12-20 18:38:55 PST
Created attachment 219825 [details]
Proposed patch
Comment 2 WebKit Commit Bot 2013-12-20 18:40:49 PST
Attachment 219825 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCore/WebCore.xcodeproj/project.pbxproj', u'Source/WebCore/html/HTMLMediaElement.cpp', u'Source/WebCore/html/HTMLMediaElement.h', u'Source/WebCore/platform/audio/AudioSessionListener.h', u'Source/WebCore/platform/audio/AudioSessionManager.cpp', u'Source/WebCore/platform/audio/AudioSessionManager.h', u'Source/WebCore/platform/audio/MediaSessionManager.cpp', u'Source/WebCore/platform/audio/MediaSessionManager.h', u'Source/WebCore/platform/audio/mac/AudioDestinationMac.cpp', u'Source/WebCore/platform/audio/mac/AudioDestinationMac.h', u'Source/WebCore/platform/audio/mac/AudioSessionManagerMac.cpp', u'Source/WebCore/platform/audio/mac/MediaSessionManagerMac.cpp', '--commit-queue']" exit_code: 1
ERROR: Source/WebCore/platform/audio/mac/AudioDestinationMac.cpp:37:  Alphabetical sorting problem.  [build/include_order] [4]
ERROR: Source/WebCore/platform/audio/MediaSessionManager.cpp:64:  This { should be at the end of the previous line  [whitespace/braces] [4]
ERROR: Source/WebCore/platform/audio/MediaSessionManager.cpp:78:  This { should be at the end of the previous line  [whitespace/braces] [4]
Total errors found: 3 in 10 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Eric Carlson 2013-12-20 18:52:09 PST
Created attachment 219827 [details]
Updated patch
Comment 4 Jer Noble 2013-12-23 09:51:08 PST
Comment on attachment 219827 [details]
Updated patch

r=me
Comment 5 WebKit Commit Bot 2013-12-23 10:20:41 PST
Comment on attachment 219827 [details]
Updated patch

Clearing flags on attachment: 219827

Committed r161000: <http://trac.webkit.org/changeset/161000>
Comment 6 WebKit Commit Bot 2013-12-23 10:20:43 PST
All reviewed patches have been landed.  Closing bug.