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

Unified Diff: third_party/WebKit/Source/core/workers/WorkletBackingThreadHolder.h

Issue 2432543002: Refactoring WorkletThreadBackingHolder with template pattern (Closed)
Patch Set: Fixing typos Created 4 years, 2 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/WorkletBackingThreadHolder.h
diff --git a/third_party/WebKit/Source/core/workers/WorkletBackingThreadHolder.h b/third_party/WebKit/Source/core/workers/WorkletBackingThreadHolder.h
deleted file mode 100644
index 2f47c61734dda64b74139cabff3bdf08246560a3..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/core/workers/WorkletBackingThreadHolder.h
+++ /dev/null
@@ -1,32 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef WorkletBackingThreadHolder_h
-#define WorkletBackingThreadHolder_h
-
-#include "core/CoreExport.h"
-#include "wtf/PtrUtil.h"
-
-namespace blink {
-
-class WorkerBackingThread;
-class WaitableEvent;
-
-class CORE_EXPORT WorkletBackingThreadHolder {
- public:
- WorkerBackingThread* thread() { return m_thread.get(); }
-
- protected:
- explicit WorkletBackingThreadHolder(std::unique_ptr<WorkerBackingThread>);
- virtual void initializeOnThread() = 0;
- void shutdownAndWait();
- void shutdownOnThread(WaitableEvent*);
-
- std::unique_ptr<WorkerBackingThread> m_thread;
- bool m_initialized;
-};
-
-} // namespace blink
-
-#endif // WorkletBackingThreadHolder_h
« no previous file with comments | « third_party/WebKit/Source/core/workers/BUILD.gn ('k') | third_party/WebKit/Source/core/workers/WorkletBackingThreadHolder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698