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

Side by Side Diff: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainer.cpp

Issue 1857143002: Oilpan: Remove RefCountedGarbageCollectedEventTargetWithInlineData (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 if (m_provider) { 183 if (m_provider) {
184 m_provider->setClient(0); 184 m_provider->setClient(0);
185 m_provider = nullptr; 185 m_provider = nullptr;
186 } 186 }
187 } 187 }
188 188
189 DEFINE_TRACE(ServiceWorkerContainer) 189 DEFINE_TRACE(ServiceWorkerContainer)
190 { 190 {
191 visitor->trace(m_controller); 191 visitor->trace(m_controller);
192 visitor->trace(m_ready); 192 visitor->trace(m_ready);
193 RefCountedGarbageCollectedEventTargetWithInlineData<ServiceWorkerContainer>: :trace(visitor); 193 EventTargetWithInlineData<ServiceWorkerContainer>::trace(visitor);
194 ContextLifecycleObserver::trace(visitor); 194 ContextLifecycleObserver::trace(visitor);
195 } 195 }
196 196
197 void ServiceWorkerContainer::registerServiceWorkerImpl(ExecutionContext* executi onContext, const KURL& rawScriptURL, const KURL& scope, PassOwnPtr<RegistrationC allbacks> callbacks) 197 void ServiceWorkerContainer::registerServiceWorkerImpl(ExecutionContext* executi onContext, const KURL& rawScriptURL, const KURL& scope, PassOwnPtr<RegistrationC allbacks> callbacks)
198 { 198 {
199 if (!m_provider) { 199 if (!m_provider) {
200 callbacks->onError(WebServiceWorkerError(WebServiceWorkerError::ErrorTyp eState, "Failed to register a ServiceWorker: The document is in an invalid state .")); 200 callbacks->onError(WebServiceWorkerError(WebServiceWorkerError::ErrorTyp eState, "Failed to register a ServiceWorker: The document is in an invalid state ."));
201 return; 201 return;
202 } 202 }
203 203
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 return; 408 return;
409 409
410 if (ServiceWorkerContainerClient* client = ServiceWorkerContainerClient::fro m(executionContext)) { 410 if (ServiceWorkerContainerClient* client = ServiceWorkerContainerClient::fro m(executionContext)) {
411 m_provider = client->provider(); 411 m_provider = client->provider();
412 if (m_provider) 412 if (m_provider)
413 m_provider->setClient(this); 413 m_provider->setClient(this);
414 } 414 }
415 } 415 }
416 416
417 } // namespace blink 417 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698