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

Unified Diff: third_party/WebKit/Source/core/html/parser/TokenizedChunkQueue.cpp

Issue 2181943002: Rename ParsedChunk to TokenizedChunk in core/html/parser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months 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 | « third_party/WebKit/Source/core/html/parser/TokenizedChunkQueue.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/html/parser/TokenizedChunkQueue.cpp
diff --git a/third_party/WebKit/Source/core/html/parser/ParsedChunkQueue.cpp b/third_party/WebKit/Source/core/html/parser/TokenizedChunkQueue.cpp
similarity index 75%
rename from third_party/WebKit/Source/core/html/parser/ParsedChunkQueue.cpp
rename to third_party/WebKit/Source/core/html/parser/TokenizedChunkQueue.cpp
index 77ac1d906a8710e3459074b6167e387535ea5d00..d2797e639860a6ab28741a0c19993d26206e7223 100644
--- a/third_party/WebKit/Source/core/html/parser/ParsedChunkQueue.cpp
+++ b/third_party/WebKit/Source/core/html/parser/TokenizedChunkQueue.cpp
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "core/html/parser/ParsedChunkQueue.h"
+#include "core/html/parser/TokenizedChunkQueue.h"
#include "platform/RuntimeEnabledFeatures.h"
#include <algorithm>
@@ -34,16 +34,16 @@ private:
} // namespace
-ParsedChunkQueue::ParsedChunkQueue()
+TokenizedChunkQueue::TokenizedChunkQueue()
: m_mutex(RuntimeEnabledFeatures::parseHTMLOnMainThreadEnabled() ? nullptr : new Mutex)
{
}
-ParsedChunkQueue::~ParsedChunkQueue()
+TokenizedChunkQueue::~TokenizedChunkQueue()
{
}
-bool ParsedChunkQueue::enqueue(std::unique_ptr<HTMLDocumentParser::ParsedChunk> chunk)
+bool TokenizedChunkQueue::enqueue(std::unique_ptr<HTMLDocumentParser::TokenizedChunk> chunk)
{
MaybeLocker locker(m_mutex.get());
@@ -57,7 +57,7 @@ bool ParsedChunkQueue::enqueue(std::unique_ptr<HTMLDocumentParser::ParsedChunk>
return wasEmpty;
}
-void ParsedChunkQueue::clear()
+void TokenizedChunkQueue::clear()
{
MaybeLocker locker(m_mutex.get());
@@ -65,21 +65,21 @@ void ParsedChunkQueue::clear()
m_pendingChunks.clear();
}
-void ParsedChunkQueue::takeAll(Vector<std::unique_ptr<HTMLDocumentParser::ParsedChunk>>& vector)
+void TokenizedChunkQueue::takeAll(Vector<std::unique_ptr<HTMLDocumentParser::TokenizedChunk>>& vector)
{
MaybeLocker locker(m_mutex.get());
- ASSERT(vector.isEmpty());
+ DCHECK(vector.isEmpty());
m_pendingChunks.swap(vector);
}
-size_t ParsedChunkQueue::peakPendingChunkCount()
+size_t TokenizedChunkQueue::peakPendingChunkCount()
{
MaybeLocker locker(m_mutex.get());
return m_peakPendingChunkCount;
}
-size_t ParsedChunkQueue::peakPendingTokenCount()
+size_t TokenizedChunkQueue::peakPendingTokenCount()
{
MaybeLocker locker(m_mutex.get());
return m_peakPendingTokenCount;
« no previous file with comments | « third_party/WebKit/Source/core/html/parser/TokenizedChunkQueue.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698