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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 #include "core/dom/MessagePort.h" | 43 #include "core/dom/MessagePort.h" |
44 #include "core/events/MessageEvent.h" | 44 #include "core/events/MessageEvent.h" |
45 #include "modules/serviceworkers/RegistrationOptionList.h" | 45 #include "modules/serviceworkers/RegistrationOptionList.h" |
46 #include "modules/serviceworkers/ServiceWorker.h" | 46 #include "modules/serviceworkers/ServiceWorker.h" |
47 #include "modules/serviceworkers/ServiceWorkerContainerClient.h" | 47 #include "modules/serviceworkers/ServiceWorkerContainerClient.h" |
48 #include "modules/serviceworkers/ServiceWorkerError.h" | 48 #include "modules/serviceworkers/ServiceWorkerError.h" |
49 #include "public/platform/WebServiceWorker.h" | 49 #include "public/platform/WebServiceWorker.h" |
50 #include "public/platform/WebServiceWorkerProvider.h" | 50 #include "public/platform/WebServiceWorkerProvider.h" |
51 #include "public/platform/WebString.h" | 51 #include "public/platform/WebString.h" |
52 #include "public/platform/WebURL.h" | 52 #include "public/platform/WebURL.h" |
53 #include "v8.h" | 53 #include <v8.h> |
54 | 54 |
55 using blink::WebServiceWorker; | 55 using blink::WebServiceWorker; |
56 using blink::WebServiceWorkerProvider; | 56 using blink::WebServiceWorkerProvider; |
57 | 57 |
58 namespace WebCore { | 58 namespace WebCore { |
59 | 59 |
60 PassRefPtr<ServiceWorkerContainer> ServiceWorkerContainer::create(ExecutionConte
xt* executionContext) | 60 PassRefPtr<ServiceWorkerContainer> ServiceWorkerContainer::create(ExecutionConte
xt* executionContext) |
61 { | 61 { |
62 return adoptRef(new ServiceWorkerContainer(executionContext)); | 62 return adoptRef(new ServiceWorkerContainer(executionContext)); |
63 } | 63 } |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 return; | 208 return; |
209 | 209 |
210 if (ServiceWorkerContainerClient* client = ServiceWorkerContainerClient::fro
m(executionContext)) { | 210 if (ServiceWorkerContainerClient* client = ServiceWorkerContainerClient::fro
m(executionContext)) { |
211 m_provider = client->provider(); | 211 m_provider = client->provider(); |
212 if (m_provider) | 212 if (m_provider) |
213 m_provider->setClient(this); | 213 m_provider->setClient(this); |
214 } | 214 } |
215 } | 215 } |
216 | 216 |
217 } // namespace WebCore | 217 } // namespace WebCore |
OLD | NEW |