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

Unified Diff: third_party/WebKit/Source/platform/network/ResourceResponse.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/ResourceResponse.h
diff --git a/third_party/WebKit/Source/platform/network/ResourceResponse.h b/third_party/WebKit/Source/platform/network/ResourceResponse.h
index 89d6480631a3725d55b76d2c3b2cf330b74e5aea..d19e8520e992003c4e92c16e4ab97b4daa5edbe2 100644
--- a/third_party/WebKit/Source/platform/network/ResourceResponse.h
+++ b/third_party/WebKit/Source/platform/network/ResourceResponse.h
@@ -35,10 +35,10 @@
#include "platform/network/ResourceLoadTiming.h"
#include "platform/weborigin/KURL.h"
#include "public/platform/modules/serviceworker/WebServiceWorkerResponseType.h"
-#include "wtf/PassOwnPtr.h"
#include "wtf/RefCounted.h"
#include "wtf/RefPtr.h"
#include "wtf/text/CString.h"
+#include <memory>
namespace blink {
@@ -90,7 +90,7 @@ public:
explicit ResourceResponse(CrossThreadResourceResponseData*);
// Gets a copy of the data suitable for passing to another thread.
- PassOwnPtr<CrossThreadResourceResponseData> copyData() const;
+ std::unique_ptr<CrossThreadResourceResponseData> copyData() const;
ResourceResponse();
ResourceResponse(const KURL&, const AtomicString& mimeType, long long expectedLength, const AtomicString& textEncodingName, const String& filename);
@@ -391,7 +391,7 @@ public:
String m_suggestedFilename;
int m_httpStatusCode;
String m_httpStatusText;
- OwnPtr<CrossThreadHTTPHeaderMapData> m_httpHeaders;
+ std::unique_ptr<CrossThreadHTTPHeaderMapData> m_httpHeaders;
time_t m_lastModifiedDate;
RefPtr<ResourceLoadTiming> m_resourceLoadTiming;
CString m_securityInfo;

Powered by Google App Engine
This is Rietveld 408576698