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

Unified Diff: Source/core/workers/UIWorkerThread.h

Issue 474683003: Not for review - Rebase of crrev.com/62833003 Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 6 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
« no previous file with comments | « Source/core/workers/UIWorkerGlobalScope.idl ('k') | Source/core/workers/UIWorkerThread.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/workers/UIWorkerThread.h
diff --git a/Source/core/workers/SharedWorkerThread.h b/Source/core/workers/UIWorkerThread.h
similarity index 75%
copy from Source/core/workers/SharedWorkerThread.h
copy to Source/core/workers/UIWorkerThread.h
index 34e84ef2d92dadca37d301f7dbecc4f9bf037f14..51c45bcb50c72abd53e552d658ffa69e76f6e458 100644
--- a/Source/core/workers/SharedWorkerThread.h
+++ b/Source/core/workers/UIWorkerThread.h
@@ -27,30 +27,32 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef SharedWorkerThread_h
-#define SharedWorkerThread_h
+#ifndef UIWorkerThread_h
+#define UIWorkerThread_h
#include "core/frame/csp/ContentSecurityPolicy.h"
-#include "core/workers/WorkerThread.h"
+#include "core/workers/DedicatedWorkerThread.h"
+#include "public/platform/WebWorkerRunLoop.h"
namespace blink {
+class WorkerObjectProxy;
class WorkerThreadStartupData;
+class WebThreadSupportingGC;
-class SharedWorkerThread : public WorkerThread {
+class UIWorkerThread final : public DedicatedWorkerThread {
public:
- static PassRefPtr<SharedWorkerThread> create(const String& name, WorkerLoaderProxy&, WorkerReportingProxy&, PassOwnPtrWillBeRawPtr<WorkerThreadStartupData>);
- virtual ~SharedWorkerThread();
+ static PassRefPtr<UIWorkerThread> create(WorkerLoaderProxy&, WorkerObjectProxy&, double timeOrigin, PassOwnPtrWillBeRawPtr<WorkerThreadStartupData>);
+ virtual ~UIWorkerThread();
protected:
virtual PassRefPtrWillBeRawPtr<WorkerGlobalScope> createWorkerGlobalScope(PassOwnPtrWillBeRawPtr<WorkerThreadStartupData>) override;
private:
- SharedWorkerThread(const String& name, WorkerLoaderProxy&, WorkerReportingProxy&, PassOwnPtrWillBeRawPtr<WorkerThreadStartupData>);
-
- String m_name;
+ UIWorkerThread(WorkerLoaderProxy&, WorkerObjectProxy&, double timeOrigin, PassOwnPtrWillBeRawPtr<WorkerThreadStartupData>);
};
} // namespace blink
-#endif // SharedWorkerThread_h
+#endif // UIWorkerThread_h
+
« no previous file with comments | « Source/core/workers/UIWorkerGlobalScope.idl ('k') | Source/core/workers/UIWorkerThread.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698