| 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) | |
| 152 virtual void refExecutionContext() OVERRIDE FINAL { ref(); } | 151 virtual void refExecutionContext() OVERRIDE FINAL { ref(); } |
| 153 virtual void derefExecutionContext() OVERRIDE FINAL { deref(); } | 152 virtual void derefExecutionContext() OVERRIDE FINAL { deref(); } |
| 154 #endif | |
| 155 | 153 |
| 156 virtual const KURL& virtualURL() const OVERRIDE FINAL; | 154 virtual const KURL& virtualURL() const OVERRIDE FINAL; |
| 157 virtual KURL virtualCompleteURL(const String&) const OVERRIDE FINAL; | 155 virtual KURL virtualCompleteURL(const String&) const OVERRIDE FINAL; |
| 158 | 156 |
| 159 virtual void reportBlockedScriptExecutionToInspector(const String& direc
tiveText) OVERRIDE FINAL; | 157 virtual void reportBlockedScriptExecutionToInspector(const String& direc
tiveText) OVERRIDE FINAL; |
| 160 virtual void addMessage(MessageSource, MessageLevel, const String& messa
ge, const String& sourceURL, unsigned lineNumber, ScriptState* = 0) OVERRIDE FIN
AL; | 158 virtual void addMessage(MessageSource, MessageLevel, const String& messa
ge, const String& sourceURL, unsigned lineNumber, ScriptState* = 0) OVERRIDE FIN
AL; |
| 161 | 159 |
| 162 virtual EventTarget* errorEventTarget() OVERRIDE FINAL; | 160 virtual EventTarget* errorEventTarget() OVERRIDE FINAL; |
| 163 virtual void didUpdateSecurityOrigin() OVERRIDE FINAL { } | 161 virtual void didUpdateSecurityOrigin() OVERRIDE FINAL { } |
| 164 | 162 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 181 | 179 |
| 182 double m_timeOrigin; | 180 double m_timeOrigin; |
| 183 TerminationObserver* m_terminationObserver; | 181 TerminationObserver* m_terminationObserver; |
| 184 }; | 182 }; |
| 185 | 183 |
| 186 DEFINE_TYPE_CASTS(WorkerGlobalScope, ExecutionContext, context, context->isWorke
rGlobalScope(), context.isWorkerGlobalScope()); | 184 DEFINE_TYPE_CASTS(WorkerGlobalScope, ExecutionContext, context, context->isWorke
rGlobalScope(), context.isWorkerGlobalScope()); |
| 187 | 185 |
| 188 } // namespace WebCore | 186 } // namespace WebCore |
| 189 | 187 |
| 190 #endif // WorkerGlobalScope_h | 188 #endif // WorkerGlobalScope_h |
| OLD | NEW |