| 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 29 matching lines...) Expand all Loading... |
| 40 #include "core/inspector/InspectorInstrumentation.h" | 40 #include "core/inspector/InspectorInstrumentation.h" |
| 41 #include "core/loader/FrameLoader.h" | 41 #include "core/loader/FrameLoader.h" |
| 42 #include "core/loader/FrameLoaderClient.h" | 42 #include "core/loader/FrameLoaderClient.h" |
| 43 #include "core/workers/SharedWorkerRepositoryClient.h" | 43 #include "core/workers/SharedWorkerRepositoryClient.h" |
| 44 #include "platform/weborigin/KURL.h" | 44 #include "platform/weborigin/KURL.h" |
| 45 #include "platform/weborigin/SecurityOrigin.h" | 45 #include "platform/weborigin/SecurityOrigin.h" |
| 46 | 46 |
| 47 namespace blink { | 47 namespace blink { |
| 48 | 48 |
| 49 inline SharedWorker::SharedWorker(ExecutionContext* context) | 49 inline SharedWorker::SharedWorker(ExecutionContext* context) |
| 50 : AbstractWorker(context), | 50 : AbstractWorker(context), m_isBeingConnected(false) {} |
| 51 m_isBeingConnected(false) {} | |
| 52 | 51 |
| 53 SharedWorker* SharedWorker::create(ExecutionContext* context, | 52 SharedWorker* SharedWorker::create(ExecutionContext* context, |
| 54 const String& url, | 53 const String& url, |
| 55 const String& name, | 54 const String& name, |
| 56 ExceptionState& exceptionState) { | 55 ExceptionState& exceptionState) { |
| 57 DCHECK(isMainThread()); | 56 DCHECK(isMainThread()); |
| 58 SECURITY_DCHECK(context->isDocument()); | 57 SECURITY_DCHECK(context->isDocument()); |
| 59 | 58 |
| 60 UseCounter::count(context, UseCounter::SharedWorkerStart); | 59 UseCounter::count(context, UseCounter::SharedWorkerStart); |
| 61 | 60 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 return m_isBeingConnected; | 101 return m_isBeingConnected; |
| 103 } | 102 } |
| 104 | 103 |
| 105 DEFINE_TRACE(SharedWorker) { | 104 DEFINE_TRACE(SharedWorker) { |
| 106 visitor->trace(m_port); | 105 visitor->trace(m_port); |
| 107 AbstractWorker::trace(visitor); | 106 AbstractWorker::trace(visitor); |
| 108 Supplementable<SharedWorker>::trace(visitor); | 107 Supplementable<SharedWorker>::trace(visitor); |
| 109 } | 108 } |
| 110 | 109 |
| 111 } // namespace blink | 110 } // namespace blink |
| OLD | NEW |