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

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

Issue 10416004: RefCounted types should not have public destructors, webkit/ edition (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to r140259 Created 8 years, 6 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
« no previous file with comments | « webkit/glue/websocketstreamhandle_delegate.h ('k') | webkit/plugins/npapi/webplugin.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 WEBKIT_MEDIA_WEBMEDIAPLAYER_DELEGATE_H_ 5 #ifndef WEBKIT_MEDIA_WEBMEDIAPLAYER_DELEGATE_H_
6 #define WEBKIT_MEDIA_WEBMEDIAPLAYER_DELEGATE_H_ 6 #define WEBKIT_MEDIA_WEBMEDIAPLAYER_DELEGATE_H_
7 7
8 namespace WebKit { 8 namespace WebKit {
9 class WebMediaPlayer; 9 class WebMediaPlayer;
10 } 10 }
11 namespace webkit_media { 11 namespace webkit_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 virtual ~WebMediaPlayerDelegate() {}
19 18
20 // The specified player started playing media. 19 // The specified player started playing media.
21 virtual void DidPlay(WebKit::WebMediaPlayer* player) {} 20 virtual void DidPlay(WebKit::WebMediaPlayer* player) {}
22 21
23 // The specified player stopped playing media. 22 // The specified player stopped playing media.
24 virtual void DidPause(WebKit::WebMediaPlayer* player) {} 23 virtual void DidPause(WebKit::WebMediaPlayer* player) {}
25 24
26 // 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.
27 virtual void PlayerGone(WebKit::WebMediaPlayer* player) {} 26 virtual void PlayerGone(WebKit::WebMediaPlayer* player) {}
27
28 protected:
29 virtual ~WebMediaPlayerDelegate() {}
28 }; 30 };
29 31
30 } // namespace webkit_media 32 } // namespace webkit_media
31 33
32 #endif // WEBKIT_MEDIA_WEBMEDIAPLAYER_DELEGATE_H_ 34 #endif // WEBKIT_MEDIA_WEBMEDIAPLAYER_DELEGATE_H_
OLDNEW
« no previous file with comments | « webkit/glue/websocketstreamhandle_delegate.h ('k') | webkit/plugins/npapi/webplugin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698