| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 PassOwnPtr<WebCore::MessagePortChannelArray>); | 74 PassOwnPtr<WebCore::MessagePortChannelArray>); |
| 75 virtual void postExceptionToWorkerObject( | 75 virtual void postExceptionToWorkerObject( |
| 76 const WTF::String&, int, const WTF::String&); | 76 const WTF::String&, int, const WTF::String&); |
| 77 virtual void postConsoleMessageToWorkerObject( | 77 virtual void postConsoleMessageToWorkerObject( |
| 78 WebCore::MessageSource, WebCore::MessageLevel, | 78 WebCore::MessageSource, WebCore::MessageLevel, |
| 79 const WTF::String&, int, const WTF::String&); | 79 const WTF::String&, int, const WTF::String&); |
| 80 virtual void postMessageToPageInspector(const WTF::String&); | 80 virtual void postMessageToPageInspector(const WTF::String&); |
| 81 virtual void updateInspectorStateCookie(const WTF::String&); | 81 virtual void updateInspectorStateCookie(const WTF::String&); |
| 82 virtual void confirmMessageFromWorkerObject(bool); | 82 virtual void confirmMessageFromWorkerObject(bool); |
| 83 virtual void reportPendingActivity(bool); | 83 virtual void reportPendingActivity(bool); |
| 84 virtual void workerContextClosed(); | 84 virtual void workerGlobalScopeClosed(); |
| 85 virtual void workerContextDestroyed(); | 85 virtual void workerGlobalScopeDestroyed(); |
| 86 virtual WebView* view() const { return m_webView; } | 86 virtual WebView* view() const { return m_webView; } |
| 87 | 87 |
| 88 // WebCore::WorkerLoaderProxy methods: | 88 // WebCore::WorkerLoaderProxy methods: |
| 89 virtual void postTaskToLoader(PassOwnPtr<WebCore::ScriptExecutionContext::Ta
sk>); | 89 virtual void postTaskToLoader(PassOwnPtr<WebCore::ScriptExecutionContext::Ta
sk>); |
| 90 virtual bool postTaskForModeToWorkerContext( | 90 virtual bool postTaskForModeToWorkerGlobalScope( |
| 91 PassOwnPtr<WebCore::ScriptExecutionContext::Task>, const WTF::String& mo
de); | 91 PassOwnPtr<WebCore::ScriptExecutionContext::Task>, const WTF::String& mo
de); |
| 92 virtual WebWorkerBase* toWebWorkerBase() OVERRIDE; | 92 virtual WebWorkerBase* toWebWorkerBase() OVERRIDE; |
| 93 | 93 |
| 94 // WebFrameClient methods to support resource loading thru the 'shadow page'
. | 94 // WebFrameClient methods to support resource loading thru the 'shadow page'
. |
| 95 virtual void didCreateDataSource(WebFrame*, WebDataSource*); | 95 virtual void didCreateDataSource(WebFrame*, WebDataSource*); |
| 96 virtual WebApplicationCacheHost* createApplicationCacheHost(WebFrame*, WebAp
plicationCacheHostClient*); | 96 virtual WebApplicationCacheHost* createApplicationCacheHost(WebFrame*, WebAp
plicationCacheHostClient*); |
| 97 | 97 |
| 98 | 98 |
| 99 // WebSharedWorker methods: | 99 // WebSharedWorker methods: |
| 100 virtual bool isStarted(); | 100 virtual bool isStarted(); |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 static void postMessageToPageInspectorTask(WebCore::ScriptExecutionContext*,
WebSharedWorkerImpl*, const WTF::String&); | 156 static void postMessageToPageInspectorTask(WebCore::ScriptExecutionContext*,
WebSharedWorkerImpl*, const WTF::String&); |
| 157 static void updateInspectorStateCookieTask(WebCore::ScriptExecutionContext*,
WebSharedWorkerImpl* thisPtr, const WTF::String& cookie); | 157 static void updateInspectorStateCookieTask(WebCore::ScriptExecutionContext*,
WebSharedWorkerImpl* thisPtr, const WTF::String& cookie); |
| 158 static void confirmMessageTask( | 158 static void confirmMessageTask( |
| 159 WebCore::ScriptExecutionContext*, | 159 WebCore::ScriptExecutionContext*, |
| 160 WebSharedWorkerImpl* thisPtr, | 160 WebSharedWorkerImpl* thisPtr, |
| 161 bool hasPendingActivity); | 161 bool hasPendingActivity); |
| 162 static void reportPendingActivityTask( | 162 static void reportPendingActivityTask( |
| 163 WebCore::ScriptExecutionContext*, | 163 WebCore::ScriptExecutionContext*, |
| 164 WebSharedWorkerImpl* thisPtr, | 164 WebSharedWorkerImpl* thisPtr, |
| 165 bool hasPendingActivity); | 165 bool hasPendingActivity); |
| 166 static void workerContextClosedTask( | 166 static void workerGlobalScopeClosedTask( |
| 167 WebCore::ScriptExecutionContext*, | 167 WebCore::ScriptExecutionContext*, |
| 168 WebSharedWorkerImpl* thisPtr); | 168 WebSharedWorkerImpl* thisPtr); |
| 169 static void workerContextDestroyedTask( | 169 static void workerGlobalScopeDestroyedTask( |
| 170 WebCore::ScriptExecutionContext*, | 170 WebCore::ScriptExecutionContext*, |
| 171 WebSharedWorkerImpl* thisPtr); | 171 WebSharedWorkerImpl* thisPtr); |
| 172 | 172 |
| 173 // 'shadow page' - created to proxy loading requests from the worker. | 173 // 'shadow page' - created to proxy loading requests from the worker. |
| 174 RefPtr<WebCore::ScriptExecutionContext> m_loadingDocument; | 174 RefPtr<WebCore::ScriptExecutionContext> m_loadingDocument; |
| 175 WebView* m_webView; | 175 WebView* m_webView; |
| 176 bool m_askedToTerminate; | 176 bool m_askedToTerminate; |
| 177 | 177 |
| 178 RefPtr<WebCore::WorkerThread> m_workerThread; | 178 RefPtr<WebCore::WorkerThread> m_workerThread; |
| 179 | 179 |
| 180 WebSharedWorkerClient* m_client; | 180 WebSharedWorkerClient* m_client; |
| 181 bool m_pauseWorkerContextOnStart; | 181 bool m_pauseWorkerContextOnStart; |
| 182 }; | 182 }; |
| 183 | 183 |
| 184 } // namespace WebKit | 184 } // namespace WebKit |
| 185 | 185 |
| 186 #endif | 186 #endif |
| OLD | NEW |