| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_BROWSER_MEDIA_SESSION_MEDIA_SESSION_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_MEDIA_SESSION_MEDIA_SESSION_IMPL_H_ |
| 6 #define CONTENT_BROWSER_MEDIA_SESSION_MEDIA_SESSION_IMPL_H_ | 6 #define CONTENT_BROWSER_MEDIA_SESSION_MEDIA_SESSION_IMPL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 // Suspend the media session. | 125 // Suspend the media session. |
| 126 // |type| represents the origin of the request. | 126 // |type| represents the origin of the request. |
| 127 CONTENT_EXPORT void Suspend(MediaSession::SuspendType suspend_type) override; | 127 CONTENT_EXPORT void Suspend(MediaSession::SuspendType suspend_type) override; |
| 128 | 128 |
| 129 // Stop the media session. | 129 // Stop the media session. |
| 130 // |type| represents the origin of the request. | 130 // |type| represents the origin of the request. |
| 131 CONTENT_EXPORT void Stop(MediaSession::SuspendType suspend_type) override; | 131 CONTENT_EXPORT void Stop(MediaSession::SuspendType suspend_type) override; |
| 132 | 132 |
| 133 // Let the media session start ducking such that the volume multiplier is | 133 // Let the media session start ducking such that the volume multiplier is |
| 134 // reduced. | 134 // reduced. |
| 135 CONTENT_EXPORT void StartDucking(); | 135 CONTENT_EXPORT void StartDucking() override; |
| 136 | 136 |
| 137 // Let the media session stop ducking such that the volume multiplier is | 137 // Let the media session stop ducking such that the volume multiplier is |
| 138 // recovered. | 138 // recovered. |
| 139 CONTENT_EXPORT void StopDucking(); | 139 CONTENT_EXPORT void StopDucking() override; |
| 140 | 140 |
| 141 // Returns if the session can be controlled by Resume() and Suspend calls | 141 // Returns if the session can be controlled by Resume() and Suspend calls |
| 142 // above. | 142 // above. |
| 143 CONTENT_EXPORT bool IsControllable() const; | 143 CONTENT_EXPORT bool IsControllable() const; |
| 144 | 144 |
| 145 // Returns if the session is currently active. | 145 // Returns if the session is currently active. |
| 146 CONTENT_EXPORT bool IsActive() const; | 146 CONTENT_EXPORT bool IsActive() const; |
| 147 | 147 |
| 148 // Returns if the session is currently suspended. | 148 // Returns if the session is currently suspended. |
| 149 // TODO(mlamouri): IsSuspended() below checks if the state is not ACTIVE | 149 // TODO(mlamouri): IsSuspended() below checks if the state is not ACTIVE |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 ServicesMap services_; | 307 ServicesMap services_; |
| 308 // The currently routed service (non-owned pointer). | 308 // The currently routed service (non-owned pointer). |
| 309 MediaSessionServiceImpl* routed_service_; | 309 MediaSessionServiceImpl* routed_service_; |
| 310 | 310 |
| 311 DISALLOW_COPY_AND_ASSIGN(MediaSessionImpl); | 311 DISALLOW_COPY_AND_ASSIGN(MediaSessionImpl); |
| 312 }; | 312 }; |
| 313 | 313 |
| 314 } // namespace content | 314 } // namespace content |
| 315 | 315 |
| 316 #endif // CONTENT_BROWSER_MEDIA_SESSION_MEDIA_SESSION_IMPL_H_ | 316 #endif // CONTENT_BROWSER_MEDIA_SESSION_MEDIA_SESSION_IMPL_H_ |
| OLD | NEW |