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

Unified Diff: Source/modules/mediasource/MediaSourceBase.cpp

Issue 72363002: Rename es => exceptionState in other than bindings/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Retry Created 7 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/modules/mediasource/MediaSource.cpp ('k') | Source/modules/mediasource/SourceBuffer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/mediasource/MediaSourceBase.cpp
diff --git a/Source/modules/mediasource/MediaSourceBase.cpp b/Source/modules/mediasource/MediaSourceBase.cpp
index c581e7270bf15cbb62c14445428d22ff8a6a9d8a..7cf08ec0a99c923b607decf331de716b5d33211b 100644
--- a/Source/modules/mediasource/MediaSourceBase.cpp
+++ b/Source/modules/mediasource/MediaSourceBase.cpp
@@ -148,14 +148,14 @@ PassRefPtr<TimeRanges> MediaSourceBase::buffered() const
return intersectionRanges.release();
}
-void MediaSourceBase::setDuration(double duration, ExceptionState& es)
+void MediaSourceBase::setDuration(double duration, ExceptionState& exceptionState)
{
if (duration < 0.0 || std::isnan(duration)) {
- es.throwUninformativeAndGenericDOMException(InvalidAccessError);
+ exceptionState.throwUninformativeAndGenericDOMException(InvalidAccessError);
return;
}
if (!isOpen()) {
- es.throwUninformativeAndGenericDOMException(InvalidStateError);
+ exceptionState.throwUninformativeAndGenericDOMException(InvalidStateError);
return;
}
@@ -186,7 +186,7 @@ void MediaSourceBase::setReadyState(const AtomicString& state)
onReadyStateChange(oldState, state);
}
-void MediaSourceBase::endOfStream(const AtomicString& error, ExceptionState& es)
+void MediaSourceBase::endOfStream(const AtomicString& error, ExceptionState& exceptionState)
{
DEFINE_STATIC_LOCAL(const AtomicString, network, ("network", AtomicString::ConstructFromLiteral));
DEFINE_STATIC_LOCAL(const AtomicString, decode, ("decode", AtomicString::ConstructFromLiteral));
@@ -195,7 +195,7 @@ void MediaSourceBase::endOfStream(const AtomicString& error, ExceptionState& es)
// 1. If the readyState attribute is not in the "open" state then throw an
// InvalidStateError exception and abort these steps.
if (!isOpen()) {
- es.throwUninformativeAndGenericDOMException(InvalidStateError);
+ exceptionState.throwUninformativeAndGenericDOMException(InvalidStateError);
return;
}
@@ -208,7 +208,7 @@ void MediaSourceBase::endOfStream(const AtomicString& error, ExceptionState& es)
} else if (error == decode) {
eosStatus = WebMediaSource::EndOfStreamStatusDecodeError;
} else {
- es.throwUninformativeAndGenericDOMException(InvalidAccessError);
+ exceptionState.throwUninformativeAndGenericDOMException(InvalidAccessError);
return;
}
@@ -267,7 +267,7 @@ void MediaSourceBase::stop()
m_webMediaSource.clear();
}
-PassOwnPtr<WebSourceBuffer> MediaSourceBase::createWebSourceBuffer(const String& type, const Vector<String>& codecs, ExceptionState& es)
+PassOwnPtr<WebSourceBuffer> MediaSourceBase::createWebSourceBuffer(const String& type, const Vector<String>& codecs, ExceptionState& exceptionState)
{
WebSourceBuffer* webSourceBuffer = 0;
switch (m_webMediaSource->addSourceBuffer(type, codecs, &webSourceBuffer)) {
@@ -279,14 +279,14 @@ PassOwnPtr<WebSourceBuffer> MediaSourceBase::createWebSourceBuffer(const String&
// Step 2: If type contains a MIME type ... that is not supported with the types
// specified for the other SourceBuffer objects in sourceBuffers, then throw
// a NotSupportedError exception and abort these steps.
- es.throwUninformativeAndGenericDOMException(NotSupportedError);
+ exceptionState.throwUninformativeAndGenericDOMException(NotSupportedError);
return nullptr;
case WebMediaSource::AddStatusReachedIdLimit:
ASSERT(!webSourceBuffer);
// 2.2 https://dvcs.w3.org/hg/html-media/raw-file/default/media-source/media-source.html#widl-MediaSource-addSourceBuffer-SourceBuffer-DOMString-type
// Step 3: If the user agent can't handle any more SourceBuffer objects then throw
// a QuotaExceededError exception and abort these steps.
- es.throwUninformativeAndGenericDOMException(QuotaExceededError);
+ exceptionState.throwUninformativeAndGenericDOMException(QuotaExceededError);
return nullptr;
}
« no previous file with comments | « Source/modules/mediasource/MediaSource.cpp ('k') | Source/modules/mediasource/SourceBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698