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

Unified Diff: third_party/WebKit/Source/modules/mediasource/MediaSource.cpp

Issue 2572603002: ABANDONED CL: Rename readyState() to getReadyState(). (Closed)
Patch Set: Created 4 years 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
Index: third_party/WebKit/Source/modules/mediasource/MediaSource.cpp
diff --git a/third_party/WebKit/Source/modules/mediasource/MediaSource.cpp b/third_party/WebKit/Source/modules/mediasource/MediaSource.cpp
index 66412e6bffc6f3488eb46d33cb1b81ba5d566970..9216f35b396ad5bdefc6e69a6a89fc7f445c9662 100644
--- a/third_party/WebKit/Source/modules/mediasource/MediaSource.cpp
+++ b/third_party/WebKit/Source/modules/mediasource/MediaSource.cpp
@@ -392,7 +392,7 @@ TimeRanges* MediaSource::buffered() const {
// 5. For each SourceBuffer object in activeSourceBuffers run the following
// steps:
- bool ended = readyState() == endedKeyword();
+ bool ended = getReadyState() == endedKeyword();
for (size_t i = 0; i < ranges.size(); ++i) {
// 5.1 Let source ranges equal the ranges returned by the buffered attribute
// on the current SourceBuffer.
@@ -586,7 +586,7 @@ void MediaSource::setReadyState(const AtomicString& state) {
DCHECK(state == openKeyword() || state == closedKeyword() ||
state == endedKeyword());
- AtomicString oldState = readyState();
+ AtomicString oldState = getReadyState();
BLINK_MSLOG << __func__ << " this=" << this << " : " << oldState << " -> "
<< state;
@@ -695,7 +695,7 @@ void MediaSource::endOfStreamInternal(
}
bool MediaSource::isOpen() const {
- return readyState() == openKeyword();
+ return getReadyState() == openKeyword();
}
void MediaSource::setSourceBufferActive(SourceBuffer* sourceBuffer,
@@ -733,7 +733,7 @@ HTMLMediaElement* MediaSource::mediaElement() const {
}
bool MediaSource::isClosed() const {
- return readyState() == closedKeyword();
+ return getReadyState() == closedKeyword();
}
void MediaSource::close() {

Powered by Google App Engine
This is Rietveld 408576698