| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_RENDERER_MEDIA_WEBMEDIAPLAYER_DELEGATE_H_ | 5 #ifndef MEDIA_BLINK_WEBMEDIAPLAYER_DELEGATE_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_DELEGATE_H_ | 6 #define MEDIA_BLINK_WEBMEDIAPLAYER_DELEGATE_H_ |
| 7 | 7 |
| 8 namespace blink { | 8 namespace blink { |
| 9 class WebMediaPlayer; | 9 class WebMediaPlayer; |
| 10 } | 10 } |
| 11 namespace content { | 11 namespace media { |
| 12 | 12 |
| 13 // An interface to allow a WebMediaPlayerImpl to communicate changes of state | 13 // An interface to allow a WebMediaPlayerImpl to communicate changes of state |
| 14 // to objects that need to know. | 14 // to objects that need to know. |
| 15 class WebMediaPlayerDelegate { | 15 class WebMediaPlayerDelegate { |
| 16 public: | 16 public: |
| 17 WebMediaPlayerDelegate() {} | 17 WebMediaPlayerDelegate() {} |
| 18 | 18 |
| 19 // The specified player started playing media. | 19 // The specified player started playing media. |
| 20 virtual void DidPlay(blink::WebMediaPlayer* player) = 0; | 20 virtual void DidPlay(blink::WebMediaPlayer* player) = 0; |
| 21 | 21 |
| 22 // The specified player stopped playing media. | 22 // The specified player stopped playing media. |
| 23 virtual void DidPause(blink::WebMediaPlayer* player) = 0; | 23 virtual void DidPause(blink::WebMediaPlayer* player) = 0; |
| 24 | 24 |
| 25 // The specified player was destroyed. Do not call any methods on it. | 25 // The specified player was destroyed. Do not call any methods on it. |
| 26 virtual void PlayerGone(blink::WebMediaPlayer* player) = 0; | 26 virtual void PlayerGone(blink::WebMediaPlayer* player) = 0; |
| 27 | 27 |
| 28 protected: | 28 protected: |
| 29 virtual ~WebMediaPlayerDelegate() {} | 29 virtual ~WebMediaPlayerDelegate() {} |
| 30 }; | 30 }; |
| 31 | 31 |
| 32 } // namespace content | 32 } // namespace media |
| 33 | 33 |
| 34 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_DELEGATE_H_ | 34 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_DELEGATE_H_ |
| OLD | NEW |