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

Unified Diff: Source/modules/serviceworkers/ServiceWorker.cpp

Issue 682003003: Simplify WebServiceWorker{Registration}Proxy interfaces. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove Impl wrapper layer; extend to also cover WebServiceWorkerProxy 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
Index: Source/modules/serviceworkers/ServiceWorker.cpp
diff --git a/Source/modules/serviceworkers/ServiceWorker.cpp b/Source/modules/serviceworkers/ServiceWorker.cpp
index 385edee6aa7bbf77810e94eafaba870053e9ba77..8cfa8697711a417cf7f836255a5abe29fcc64ab2 100644
--- a/Source/modules/serviceworkers/ServiceWorker.cpp
+++ b/Source/modules/serviceworkers/ServiceWorker.cpp
@@ -241,8 +241,7 @@ PassRefPtrWillBeRawPtr<ServiceWorker> ServiceWorker::getOrCreate(ExecutionContex
if (!outerWorker)
return nullptr;
- WebServiceWorkerProxy* proxy = outerWorker->proxy();
- ServiceWorker* existingServiceWorker = proxy ? proxy->unwrap() : 0;
+ ServiceWorker* existingServiceWorker = static_cast<ServiceWorker*>(outerWorker->proxy());
if (existingServiceWorker) {
ASSERT(existingServiceWorker->executionContext() == executionContext);
return existingServiceWorker;
@@ -255,7 +254,6 @@ PassRefPtrWillBeRawPtr<ServiceWorker> ServiceWorker::getOrCreate(ExecutionContex
ServiceWorker::ServiceWorker(ExecutionContext* executionContext, PassOwnPtr<WebServiceWorker> worker)
: AbstractWorker(executionContext)
- , WebServiceWorkerProxy(this)
, m_outerWorker(worker)
, m_proxyState(Initial)
{
« no previous file with comments | « no previous file | Source/modules/serviceworkers/ServiceWorkerRegistration.cpp » ('j') | public/platform/WebServiceWorkerProxy.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698