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

Unified Diff: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerThread.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/ServiceWorkerThread.h
diff --git a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerThread.h b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerThread.h
index 7328fbfb9e52f59930cdb42a02e6c80f3631e4c4..0a178d4ac075a74c9c25b3d8a3e8a3332882fda1 100644
--- a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerThread.h
+++ b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerThread.h
@@ -33,7 +33,6 @@
#include "core/frame/csp/ContentSecurityPolicy.h"
#include "core/workers/WorkerThread.h"
#include "modules/ModulesExport.h"
-#include <memory>
namespace blink {
@@ -41,17 +40,17 @@ class WorkerThreadStartupData;
class MODULES_EXPORT ServiceWorkerThread final : public WorkerThread {
public:
- static std::unique_ptr<ServiceWorkerThread> create(PassRefPtr<WorkerLoaderProxy>, WorkerReportingProxy&);
+ static PassOwnPtr<ServiceWorkerThread> create(PassRefPtr<WorkerLoaderProxy>, WorkerReportingProxy&);
~ServiceWorkerThread() override;
WorkerBackingThread& workerBackingThread() override { return *m_workerBackingThread; }
protected:
- WorkerGlobalScope* createWorkerGlobalScope(std::unique_ptr<WorkerThreadStartupData>) override;
+ WorkerGlobalScope* createWorkerGlobalScope(PassOwnPtr<WorkerThreadStartupData>) override;
private:
ServiceWorkerThread(PassRefPtr<WorkerLoaderProxy>, WorkerReportingProxy&);
- std::unique_ptr<WorkerBackingThread> m_workerBackingThread;
+ OwnPtr<WorkerBackingThread> m_workerBackingThread;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698