| OLD | NEW |
| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 #include "modules/serviceworkers/ServiceWorkerError.h" | 46 #include "modules/serviceworkers/ServiceWorkerError.h" |
| 47 #include "platform/RuntimeEnabledFeatures.h" | 47 #include "platform/RuntimeEnabledFeatures.h" |
| 48 #include "public/platform/WebServiceWorker.h" | 48 #include "public/platform/WebServiceWorker.h" |
| 49 #include "public/platform/WebServiceWorkerProvider.h" | 49 #include "public/platform/WebServiceWorkerProvider.h" |
| 50 #include "public/platform/WebString.h" | 50 #include "public/platform/WebString.h" |
| 51 #include "public/platform/WebURL.h" | 51 #include "public/platform/WebURL.h" |
| 52 | 52 |
| 53 using blink::WebServiceWorker; | 53 using blink::WebServiceWorker; |
| 54 using blink::WebServiceWorkerProvider; | 54 using blink::WebServiceWorkerProvider; |
| 55 | 55 |
| 56 namespace WebCore { | 56 namespace blink { |
| 57 | 57 |
| 58 PassRefPtrWillBeRawPtr<ServiceWorkerContainer> ServiceWorkerContainer::create(Ex
ecutionContext* executionContext) | 58 PassRefPtrWillBeRawPtr<ServiceWorkerContainer> ServiceWorkerContainer::create(Ex
ecutionContext* executionContext) |
| 59 { | 59 { |
| 60 return adoptRefWillBeNoop(new ServiceWorkerContainer(executionContext)); | 60 return adoptRefWillBeNoop(new ServiceWorkerContainer(executionContext)); |
| 61 } | 61 } |
| 62 | 62 |
| 63 ServiceWorkerContainer::~ServiceWorkerContainer() | 63 ServiceWorkerContainer::~ServiceWorkerContainer() |
| 64 { | 64 { |
| 65 ASSERT(!m_provider); | 65 ASSERT(!m_provider); |
| 66 } | 66 } |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 | 254 |
| 255 m_ready = createReadyProperty(); | 255 m_ready = createReadyProperty(); |
| 256 | 256 |
| 257 if (ServiceWorkerContainerClient* client = ServiceWorkerContainerClient::fro
m(executionContext)) { | 257 if (ServiceWorkerContainerClient* client = ServiceWorkerContainerClient::fro
m(executionContext)) { |
| 258 m_provider = client->provider(); | 258 m_provider = client->provider(); |
| 259 if (m_provider) | 259 if (m_provider) |
| 260 m_provider->setClient(this); | 260 m_provider->setClient(this); |
| 261 } | 261 } |
| 262 } | 262 } |
| 263 | 263 |
| 264 } // namespace WebCore | 264 } // namespace blink |
| OLD | NEW |