| 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 using SecurityContext::securityOrigin; | 132 using SecurityContext::securityOrigin; |
| 133 using SecurityContext::contentSecurityPolicy; | 133 using SecurityContext::contentSecurityPolicy; |
| 134 | 134 |
| 135 void addConsoleMessage(PassRefPtrWillBeRawPtr<ConsoleMessage>) final; | 135 void addConsoleMessage(PassRefPtrWillBeRawPtr<ConsoleMessage>) final; |
| 136 ConsoleMessageStorage* messageStorage(); | 136 ConsoleMessageStorage* messageStorage(); |
| 137 | 137 |
| 138 void exceptionHandled(int exceptionId, bool isHandled); | 138 void exceptionHandled(int exceptionId, bool isHandled); |
| 139 | 139 |
| 140 virtual void scriptLoaded(size_t scriptSize, size_t cachedMetadataSize) { } | 140 virtual void scriptLoaded(size_t scriptSize, size_t cachedMetadataSize) { } |
| 141 | 141 |
| 142 bool isPrivilegedContext(String& errorMessage, const PrivilegeContextCheck =
StandardPrivilegeCheck) const override; | 142 bool isSecureContext(String& errorMessage, const SecureContextCheck = Standa
rdSecureContextCheck) const override; |
| 143 | 143 |
| 144 DECLARE_VIRTUAL_TRACE(); | 144 DECLARE_VIRTUAL_TRACE(); |
| 145 | 145 |
| 146 protected: | 146 protected: |
| 147 WorkerGlobalScope(const KURL&, const String& userAgent, WorkerThread*, doubl
e timeOrigin, PassOwnPtr<SecurityOrigin::PrivilegeData>, PassOwnPtrWillBeRawPtr<
WorkerClients>); | 147 WorkerGlobalScope(const KURL&, const String& userAgent, WorkerThread*, doubl
e timeOrigin, PassOwnPtr<SecurityOrigin::PrivilegeData>, PassOwnPtrWillBeRawPtr<
WorkerClients>); |
| 148 void applyContentSecurityPolicyFromVector(const Vector<CSPHeaderAndType>& he
aders); | 148 void applyContentSecurityPolicyFromVector(const Vector<CSPHeaderAndType>& he
aders); |
| 149 | 149 |
| 150 void logExceptionToConsole(const String& errorMessage, int scriptId, const S
tring& sourceURL, int lineNumber, int columnNumber, PassRefPtrWillBeRawPtr<Scrip
tCallStack>) override; | 150 void logExceptionToConsole(const String& errorMessage, int scriptId, const S
tring& sourceURL, int lineNumber, int columnNumber, PassRefPtrWillBeRawPtr<Scrip
tCallStack>) override; |
| 151 void addMessageToWorkerConsole(PassRefPtrWillBeRawPtr<ConsoleMessage>); | 151 void addMessageToWorkerConsole(PassRefPtrWillBeRawPtr<ConsoleMessage>); |
| 152 void setV8CacheOptions(V8CacheOptions v8CacheOptions) { m_v8CacheOptions = v
8CacheOptions; } | 152 void setV8CacheOptions(V8CacheOptions v8CacheOptions) { m_v8CacheOptions = v
8CacheOptions; } |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 | 200 |
| 201 unsigned long m_workerExceptionUniqueIdentifier; | 201 unsigned long m_workerExceptionUniqueIdentifier; |
| 202 WillBeHeapHashMap<unsigned long, RefPtrWillBeMember<ConsoleMessage>> m_pendi
ngMessages; | 202 WillBeHeapHashMap<unsigned long, RefPtrWillBeMember<ConsoleMessage>> m_pendi
ngMessages; |
| 203 }; | 203 }; |
| 204 | 204 |
| 205 DEFINE_TYPE_CASTS(WorkerGlobalScope, ExecutionContext, context, context->isWorke
rGlobalScope(), context.isWorkerGlobalScope()); | 205 DEFINE_TYPE_CASTS(WorkerGlobalScope, ExecutionContext, context, context->isWorke
rGlobalScope(), context.isWorkerGlobalScope()); |
| 206 | 206 |
| 207 } // namespace blink | 207 } // namespace blink |
| 208 | 208 |
| 209 #endif // WorkerGlobalScope_h | 209 #endif // WorkerGlobalScope_h |
| OLD | NEW |