mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
edf785a07c
This provides that mNetworkState is available for determining whether progress notification from the resource/MediaCache after stalled should resume progress events. The timer will be stopped while stalled in a subsequent patch, and should not be restarted unless NETWORK_LOADING. --HG-- extra : rebase_source : e335555de404f6a899762be3c05b8f5444c357e3
52 lines
1.6 KiB
C++
52 lines
1.6 KiB
C++
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#ifndef MOCK_MEDIA_DECODER_OWNER_H_
|
|
#define MOCK_MEDIA_DECODER_OWNER_H_
|
|
|
|
#include "MediaDecoderOwner.h"
|
|
|
|
namespace mozilla
|
|
{
|
|
|
|
class MockMediaDecoderOwner : public MediaDecoderOwner
|
|
{
|
|
public:
|
|
virtual nsresult DispatchEvent(const nsAString& aName) MOZ_OVERRIDE
|
|
{
|
|
return NS_OK;
|
|
}
|
|
virtual nsresult DispatchAsyncEvent(const nsAString& aName) MOZ_OVERRIDE
|
|
{
|
|
return NS_OK;
|
|
}
|
|
virtual void FireTimeUpdate(bool aPeriodic) MOZ_OVERRIDE {}
|
|
virtual bool GetPaused() MOZ_OVERRIDE { return false; }
|
|
virtual void MetadataLoaded(const MediaInfo* aInfo,
|
|
nsAutoPtr<const MetadataTags> aTags) MOZ_OVERRIDE
|
|
{
|
|
}
|
|
virtual void NetworkError() MOZ_OVERRIDE {}
|
|
virtual void DecodeError() MOZ_OVERRIDE {}
|
|
virtual void LoadAborted() MOZ_OVERRIDE {}
|
|
virtual void PlaybackEnded() MOZ_OVERRIDE {}
|
|
virtual void SeekStarted() MOZ_OVERRIDE {}
|
|
virtual void SeekCompleted() MOZ_OVERRIDE {}
|
|
virtual void DownloadSuspended() MOZ_OVERRIDE {}
|
|
virtual void DownloadResumed(bool aForceNetworkLoading) MOZ_OVERRIDE {}
|
|
virtual void NotifySuspendedByCache(bool aIsSuspended) MOZ_OVERRIDE {}
|
|
virtual void NotifyDecoderPrincipalChanged() MOZ_OVERRIDE {}
|
|
virtual void UpdateReadyStateForData(NextFrameStatus aNextFrame) MOZ_OVERRIDE
|
|
{
|
|
}
|
|
virtual VideoFrameContainer* GetVideoFrameContainer() MOZ_OVERRIDE
|
|
{
|
|
return nullptr;
|
|
}
|
|
virtual void ResetConnectionState() MOZ_OVERRIDE {}
|
|
};
|
|
}
|
|
|
|
#endif
|