Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(731)

Side by Side Diff: webkit/renderer/media/webmediaplayer_delegate.h

Issue 18123002: Migrate webkit/renderer/media/ to content/renderer/media/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: delegates Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef WEBKIT_RENDERER_MEDIA_WEBMEDIAPLAYER_DELEGATE_H_
6 #define WEBKIT_RENDERER_MEDIA_WEBMEDIAPLAYER_DELEGATE_H_
7
8 namespace WebKit {
9 class WebMediaPlayer;
10 }
11 namespace webkit_media {
12
13 // An interface to allow a WebMediaPlayerImpl to communicate changes of state
14 // to objects that need to know.
15 class WebMediaPlayerDelegate {
16 public:
17 WebMediaPlayerDelegate() {}
18
19 // The specified player started playing media.
20 virtual void DidPlay(WebKit::WebMediaPlayer* player) {}
21
22 // The specified player stopped playing media.
23 virtual void DidPause(WebKit::WebMediaPlayer* player) {}
24
25 // The specified player was destroyed. Do not call any methods on it.
26 virtual void PlayerGone(WebKit::WebMediaPlayer* player) {}
27
28 protected:
29 virtual ~WebMediaPlayerDelegate() {}
30 };
31
32 } // namespace webkit_media
33
34 #endif // WEBKIT_RENDERER_MEDIA_WEBMEDIAPLAYER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698