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

Unified Diff: third_party/WebKit/Source/core/html/parser/ParsedChunkQueue.h

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. Created 4 years, 6 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
Index: third_party/WebKit/Source/core/html/parser/ParsedChunkQueue.h
diff --git a/third_party/WebKit/Source/core/html/parser/ParsedChunkQueue.h b/third_party/WebKit/Source/core/html/parser/ParsedChunkQueue.h
index 3c9c9a7cbc560e5c1165dfd469361766485b54aa..d65f2924be772dd3135915f50aa2c45a794ba5a6 100644
--- a/third_party/WebKit/Source/core/html/parser/ParsedChunkQueue.h
+++ b/third_party/WebKit/Source/core/html/parser/ParsedChunkQueue.h
@@ -7,12 +7,11 @@
#include "core/html/parser/HTMLDocumentParser.h"
#include "wtf/Deque.h"
-#include "wtf/OwnPtr.h"
-#include "wtf/PassOwnPtr.h"
#include "wtf/PassRefPtr.h"
#include "wtf/ThreadSafeRefCounted.h"
#include "wtf/ThreadingPrimitives.h"
#include "wtf/Vector.h"
+#include <memory>
namespace blink {
@@ -33,16 +32,16 @@ public:
~ParsedChunkQueue();
- bool enqueue(PassOwnPtr<HTMLDocumentParser::ParsedChunk>);
+ bool enqueue(std::unique_ptr<HTMLDocumentParser::ParsedChunk>);
void clear();
- void takeAll(Vector<OwnPtr<HTMLDocumentParser::ParsedChunk>>&);
+ void takeAll(Vector<std::unique_ptr<HTMLDocumentParser::ParsedChunk>>&);
private:
ParsedChunkQueue();
Mutex m_mutex;
- Vector<OwnPtr<HTMLDocumentParser::ParsedChunk>> m_pendingChunks;
+ Vector<std::unique_ptr<HTMLDocumentParser::ParsedChunk>> m_pendingChunks;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698