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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 WorkerLocation* location() const; | 96 WorkerLocation* location() const; |
97 void close(); | 97 void close(); |
98 | 98 |
99 DEFINE_ATTRIBUTE_EVENT_LISTENER(error); | 99 DEFINE_ATTRIBUTE_EVENT_LISTENER(error); |
100 DEFINE_ATTRIBUTE_EVENT_LISTENER(rejectionhandled); | 100 DEFINE_ATTRIBUTE_EVENT_LISTENER(rejectionhandled); |
101 DEFINE_ATTRIBUTE_EVENT_LISTENER(unhandledrejection); | 101 DEFINE_ATTRIBUTE_EVENT_LISTENER(unhandledrejection); |
102 | 102 |
103 // WorkerUtils | 103 // WorkerUtils |
104 virtual void importScripts(const Vector<String>& urls, ExceptionState&); | 104 virtual void importScripts(const Vector<String>& urls, ExceptionState&); |
105 // Returns null if caching is not supported. | 105 // Returns null if caching is not supported. |
106 virtual PassOwnPtr<CachedMetadataHandler> createWorkerScriptCachedMetadataHa
ndler(const KURL& scriptURL, const Vector<char>* metaData) { return nullptr; } | 106 virtual PassOwnPtrWillBeRawPtr<CachedMetadataHandler> createWorkerScriptCach
edMetadataHandler(const KURL& scriptURL, const Vector<char>* metaData) { return
nullptr; } |
107 | 107 |
108 WorkerNavigator* navigator() const; | 108 WorkerNavigator* navigator() const; |
109 | 109 |
110 // ScriptWrappable | 110 // ScriptWrappable |
111 v8::Local<v8::Object> wrap(v8::Isolate*, v8::Local<v8::Object> creationConte
xt) final; | 111 v8::Local<v8::Object> wrap(v8::Isolate*, v8::Local<v8::Object> creationConte
xt) final; |
112 v8::Local<v8::Object> associateWithWrapper(v8::Isolate*, const WrapperTypeIn
fo*, v8::Local<v8::Object> wrapper) final; | 112 v8::Local<v8::Object> associateWithWrapper(v8::Isolate*, const WrapperTypeIn
fo*, v8::Local<v8::Object> wrapper) final; |
113 | 113 |
114 // ExecutionContextClient | 114 // ExecutionContextClient |
115 WorkerEventQueue* eventQueue() const final; | 115 WorkerEventQueue* eventQueue() const final; |
116 SecurityContext& securityContext() final { return *this; } | 116 SecurityContext& securityContext() final { return *this; } |
(...skipping 83 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 |