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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
169 | 169 |
170 // MediaSessionService-related methods | 170 // MediaSessionService-related methods |
171 | 171 |
172 // Called when a MediaSessionService is created, which registers itself to | 172 // Called when a MediaSessionService is created, which registers itself to |
173 // this session. | 173 // this session. |
174 void OnServiceCreated(MediaSessionServiceImpl* service); | 174 void OnServiceCreated(MediaSessionServiceImpl* service); |
175 // Called when a MediaSessionService is destroyed, which unregisters itself | 175 // Called when a MediaSessionService is destroyed, which unregisters itself |
176 // from this session. | 176 // from this session. |
177 void OnServiceDestroyed(MediaSessionServiceImpl* service); | 177 void OnServiceDestroyed(MediaSessionServiceImpl* service); |
178 | 178 |
179 // Called when the advertised playback state of a MediaSessionService has | |
mlamouri (slow - plz ping)
2016/12/16 15:49:13
s/advertised//
Zhiqiang Zhang (Slow)
2016/12/16 18:26:15
Done.
| |
180 // changed. Will notify observers of media session state change. | |
181 void OnMediaSessionAdvertisedPlaybackStateChanged( | |
mlamouri (slow - plz ping)
2016/12/16 15:49:14
ditto
Zhiqiang Zhang (Slow)
2016/12/16 18:26:15
Done.
| |
182 MediaSessionServiceImpl* service); | |
183 | |
179 // Called when the metadata of a MediaSessionService has changed. Will notify | 184 // Called when the metadata of a MediaSessionService has changed. Will notify |
180 // observers if the service is currently routed. | 185 // observers if the service is currently routed. |
181 void OnMediaSessionMetadataChanged(MediaSessionServiceImpl* service); | 186 void OnMediaSessionMetadataChanged(MediaSessionServiceImpl* service); |
182 // Called when the actions of a MediaSessionService has changed. Will notify | 187 // Called when the actions of a MediaSessionService has changed. Will notify |
183 // observers if the service is currently routed. | 188 // observers if the service is currently routed. |
184 void OnMediaSessionActionsChanged(MediaSessionServiceImpl* service); | 189 void OnMediaSessionActionsChanged(MediaSessionServiceImpl* service); |
185 | 190 |
186 // Called when a MediaSessionAction is received. The action will be forwarded | 191 // Called when a MediaSessionAction is received. The action will be forwarded |
187 // to blink::MediaSession corresponding to the current routed service. | 192 // to blink::MediaSession corresponding to the current routed service. |
188 void DidReceiveAction(blink::mojom::MediaSessionAction action) override; | 193 void DidReceiveAction(blink::mojom::MediaSessionAction action) override; |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
307 ServicesMap services_; | 312 ServicesMap services_; |
308 // The currently routed service (non-owned pointer). | 313 // The currently routed service (non-owned pointer). |
309 MediaSessionServiceImpl* routed_service_; | 314 MediaSessionServiceImpl* routed_service_; |
310 | 315 |
311 DISALLOW_COPY_AND_ASSIGN(MediaSessionImpl); | 316 DISALLOW_COPY_AND_ASSIGN(MediaSessionImpl); |
312 }; | 317 }; |
313 | 318 |
314 } // namespace content | 319 } // namespace content |
315 | 320 |
316 #endif // CONTENT_BROWSER_MEDIA_SESSION_MEDIA_SESSION_IMPL_H_ | 321 #endif // CONTENT_BROWSER_MEDIA_SESSION_MEDIA_SESSION_IMPL_H_ |
OLD | NEW |