| OLD | NEW |
| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 virtual void requestSeek(double) OVERRIDE; | 84 virtual void requestSeek(double) OVERRIDE; |
| 85 virtual void remoteRouteAvailabilityChanged(bool) OVERRIDE; | 85 virtual void remoteRouteAvailabilityChanged(bool) OVERRIDE; |
| 86 virtual void connectedToRemoteDevice() OVERRIDE; | 86 virtual void connectedToRemoteDevice() OVERRIDE; |
| 87 virtual void disconnectedFromRemoteDevice() OVERRIDE; | 87 virtual void disconnectedFromRemoteDevice() OVERRIDE; |
| 88 | 88 |
| 89 // MediaPlayer methods: | 89 // MediaPlayer methods: |
| 90 virtual WebMediaPlayer* webMediaPlayer() const OVERRIDE; | 90 virtual WebMediaPlayer* webMediaPlayer() const OVERRIDE; |
| 91 virtual void load(WebMediaPlayer::LoadType, const WTF::String& url, WebMedia
Player::CORSMode) OVERRIDE; | 91 virtual void load(WebMediaPlayer::LoadType, const WTF::String& url, WebMedia
Player::CORSMode) OVERRIDE; |
| 92 virtual void setPreload(MediaPlayer::Preload) OVERRIDE; | 92 virtual void setPreload(MediaPlayer::Preload) OVERRIDE; |
| 93 | 93 |
| 94 #if ENABLE(WEB_AUDIO) | |
| 95 virtual AudioSourceProvider* audioSourceProvider() OVERRIDE; | 94 virtual AudioSourceProvider* audioSourceProvider() OVERRIDE; |
| 96 #endif | |
| 97 | 95 |
| 98 private: | 96 private: |
| 99 explicit WebMediaPlayerClientImpl(MediaPlayerClient*); | 97 explicit WebMediaPlayerClientImpl(MediaPlayerClient*); |
| 100 | 98 |
| 101 HTMLMediaElement& mediaElement() const; | 99 HTMLMediaElement& mediaElement() const; |
| 102 | 100 |
| 103 MediaPlayerClient* m_client; | 101 MediaPlayerClient* m_client; |
| 104 OwnPtr<WebMediaPlayer> m_webMediaPlayer; | 102 OwnPtr<WebMediaPlayer> m_webMediaPlayer; |
| 105 | 103 |
| 106 #if ENABLE(WEB_AUDIO) | |
| 107 // AudioClientImpl wraps an AudioSourceProviderClient. | 104 // AudioClientImpl wraps an AudioSourceProviderClient. |
| 108 // When the audio format is known, Chromium calls setFormat() which then dis
patches into WebCore. | 105 // When the audio format is known, Chromium calls setFormat() which then dis
patches into WebCore. |
| 109 | 106 |
| 110 class AudioClientImpl FINAL : public GarbageCollectedFinalized<AudioClientIm
pl>, public WebAudioSourceProviderClient { | 107 class AudioClientImpl FINAL : public GarbageCollectedFinalized<AudioClientIm
pl>, public WebAudioSourceProviderClient { |
| 111 public: | 108 public: |
| 112 explicit AudioClientImpl(AudioSourceProviderClient* client) | 109 explicit AudioClientImpl(AudioSourceProviderClient* client) |
| 113 : m_client(client) | 110 : m_client(client) |
| 114 { | 111 { |
| 115 } | 112 } |
| 116 | 113 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 WebAudioSourceProvider* m_webAudioSourceProvider; | 145 WebAudioSourceProvider* m_webAudioSourceProvider; |
| 149 Persistent<AudioClientImpl> m_client; | 146 Persistent<AudioClientImpl> m_client; |
| 150 Mutex provideInputLock; | 147 Mutex provideInputLock; |
| 151 }; | 148 }; |
| 152 | 149 |
| 153 AudioSourceProviderImpl m_audioSourceProvider; | 150 AudioSourceProviderImpl m_audioSourceProvider; |
| 154 #endif | 151 #endif |
| 155 }; | 152 }; |
| 156 | 153 |
| 157 } // namespace blink | 154 } // namespace blink |
| 158 | |
| 159 #endif | |
| OLD | NEW |