|
Lines 279-288
class MediaPlayer {
a/Source/WebCore/platform/graphics/MediaPlayer.h_sec1
|
| 279 |
WTF_MAKE_NONCOPYABLE(MediaPlayer); WTF_MAKE_FAST_ALLOCATED; |
279 |
WTF_MAKE_NONCOPYABLE(MediaPlayer); WTF_MAKE_FAST_ALLOCATED; |
| 280 |
public: |
280 |
public: |
| 281 |
|
281 |
|
| 282 |
static PassOwnPtr<MediaPlayer> create(MediaPlayerClient& client) |
282 |
static std::unique_ptr<MediaPlayer> create(MediaPlayerClient& client) |
| 283 |
{ |
283 |
{ |
| 284 |
return adoptPtr(new MediaPlayer(client)); |
284 |
return std::make_unique<MediaPlayer>(client); |
| 285 |
} |
285 |
} |
|
|
286 |
|
| 287 |
explicit MediaPlayer(MediaPlayerClient&); |
| 286 |
virtual ~MediaPlayer(); |
288 |
virtual ~MediaPlayer(); |
| 287 |
|
289 |
|
| 288 |
// Media engine support. |
290 |
// Media engine support. |
|
Lines 577-583
public:
a/Source/WebCore/platform/graphics/MediaPlayer.h_sec2
|
| 577 |
String sourceApplicationIdentifier() const; |
579 |
String sourceApplicationIdentifier() const; |
| 578 |
|
580 |
|
| 579 |
private: |
581 |
private: |
| 580 |
MediaPlayer(MediaPlayerClient&); |
|
|
| 581 |
MediaPlayerFactory* nextBestMediaEngine(MediaPlayerFactory*) const; |
582 |
MediaPlayerFactory* nextBestMediaEngine(MediaPlayerFactory*) const; |
| 582 |
void loadWithNextMediaEngine(MediaPlayerFactory*); |
583 |
void loadWithNextMediaEngine(MediaPlayerFactory*); |
| 583 |
void reloadTimerFired(Timer<MediaPlayer>&); |
584 |
void reloadTimerFired(Timer<MediaPlayer>&); |
|
Lines 586-592
private:
a/Source/WebCore/platform/graphics/MediaPlayer.h_sec3
|
| 586 |
|
587 |
|
| 587 |
MediaPlayerClient& m_client; |
588 |
MediaPlayerClient& m_client; |
| 588 |
Timer<MediaPlayer> m_reloadTimer; |
589 |
Timer<MediaPlayer> m_reloadTimer; |
| 589 |
OwnPtr<MediaPlayerPrivateInterface> m_private; |
590 |
std::unique_ptr<MediaPlayerPrivateInterface> m_private; |
| 590 |
MediaPlayerFactory* m_currentMediaEngine; |
591 |
MediaPlayerFactory* m_currentMediaEngine; |
| 591 |
URL m_url; |
592 |
URL m_url; |
| 592 |
String m_contentMIMEType; |
593 |
String m_contentMIMEType; |
|
Lines 608-614
private:
a/Source/WebCore/platform/graphics/MediaPlayer.h_sec4
|
| 608 |
#endif |
609 |
#endif |
| 609 |
}; |
610 |
}; |
| 610 |
|
611 |
|
| 611 |
typedef PassOwnPtr<MediaPlayerPrivateInterface> (*CreateMediaEnginePlayer)(MediaPlayer*); |
612 |
typedef std::unique_ptr<MediaPlayerPrivateInterface> (*CreateMediaEnginePlayer)(MediaPlayer*); |
| 612 |
typedef void (*MediaEngineSupportedTypes)(HashSet<String>& types); |
613 |
typedef void (*MediaEngineSupportedTypes)(HashSet<String>& types); |
| 613 |
typedef MediaPlayer::SupportsType (*MediaEngineSupportsType)(const MediaEngineSupportParameters& parameters); |
614 |
typedef MediaPlayer::SupportsType (*MediaEngineSupportsType)(const MediaEngineSupportParameters& parameters); |
| 614 |
typedef void (*MediaEngineGetSitesInMediaCache)(Vector<String>&); |
615 |
typedef void (*MediaEngineGetSitesInMediaCache)(Vector<String>&); |