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

Unified Diff: third_party/WebKit/Source/core/page/EventSource.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/core/page/EventSource.h
diff --git a/third_party/WebKit/Source/core/page/EventSource.h b/third_party/WebKit/Source/core/page/EventSource.h
index e44530e4346b1b41efef00e58f8da76213981185..c49ac8747f02cfbf8d5574516bfcdc476bf70376 100644
--- a/third_party/WebKit/Source/core/page/EventSource.h
+++ b/third_party/WebKit/Source/core/page/EventSource.h
@@ -42,7 +42,7 @@
#include "platform/heap/Handle.h"
#include "platform/weborigin/KURL.h"
#include "wtf/Forward.h"
-#include <memory>
+#include "wtf/OwnPtr.h"
namespace blink {
@@ -95,7 +95,7 @@ public:
private:
EventSource(ExecutionContext*, const KURL&, const EventSourceInit&);
- void didReceiveResponse(unsigned long, const ResourceResponse&, std::unique_ptr<WebDataConsumerHandle>) override;
+ void didReceiveResponse(unsigned long, const ResourceResponse&, PassOwnPtr<WebDataConsumerHandle>) override;
void didReceiveData(const char*, unsigned) override;
void didFinishLoading(unsigned long, double) override;
void didFail(const ResourceError&) override;
@@ -122,7 +122,7 @@ private:
State m_state;
Member<EventSourceParser> m_parser;
- std::unique_ptr<ThreadableLoader> m_loader;
+ OwnPtr<ThreadableLoader> m_loader;
Timer<EventSource> m_connectTimer;
unsigned long long m_reconnectDelay;
« no previous file with comments | « third_party/WebKit/Source/core/page/DragController.cpp ('k') | third_party/WebKit/Source/core/page/EventSource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698