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

Side by Side Diff: trunk/Source/platform/graphics/media/MediaPlayer.h

Issue 177213015: Revert 167826 "Rename text track methods to make way for audio &..." (Closed) Base URL: svn://svn.chromium.org/blink/
Patch Set: Created 6 years, 9 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
1 /* 1 /*
2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 virtual void mediaPlayerKeyAdded(const String& /* keySystem */, const String & /* sessionId */) = 0; 96 virtual void mediaPlayerKeyAdded(const String& /* keySystem */, const String & /* sessionId */) = 0;
97 virtual void mediaPlayerKeyError(const String& /* keySystem */, const String & /* sessionId */, MediaKeyErrorCode, unsigned short /* systemCode */) = 0; 97 virtual void mediaPlayerKeyError(const String& /* keySystem */, const String & /* sessionId */, MediaKeyErrorCode, unsigned short /* systemCode */) = 0;
98 virtual void mediaPlayerKeyMessage(const String& /* keySystem */, const Stri ng& /* sessionId */, const unsigned char* /* message */, unsigned /* messageLeng th */, const KURL& /* defaultURL */) = 0; 98 virtual void mediaPlayerKeyMessage(const String& /* keySystem */, const Stri ng& /* sessionId */, const unsigned char* /* message */, unsigned /* messageLeng th */, const KURL& /* defaultURL */) = 0;
99 virtual bool mediaPlayerKeyNeeded(const String& /* contentType */, const uns igned char* /* initData */, unsigned /* initDataLength */) = 0; 99 virtual bool mediaPlayerKeyNeeded(const String& /* contentType */, const uns igned char* /* initData */, unsigned /* initDataLength */) = 0;
100 100
101 virtual CORSMode mediaPlayerCORSMode() const = 0; 101 virtual CORSMode mediaPlayerCORSMode() const = 0;
102 102
103 virtual void mediaPlayerSetWebLayer(blink::WebLayer*) = 0; 103 virtual void mediaPlayerSetWebLayer(blink::WebLayer*) = 0;
104 virtual void mediaPlayerSetOpaque(bool) = 0; 104 virtual void mediaPlayerSetOpaque(bool) = 0;
105 105
106 virtual void mediaPlayerDidAddTextTrack(blink::WebInbandTextTrack*) = 0; 106 virtual void mediaPlayerDidAddTrack(blink::WebInbandTextTrack*) = 0;
107 virtual void mediaPlayerDidRemoveTextTrack(blink::WebInbandTextTrack*) = 0; 107 virtual void mediaPlayerDidRemoveTrack(blink::WebInbandTextTrack*) = 0;
108 108
109 virtual void mediaPlayerMediaSourceOpened(blink::WebMediaSource*) = 0; 109 virtual void mediaPlayerMediaSourceOpened(blink::WebMediaSource*) = 0;
110 }; 110 };
111 111
112 typedef PassOwnPtr<MediaPlayer> (*CreateMediaEnginePlayer)(MediaPlayerClient*); 112 typedef PassOwnPtr<MediaPlayer> (*CreateMediaEnginePlayer)(MediaPlayerClient*);
113 113
114 class PLATFORM_EXPORT MediaPlayer { 114 class PLATFORM_EXPORT MediaPlayer {
115 WTF_MAKE_NONCOPYABLE(MediaPlayer); 115 WTF_MAKE_NONCOPYABLE(MediaPlayer);
116 public: 116 public:
117 static PassOwnPtr<MediaPlayer> create(MediaPlayerClient*); 117 static PassOwnPtr<MediaPlayer> create(MediaPlayerClient*);
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 enum MediaKeyException { NoError, InvalidPlayerState, KeySystemNotSupported, InvalidAccess }; 195 enum MediaKeyException { NoError, InvalidPlayerState, KeySystemNotSupported, InvalidAccess };
196 virtual MediaKeyException addKey(const String&, const unsigned char*, unsign ed, const unsigned char*, unsigned, const String&) = 0; 196 virtual MediaKeyException addKey(const String&, const unsigned char*, unsign ed, const unsigned char*, unsigned, const String&) = 0;
197 virtual MediaKeyException generateKeyRequest(const String&, const unsigned c har*, unsigned) = 0; 197 virtual MediaKeyException generateKeyRequest(const String&, const unsigned c har*, unsigned) = 0;
198 virtual MediaKeyException cancelKeyRequest(const String&, const String&) = 0 ; 198 virtual MediaKeyException cancelKeyRequest(const String&, const String&) = 0 ;
199 virtual void setContentDecryptionModule(blink::WebContentDecryptionModule*) = 0; 199 virtual void setContentDecryptionModule(blink::WebContentDecryptionModule*) = 0;
200 }; 200 };
201 201
202 } 202 }
203 203
204 #endif // MediaPlayer_h 204 #endif // MediaPlayer_h
OLDNEW
« no previous file with comments | « trunk/Source/core/html/track/TextTrackList.cpp ('k') | trunk/Source/web/WebMediaPlayerClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698