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

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