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

Unified Diff: third_party/WebKit/Source/platform/network/ResourceRequest.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/platform/network/ResourceRequest.h
diff --git a/third_party/WebKit/Source/platform/network/ResourceRequest.h b/third_party/WebKit/Source/platform/network/ResourceRequest.h
index b8a9508eba92a7522504604fd01d7b028dff4db8..2a6feae6d8eefd4f99f245fa112306ff320d679c 100644
--- a/third_party/WebKit/Source/platform/network/ResourceRequest.h
+++ b/third_party/WebKit/Source/platform/network/ResourceRequest.h
@@ -38,8 +38,8 @@
#include "platform/weborigin/SecurityOrigin.h"
#include "public/platform/WebAddressSpace.h"
#include "public/platform/WebURLRequest.h"
-#include "wtf/OwnPtr.h"
#include "wtf/RefCounted.h"
+#include <memory>
namespace blink {
@@ -91,7 +91,7 @@ public:
explicit ResourceRequest(CrossThreadResourceRequestData*);
// Gets a copy of the data suitable for passing to another thread.
- PassOwnPtr<CrossThreadResourceRequestData> copyData() const;
+ std::unique_ptr<CrossThreadResourceRequestData> copyData() const;
bool isNull() const;
bool isEmpty() const;
@@ -307,7 +307,7 @@ public:
RefPtr<SecurityOrigin> m_requestorOrigin;
String m_httpMethod;
- OwnPtr<CrossThreadHTTPHeaderMapData> m_httpHeaders;
+ std::unique_ptr<CrossThreadHTTPHeaderMapData> m_httpHeaders;
RefPtr<EncodedFormData> m_httpBody;
RefPtr<EncodedFormData> m_attachedCredential;
bool m_allowStoredCredentials;

Powered by Google App Engine
This is Rietveld 408576698