OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008, 2009 Apple 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 virtual void trace(Visitor*) OVERRIDE; | 141 virtual void trace(Visitor*) OVERRIDE; |
142 | 142 |
143 protected: | 143 protected: |
144 WorkerGlobalScope(const KURL&, const String& userAgent, WorkerThread*, d
ouble timeOrigin, PassOwnPtrWillBeRawPtr<WorkerClients>); | 144 WorkerGlobalScope(const KURL&, const String& userAgent, WorkerThread*, d
ouble timeOrigin, PassOwnPtrWillBeRawPtr<WorkerClients>); |
145 void applyContentSecurityPolicyFromString(const String& contentSecurityP
olicy, ContentSecurityPolicyHeaderType); | 145 void applyContentSecurityPolicyFromString(const String& contentSecurityP
olicy, ContentSecurityPolicyHeaderType); |
146 | 146 |
147 virtual void logExceptionToConsole(const String& errorMessage, const Str
ing& sourceURL, int lineNumber, int columnNumber, PassRefPtr<ScriptCallStack>) O
VERRIDE; | 147 virtual void logExceptionToConsole(const String& errorMessage, const Str
ing& sourceURL, int lineNumber, int columnNumber, PassRefPtr<ScriptCallStack>) O
VERRIDE; |
148 void addMessageToWorkerConsole(MessageSource, MessageLevel, const String
& message, const String& sourceURL, unsigned lineNumber, PassRefPtr<ScriptCallSt
ack>, ScriptState*); | 148 void addMessageToWorkerConsole(MessageSource, MessageLevel, const String
& message, const String& sourceURL, unsigned lineNumber, PassRefPtr<ScriptCallSt
ack>, ScriptState*); |
149 | 149 |
150 private: | 150 private: |
| 151 #if !ENABLE(OILPAN) |
151 virtual void refExecutionContext() OVERRIDE FINAL { ref(); } | 152 virtual void refExecutionContext() OVERRIDE FINAL { ref(); } |
152 virtual void derefExecutionContext() OVERRIDE FINAL { deref(); } | 153 virtual void derefExecutionContext() OVERRIDE FINAL { deref(); } |
| 154 #endif |
153 | 155 |
154 virtual const KURL& virtualURL() const OVERRIDE FINAL; | 156 virtual const KURL& virtualURL() const OVERRIDE FINAL; |
155 virtual KURL virtualCompleteURL(const String&) const OVERRIDE FINAL; | 157 virtual KURL virtualCompleteURL(const String&) const OVERRIDE FINAL; |
156 | 158 |
157 virtual void reportBlockedScriptExecutionToInspector(const String& direc
tiveText) OVERRIDE FINAL; | 159 virtual void reportBlockedScriptExecutionToInspector(const String& direc
tiveText) OVERRIDE FINAL; |
158 virtual void addMessage(MessageSource, MessageLevel, const String& messa
ge, const String& sourceURL, unsigned lineNumber, ScriptState* = 0) OVERRIDE FIN
AL; | 160 virtual void addMessage(MessageSource, MessageLevel, const String& messa
ge, const String& sourceURL, unsigned lineNumber, ScriptState* = 0) OVERRIDE FIN
AL; |
159 | 161 |
160 virtual EventTarget* errorEventTarget() OVERRIDE FINAL; | 162 virtual EventTarget* errorEventTarget() OVERRIDE FINAL; |
161 virtual void didUpdateSecurityOrigin() OVERRIDE FINAL { } | 163 virtual void didUpdateSecurityOrigin() OVERRIDE FINAL { } |
162 | 164 |
(...skipping 16 matching lines...) Expand all Loading... |
179 | 181 |
180 double m_timeOrigin; | 182 double m_timeOrigin; |
181 TerminationObserver* m_terminationObserver; | 183 TerminationObserver* m_terminationObserver; |
182 }; | 184 }; |
183 | 185 |
184 DEFINE_TYPE_CASTS(WorkerGlobalScope, ExecutionContext, context, context->isWorke
rGlobalScope(), context.isWorkerGlobalScope()); | 186 DEFINE_TYPE_CASTS(WorkerGlobalScope, ExecutionContext, context, context->isWorke
rGlobalScope(), context.isWorkerGlobalScope()); |
185 | 187 |
186 } // namespace WebCore | 188 } // namespace WebCore |
187 | 189 |
188 #endif // WorkerGlobalScope_h | 190 #endif // WorkerGlobalScope_h |
OLD | NEW |