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 30 matching lines...) Expand all Loading... |
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), |
51 ActiveScriptWrappable(this), | 51 ActiveScriptWrappable<SharedWorker>(this), |
52 m_isBeingConnected(false) {} | 52 m_isBeingConnected(false) {} |
53 | 53 |
54 SharedWorker* SharedWorker::create(ExecutionContext* context, | 54 SharedWorker* SharedWorker::create(ExecutionContext* context, |
55 const String& url, | 55 const String& url, |
56 const String& name, | 56 const String& name, |
57 ExceptionState& exceptionState) { | 57 ExceptionState& exceptionState) { |
58 DCHECK(isMainThread()); | 58 DCHECK(isMainThread()); |
59 SECURITY_DCHECK(context->isDocument()); | 59 SECURITY_DCHECK(context->isDocument()); |
60 | 60 |
61 UseCounter::count(context, UseCounter::SharedWorkerStart); | 61 UseCounter::count(context, UseCounter::SharedWorkerStart); |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 return m_isBeingConnected; | 105 return m_isBeingConnected; |
106 } | 106 } |
107 | 107 |
108 DEFINE_TRACE(SharedWorker) { | 108 DEFINE_TRACE(SharedWorker) { |
109 visitor->trace(m_port); | 109 visitor->trace(m_port); |
110 AbstractWorker::trace(visitor); | 110 AbstractWorker::trace(visitor); |
111 Supplementable<SharedWorker>::trace(visitor); | 111 Supplementable<SharedWorker>::trace(visitor); |
112 } | 112 } |
113 | 113 |
114 } // namespace blink | 114 } // namespace blink |
OLD | NEW |