Title: [185136] trunk/Source/WebCore
Revision
185136
Author
commit-qu...@webkit.org
Date
2015-06-02 17:45:00 -0700 (Tue, 02 Jun 2015)

Log Message

MediaSessions should keep track of their current state.
https://bugs.webkit.org/show_bug.cgi?id=145575

Patch by Matt Rajca <mra...@apple.com> on 2015-06-02
Reviewed by Alex Christensen.

* Modules/mediasession/MediaSession.h: Per the Media Session spec, the state can be 'Idle', 'Active', or
  'Interrupted'. Sessions are created in an 'Idle' state.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (185135 => 185136)


--- trunk/Source/WebCore/ChangeLog	2015-06-02 23:58:42 UTC (rev 185135)
+++ trunk/Source/WebCore/ChangeLog	2015-06-03 00:45:00 UTC (rev 185136)
@@ -1,3 +1,13 @@
+2015-06-02  Matt Rajca  <mra...@apple.com>
+
+        MediaSessions should keep track of their current state.
+        https://bugs.webkit.org/show_bug.cgi?id=145575
+
+        Reviewed by Alex Christensen.
+
+        * Modules/mediasession/MediaSession.h: Per the Media Session spec, the state can be 'Idle', 'Active', or
+          'Interrupted'. Sessions are created in an 'Idle' state.
+
 2015-06-02  Jon Lee  <jon...@apple.com>
 
         Build fix when building with internal SDKs

Modified: trunk/Source/WebCore/Modules/mediasession/MediaSession.h (185135 => 185136)


--- trunk/Source/WebCore/Modules/mediasession/MediaSession.h	2015-06-02 23:58:42 UTC (rev 185135)
+++ trunk/Source/WebCore/Modules/mediasession/MediaSession.h	2015-06-03 00:45:00 UTC (rev 185136)
@@ -48,6 +48,14 @@
     void releaseSession();
 
 private:
+    enum class State {
+        Idle,
+        Active,
+        Interrupted
+    };
+
+    State m_currentState { State::Idle };
+
     const String m_kind;
     RefPtr<MediaRemoteControls> m_controls;
 };
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to