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

Unified Diff: third_party/WebKit/Source/core/fetch/RawResource.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/fetch/RawResource.h
diff --git a/third_party/WebKit/Source/core/fetch/RawResource.h b/third_party/WebKit/Source/core/fetch/RawResource.h
index 84b702679dbf358c60ba93339aa20ed0e6a83092..a2328a2bb94d93f0bed7a3baeb02696c4d0321ce 100644
--- a/third_party/WebKit/Source/core/fetch/RawResource.h
+++ b/third_party/WebKit/Source/core/fetch/RawResource.h
@@ -27,8 +27,8 @@
#include "core/fetch/Resource.h"
#include "core/fetch/ResourceClient.h"
#include "public/platform/WebDataConsumerHandle.h"
-#include "wtf/PassOwnPtr.h"
#include "wtf/WeakPtr.h"
+#include <memory>
namespace blink {
class FetchRequest;
@@ -82,7 +82,7 @@ private:
void willFollowRedirect(ResourceRequest&, const ResourceResponse&) override;
void willNotFollowRedirect() override;
- void responseReceived(const ResourceResponse&, PassOwnPtr<WebDataConsumerHandle>) override;
+ void responseReceived(const ResourceResponse&, std::unique_ptr<WebDataConsumerHandle>) override;
void setSerializedCachedMetadata(const char*, size_t) override;
void didSendData(unsigned long long bytesSent, unsigned long long totalBytesToBeSent) override;
void didDownloadData(int) override;
@@ -112,7 +112,7 @@ public:
ResourceClientType getResourceClientType() const final { return RawResourceType; }
virtual void dataSent(Resource*, unsigned long long /* bytesSent */, unsigned long long /* totalBytesToBeSent */) { }
- virtual void responseReceived(Resource*, const ResourceResponse&, PassOwnPtr<WebDataConsumerHandle>) { }
+ virtual void responseReceived(Resource*, const ResourceResponse&, std::unique_ptr<WebDataConsumerHandle>) { }
virtual void setSerializedCachedMetadata(Resource*, const char*, size_t) { }
virtual void dataReceived(Resource*, const char* /* data */, size_t /* length */) { }
virtual void redirectReceived(Resource*, ResourceRequest&, const ResourceResponse&) { }
« no previous file with comments | « third_party/WebKit/Source/core/fetch/MemoryCacheTest.cpp ('k') | third_party/WebKit/Source/core/fetch/RawResource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698