Chromium Code Reviews| Index: content/public/browser/media_session.h |
| diff --git a/content/public/browser/media_session.h b/content/public/browser/media_session.h |
| index 509629f894ad72b8111d6e5a418046463e6d8c5b..a38d8833fa7a53e8d05c7d3090d214a4a565bab9 100644 |
| --- a/content/public/browser/media_session.h |
| +++ b/content/public/browser/media_session.h |
| @@ -16,6 +16,7 @@ enum class MediaSessionAction; |
| namespace content { |
| +class MediaSessionObserver; |
| class WebContents; |
| // MediaSession manages the media session and audio focus for a given |
| @@ -64,7 +65,13 @@ class MediaSession { |
| virtual void StopDucking() = 0; |
| protected: |
| + virtual void AddObserver(MediaSessionObserver* observer) = 0; |
| + virtual void RemoveObserver(MediaSessionObserver* observer) = 0; |
| + |
| MediaSession() = default; |
| + |
| + private: |
| + friend class MediaSessionObserver; |
|
mlamouri (slow - plz ping)
2017/01/16 11:13:20
This is a bit confusing. Why does an interface nee
derekjchow1
2017/01/18 02:25:33
https://cs.chromium.org/chromium/src/content/publi
Zhiqiang Zhang (Slow)
2017/01/18 21:57:51
I think you can follow the pattern of TestWebConte
derekjchow1
2017/01/19 01:28:14
I disagree. Inheriting from MediaSessionImpl means
Zhiqiang Zhang (Slow)
2017/01/19 11:12:45
I see, TestWebContents is in content/test instead
|
| }; |
| } // namespace content |