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

Unified Diff: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerClient.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/serviceworkers/ServiceWorkerClient.h
diff --git a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerClient.h b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerClient.h
index b847b728cf530742447edfa0e46200ad64c748f1..4a2419df5717ba0034290a8e42680443c546d7ad 100644
--- a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerClient.h
+++ b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerClient.h
@@ -12,7 +12,6 @@
#include "platform/heap/Handle.h"
#include "public/platform/modules/serviceworker/WebServiceWorkerClientsInfo.h"
#include "wtf/Forward.h"
-#include <memory>
namespace blink {
@@ -24,9 +23,9 @@ class MODULES_EXPORT ServiceWorkerClient : public GarbageCollectedFinalized<Serv
DEFINE_WRAPPERTYPEINFO();
public:
// To be used by CallbackPromiseAdapter.
- using WebType = std::unique_ptr<WebServiceWorkerClientInfo>;
+ using WebType = OwnPtr<WebServiceWorkerClientInfo>;
- static ServiceWorkerClient* take(ScriptPromiseResolver*, std::unique_ptr<WebServiceWorkerClientInfo>);
+ static ServiceWorkerClient* take(ScriptPromiseResolver*, PassOwnPtr<WebServiceWorkerClientInfo>);
static ServiceWorkerClient* create(const WebServiceWorkerClientInfo&);
virtual ~ServiceWorkerClient();

Powered by Google App Engine
This is Rietveld 408576698