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

Unified Diff: third_party/WebKit/Source/web/WorkerContentSettingsClient.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/web/WorkerContentSettingsClient.h
diff --git a/third_party/WebKit/Source/web/WorkerContentSettingsClient.h b/third_party/WebKit/Source/web/WorkerContentSettingsClient.h
index d2b92723f01842076fac91e25760f1e183751d54..ed02e115a4ccd7ac69fc31312c595d68c28d58b2 100644
--- a/third_party/WebKit/Source/web/WorkerContentSettingsClient.h
+++ b/third_party/WebKit/Source/web/WorkerContentSettingsClient.h
@@ -33,6 +33,7 @@
#include "core/workers/WorkerClients.h"
#include "wtf/Forward.h"
+#include <memory>
namespace blink {
@@ -43,7 +44,7 @@ class WebWorkerContentSettingsClientProxy;
class WorkerContentSettingsClient final : public GarbageCollectedFinalized<WorkerContentSettingsClient>, public Supplement<WorkerClients> {
USING_GARBAGE_COLLECTED_MIXIN(WorkerContentSettingsClient);
public:
- static WorkerContentSettingsClient* create(PassOwnPtr<WebWorkerContentSettingsClientProxy>);
+ static WorkerContentSettingsClient* create(std::unique_ptr<WebWorkerContentSettingsClientProxy>);
virtual ~WorkerContentSettingsClient();
bool requestFileSystemAccessSync();
@@ -55,12 +56,12 @@ public:
DEFINE_INLINE_VIRTUAL_TRACE() { Supplement<WorkerClients>::trace(visitor); }
private:
- explicit WorkerContentSettingsClient(PassOwnPtr<WebWorkerContentSettingsClientProxy>);
+ explicit WorkerContentSettingsClient(std::unique_ptr<WebWorkerContentSettingsClientProxy>);
- OwnPtr<WebWorkerContentSettingsClientProxy> m_proxy;
+ std::unique_ptr<WebWorkerContentSettingsClientProxy> m_proxy;
};
-void provideContentSettingsClientToWorker(WorkerClients*, PassOwnPtr<WebWorkerContentSettingsClientProxy>);
+void provideContentSettingsClientToWorker(WorkerClients*, std::unique_ptr<WebWorkerContentSettingsClientProxy>);
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/web/WebViewImpl.cpp ('k') | third_party/WebKit/Source/web/WorkerContentSettingsClient.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698