ServiceWorker: Make ServiceWorkerThread own ServiceWorkerGlobalScopeProxy

Desktop / Chromium - Hiroki Nakagawa [chromium.org] - 7 August 2017 03:34 EDT

As class-level comments for ServiceWorkerGlobalScopeProxy say, the proxy has the same lifetime of ServiceWorkerThread. Therefore, it would be more natural to make ServiceWorkerThread own it.

Bug: n/a Change-Id: I6b1683ae505f40db492146479131aed32f3eccf7 Reviewed-on: https://chromium-review.googlesource.com/597530 Commit-Queue: Hiroki Nakagawa

b303e34 ServiceWorker: Make ServiceWorkerThread own ServiceWorkerGlobalScopeProxy
.../WebKit/Source/modules/exported/WebEmbeddedWorkerImpl.cpp | 10 ++--------
.../WebKit/Source/modules/exported/WebEmbeddedWorkerImpl.h | 2 --
.../Source/modules/serviceworkers/ServiceWorkerThread.cpp | 10 +++++++---
.../WebKit/Source/modules/serviceworkers/ServiceWorkerThread.h | 8 +++++++-
4 files changed, 16 insertions(+), 14 deletions(-)

Upstream: git.chromium.org


  • Share