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

Unified Diff: third_party/WebKit/Source/core/workers/DedicatedWorkerThread.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/workers/DedicatedWorkerThread.h
diff --git a/third_party/WebKit/Source/core/workers/DedicatedWorkerThread.h b/third_party/WebKit/Source/core/workers/DedicatedWorkerThread.h
index a6fa87d7ef65d50525b5d0a8c6a2253477037dbb..bc0626787f83beb4dfde0291c75c59e147658b07 100644
--- a/third_party/WebKit/Source/core/workers/DedicatedWorkerThread.h
+++ b/third_party/WebKit/Source/core/workers/DedicatedWorkerThread.h
@@ -31,6 +31,7 @@
#define DedicatedWorkerThread_h
#include "core/workers/WorkerThread.h"
+#include <memory>
namespace blink {
@@ -39,20 +40,20 @@ class WorkerThreadStartupData;
class DedicatedWorkerThread final : public WorkerThread {
public:
- static PassOwnPtr<DedicatedWorkerThread> create(PassRefPtr<WorkerLoaderProxy>, InProcessWorkerObjectProxy&, double timeOrigin);
+ static std::unique_ptr<DedicatedWorkerThread> create(PassRefPtr<WorkerLoaderProxy>, InProcessWorkerObjectProxy&, double timeOrigin);
~DedicatedWorkerThread() override;
WorkerBackingThread& workerBackingThread() override { return *m_workerBackingThread; }
InProcessWorkerObjectProxy& workerObjectProxy() const { return m_workerObjectProxy; }
protected:
- WorkerGlobalScope* createWorkerGlobalScope(PassOwnPtr<WorkerThreadStartupData>) override;
+ WorkerGlobalScope* createWorkerGlobalScope(std::unique_ptr<WorkerThreadStartupData>) override;
void postInitialize() override;
private:
DedicatedWorkerThread(PassRefPtr<WorkerLoaderProxy>, InProcessWorkerObjectProxy&, double timeOrigin);
- OwnPtr<WorkerBackingThread> m_workerBackingThread;
+ std::unique_ptr<WorkerBackingThread> m_workerBackingThread;
InProcessWorkerObjectProxy& m_workerObjectProxy;
double m_timeOrigin;
};

Powered by Google App Engine
This is Rietveld 408576698