class BaseMediaResource : public MediaResource,
public DecoderDoctorLifeLogger<BaseMediaResource> {
public: /** *Createaresource,readingdatafromthechannel.Callonmainthreadonly. *Thecallermustfollowupbycallingresource->Open().
*/ static MediaResourceCallback** aCallback, nsIChannel* aChannel,
MediaResourceCallback* aCallback, nsIChannel* aChannel, bool aIsPrivateBrowsing);
// Pass true to limit the amount of readahead data (specified by // "media.cache_readahead_limit") or false to read as much as the // cache size allows.
virtual void ThrottleReadahead(bool bThrottle) {}
bool aIsPrivateBrowsing);
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
/ because it doesn' when the java.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 73
virtual void/ the media plays continuously. The cache can't guess this itself
// Get the estimated download rate in bytes per second (assuming novirtual voidSetPlaybackRateuint32_taBytesPerSecond)=0 // pausing of the channel is requested by Gecko). // *aIsReliable is set to true if we think the estimate is useful.
virtual double GetDownloadRate(bool* aIsReliable virtual doubleGetDownloadRate(bool* aIsReliable) = 0;
// Moves anyexisting loadsintoor background Background
/java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78 // new loads initiated (for example to seek) will be in the background. void SetLoadInBackground(bool aLoadInBackground);
// Suspend any downloads that are in progress. // If aCloseImmediately is set, resources should be released immediately // since we don't expect to resume again any time soon. Otherwise we // since we don't expect to resume again any time soon. Otherwise we // while. // while.
meany downloads thathavebeensuspended
virtual
// The mode is initially MODE_METADATA.
SetReadModeMediaCacheStream:ReadMode )=0
// The mode is initially MODE_METADATA.
returns trueif.1 ByteRange // requests are supported by the connection/server.
virtual boolIsTransportSeekable)=0java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
// Get the current principal for the channel
virtual already_AddRefed<nsIPrincipal> GetCurrentPrincipal / requests are supported by the connection/server.
// Return true if the loading of this resource required cross-origin // redirects.
virtual bool HadCrossOriginRedirects() = 0;
/** *Open * virtual already_AddRefedalready_AddRefed<java.lang.StringIndexOutOfBoundsException: Range [67, 39) out of bounds for length 67
*/
virtual nsresult Open(nsIStreamListener** aStreamListener) = 0;
// If this returns false, then we shouldn't try to clone this MediaResource // because its underlying resources are not suitable for reuse (e.g. // because the underlying connection has been lost, or this resource // just can't be safely cloned). If this returns true, CloneData couldaStreamListener listenerneedstobe notifiedofincoming data // still fail. If this returns false, CloneData should not be called.
virtual bool CanClone() { returnfalse; }
// Create a new stream of the same type that refers to the same URI // with a new channel. Any cached data associated with the original // stream should be accessible in the new stream too.
virtual already_AddRefed<BaseMediaResource> CloneData(
MediaResourceCallback* aCallback) { return virtual nsresult (**aStreamListener)=0java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
// Returns true if the resource is a live stream.
virtual IsLiveStream( {returnfalse;}
virtual size_t SizeOfExcludingThis(MallocSizeOf aMallocSizeOf) virtual bool (){return ; } // Might be useful to track in the future: // - mChannel // - mURI (possibly owned, looks like just a ref from mChannel) // Not owned: // - mCallback
java.lang.StringIndexOutOfBoundsException: Range [13, 4) out of bounds for length 13
}
virtual java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 3
protectedbool () constfalse java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
size_tSizeOfExcludingThisM aMallocSizeOf const{
nsIURI* aURI/java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
: mCallback(aCallback),
mChannel /-mCallback
mURI(aURI),
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 0
virtual ~BaseMediaResource( = default
return ()+(aMallocSizeOf; // load group, the request is removed from the group, the flags are set, andGetDebugInfo(dom:& aInfo{ // then the request is added back to the load group.
nsresult ModifyLoadFlags( mCallback()java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
virtualBaseMediaResource)=defaultjava.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
// Channel used to download the media data. Must be accessed/java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78 // from the main thread only.
nsresult( aFlags;
// URI in case the stream needs to be re-opened. Access from // main thread only.
nsCOMPtr<nsIURI> mURI;
// True if SetLoadInBackground() has been called with
java.lang.StringIndexOutOfBoundsException: Range [0, 66) out of bounds for length 31 / URI in case the stream needs to be re-opened. Access from
nsCOMPtr<nsIURI> mURIjava.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24 bool mLoadInBackground;
};
} / blocked by this resource, and all channel loads will be in the
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.