| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2010 Apple Inc. All rights reserved. | 3 * Copyright (C) 2010 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | 24 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 25 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 25 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 30 */ | 30 */ |
| 31 | 31 |
| 32 #include "config.h" | 32 #include "config.h" |
| 33 | 33 |
| 34 #include "SharedWorker.h" | 34 #include "core/workers/SharedWorker.h" |
| 35 | 35 |
| 36 #include "InspectorInstrumentation.h" | 36 #include "InspectorInstrumentation.h" |
| 37 #include "SharedWorkerRepository.h" | |
| 38 #include "core/dom/ExceptionCode.h" | 37 #include "core/dom/ExceptionCode.h" |
| 39 #include "core/dom/MessageChannel.h" | 38 #include "core/dom/MessageChannel.h" |
| 40 #include "core/dom/MessagePort.h" | 39 #include "core/dom/MessagePort.h" |
| 41 #include "core/dom/ScriptExecutionContext.h" | 40 #include "core/dom/ScriptExecutionContext.h" |
| 42 #include "core/page/SecurityOrigin.h" | 41 #include "core/page/SecurityOrigin.h" |
| 43 #include "core/page/UseCounter.h" | 42 #include "core/page/UseCounter.h" |
| 44 #include "core/platform/KURL.h" | 43 #include "core/platform/KURL.h" |
| 44 #include "core/workers/SharedWorkerRepository.h" |
| 45 | 45 |
| 46 namespace WebCore { | 46 namespace WebCore { |
| 47 | 47 |
| 48 inline SharedWorker::SharedWorker(ScriptExecutionContext* context) | 48 inline SharedWorker::SharedWorker(ScriptExecutionContext* context) |
| 49 : AbstractWorker(context) | 49 : AbstractWorker(context) |
| 50 { | 50 { |
| 51 } | 51 } |
| 52 | 52 |
| 53 PassRefPtr<SharedWorker> SharedWorker::create(ScriptExecutionContext* context, c
onst String& url, const String& name, ExceptionCode& ec) | 53 PassRefPtr<SharedWorker> SharedWorker::create(ScriptExecutionContext* context, c
onst String& url, const String& name, ExceptionCode& ec) |
| 54 { | 54 { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 84 SharedWorker::~SharedWorker() | 84 SharedWorker::~SharedWorker() |
| 85 { | 85 { |
| 86 } | 86 } |
| 87 | 87 |
| 88 const AtomicString& SharedWorker::interfaceName() const | 88 const AtomicString& SharedWorker::interfaceName() const |
| 89 { | 89 { |
| 90 return eventNames().interfaceForSharedWorker; | 90 return eventNames().interfaceForSharedWorker; |
| 91 } | 91 } |
| 92 | 92 |
| 93 } // namespace WebCore | 93 } // namespace WebCore |
| OLD | NEW |