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

Unified Diff: third_party/WebKit/Source/modules/fetch/FetchHeaderList.h

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/modules/fetch/FetchHeaderList.h
diff --git a/third_party/WebKit/Source/modules/fetch/FetchHeaderList.h b/third_party/WebKit/Source/modules/fetch/FetchHeaderList.h
index e22ababdc4f49c0db747018975b81d9abc54fa68..2aa9d0f8ddd1b10c4f1164a3cd7fcb6ef5e431e8 100644
--- a/third_party/WebKit/Source/modules/fetch/FetchHeaderList.h
+++ b/third_party/WebKit/Source/modules/fetch/FetchHeaderList.h
@@ -7,10 +7,10 @@
#include "modules/ModulesExport.h"
#include "platform/heap/Handle.h"
+#include "wtf/OwnPtr.h"
#include "wtf/PassRefPtr.h"
#include "wtf/Vector.h"
#include "wtf/text/WTFString.h"
-#include <memory>
#include <utility>
namespace blink {
@@ -39,7 +39,7 @@ public:
bool containsNonSimpleHeader() const;
- const Vector<std::unique_ptr<Header>>& list() const { return m_headerList; }
+ const Vector<OwnPtr<Header>>& list() const { return m_headerList; }
const Header& entry(size_t index) const { return *(m_headerList[index].get()); }
static bool isValidHeaderName(const String&);
@@ -49,7 +49,7 @@ public:
private:
FetchHeaderList();
- Vector<std::unique_ptr<Header>> m_headerList;
+ Vector<OwnPtr<Header>> m_headerList;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698