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

Side by Side Diff: Source/web/WebMediaPlayerClientImpl.h

Issue 950813005: Change initDataType and sessionType to be enums (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: android compile issues Created 5 years, 10 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 16 matching lines...) Expand all
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef WebMediaPlayerClientImpl_h 31 #ifndef WebMediaPlayerClientImpl_h
32 #define WebMediaPlayerClientImpl_h 32 #define WebMediaPlayerClientImpl_h
33 33
34 #include "platform/audio/AudioSourceProvider.h" 34 #include "platform/audio/AudioSourceProvider.h"
35 #include "platform/graphics/media/MediaPlayer.h" 35 #include "platform/graphics/media/MediaPlayer.h"
36 #include "public/platform/WebAudioSourceProviderClient.h" 36 #include "public/platform/WebAudioSourceProviderClient.h"
37 #include "public/platform/WebEncryptedMediaTypes.h"
37 #include "public/platform/WebMediaPlayerClient.h" 38 #include "public/platform/WebMediaPlayerClient.h"
38 #include "platform/weborigin/KURL.h" 39 #include "platform/weborigin/KURL.h"
39 #include "wtf/OwnPtr.h" 40 #include "wtf/OwnPtr.h"
40 #include "wtf/PassOwnPtr.h" 41 #include "wtf/PassOwnPtr.h"
41 #include "wtf/ThreadingPrimitives.h" 42 #include "wtf/ThreadingPrimitives.h"
42 43
43 namespace blink { 44 namespace blink {
44 45
45 class AudioSourceProviderClient; 46 class AudioSourceProviderClient;
46 class HTMLMediaElement; 47 class HTMLMediaElement;
(...skipping 15 matching lines...) Expand all
62 virtual void timeChanged() override; 63 virtual void timeChanged() override;
63 virtual void repaint() override; 64 virtual void repaint() override;
64 virtual void durationChanged() override; 65 virtual void durationChanged() override;
65 virtual void sizeChanged() override; 66 virtual void sizeChanged() override;
66 virtual void playbackStateChanged() override; 67 virtual void playbackStateChanged() override;
67 68
68 // WebEncryptedMediaPlayerClient methods: 69 // WebEncryptedMediaPlayerClient methods:
69 virtual void keyAdded(const WebString& keySystem, const WebString& sessionId ) override; 70 virtual void keyAdded(const WebString& keySystem, const WebString& sessionId ) override;
70 virtual void keyError(const WebString& keySystem, const WebString& sessionId , MediaKeyErrorCode, unsigned short systemCode) override; 71 virtual void keyError(const WebString& keySystem, const WebString& sessionId , MediaKeyErrorCode, unsigned short systemCode) override;
71 virtual void keyMessage(const WebString& keySystem, const WebString& session Id, const unsigned char* message, unsigned messageLength, const WebURL& defaultU RL) override; 72 virtual void keyMessage(const WebString& keySystem, const WebString& session Id, const unsigned char* message, unsigned messageLength, const WebURL& defaultU RL) override;
73 virtual void encrypted(WebEncryptedMediaInitDataType, const unsigned char* i nitData, unsigned initDataLength) override;
74 // FIXME: Remove this once Chromium updated to use enum type.
72 virtual void encrypted(const WebString& initDataType, const unsigned char* i nitData, unsigned initDataLength) override; 75 virtual void encrypted(const WebString& initDataType, const unsigned char* i nitData, unsigned initDataLength) override;
73 virtual void didBlockPlaybackWaitingForKey() override; 76 virtual void didBlockPlaybackWaitingForKey() override;
74 virtual void didResumePlaybackBlockedForKey() override; 77 virtual void didResumePlaybackBlockedForKey() override;
75 78
76 virtual void setWebLayer(WebLayer*) override; 79 virtual void setWebLayer(WebLayer*) override;
77 virtual WebMediaPlayer::TrackId addAudioTrack(const WebString& id, AudioTrac kKind, const WebString& label, const WebString& language, bool enabled) override ; 80 virtual WebMediaPlayer::TrackId addAudioTrack(const WebString& id, AudioTrac kKind, const WebString& label, const WebString& language, bool enabled) override ;
78 virtual void removeAudioTrack(WebMediaPlayer::TrackId) override; 81 virtual void removeAudioTrack(WebMediaPlayer::TrackId) override;
79 virtual WebMediaPlayer::TrackId addVideoTrack(const WebString& id, VideoTrac kKind, const WebString& label, const WebString& language, bool selected) overrid e; 82 virtual WebMediaPlayer::TrackId addVideoTrack(const WebString& id, VideoTrac kKind, const WebString& label, const WebString& language, bool selected) overrid e;
80 virtual void removeVideoTrack(WebMediaPlayer::TrackId) override; 83 virtual void removeVideoTrack(WebMediaPlayer::TrackId) override;
81 virtual void addTextTrack(WebInbandTextTrack*) override; 84 virtual void addTextTrack(WebInbandTextTrack*) override;
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 Mutex provideInputLock; 154 Mutex provideInputLock;
152 }; 155 };
153 156
154 AudioSourceProviderImpl m_audioSourceProvider; 157 AudioSourceProviderImpl m_audioSourceProvider;
155 #endif 158 #endif
156 }; 159 };
157 160
158 } // namespace blink 161 } // namespace blink
159 162
160 #endif 163 #endif
OLDNEW
« no previous file with comments | « Source/platform/exported/WebContentDecryptionModuleSession.cpp ('k') | Source/web/WebMediaPlayerClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698