| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef WEBKIT_GLUE_WEBWORKER_IMPL_H_ | 5 #ifndef WEBKIT_GLUE_WEBWORKER_IMPL_H_ |
| 6 #define WEBKIT_GLUE_WEBWORKER_IMPL_H_ | 6 #define WEBKIT_GLUE_WEBWORKER_IMPL_H_ |
| 7 | 7 |
| 8 #include "webkit/api/public/WebWorker.h" | 8 #include "webkit/api/public/WebWorker.h" |
| 9 | 9 |
| 10 #if ENABLE(WORKERS) | 10 #if ENABLE(WORKERS) |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 virtual void postMessageToWorkerObject( | 38 virtual void postMessageToWorkerObject( |
| 39 const WebCore::String& message, | 39 const WebCore::String& message, |
| 40 WTF::PassOwnPtr<WebCore::MessagePortChannel> channel); | 40 WTF::PassOwnPtr<WebCore::MessagePortChannel> channel); |
| 41 virtual void postExceptionToWorkerObject( | 41 virtual void postExceptionToWorkerObject( |
| 42 const WebCore::String& error_message, | 42 const WebCore::String& error_message, |
| 43 int line_number, | 43 int line_number, |
| 44 const WebCore::String& source_url); | 44 const WebCore::String& source_url); |
| 45 virtual void postConsoleMessageToWorkerObject( | 45 virtual void postConsoleMessageToWorkerObject( |
| 46 WebCore::MessageDestination destination, | 46 WebCore::MessageDestination destination, |
| 47 WebCore::MessageSource source, | 47 WebCore::MessageSource source, |
| 48 WebCore::MessageType type, |
| 48 WebCore::MessageLevel level, | 49 WebCore::MessageLevel level, |
| 49 const WebCore::String& message, | 50 const WebCore::String& message, |
| 50 int line_number, | 51 int line_number, |
| 51 const WebCore::String& source_url); | 52 const WebCore::String& source_url); |
| 52 virtual void confirmMessageFromWorkerObject(bool has_pending_activity); | 53 virtual void confirmMessageFromWorkerObject(bool has_pending_activity); |
| 53 virtual void reportPendingActivity(bool has_pending_activity); | 54 virtual void reportPendingActivity(bool has_pending_activity); |
| 54 virtual void workerContextDestroyed(); | 55 virtual void workerContextDestroyed(); |
| 55 | 56 |
| 56 // WebCore::WorkerLoaderProxy methods: | 57 // WebCore::WorkerLoaderProxy methods: |
| 57 virtual void postTaskToLoader( | 58 virtual void postTaskToLoader( |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 WebCore::ScriptExecutionContext* context, | 98 WebCore::ScriptExecutionContext* context, |
| 98 WebWorkerImpl* this_ptr, | 99 WebWorkerImpl* this_ptr, |
| 99 const WebCore::String& error_message, | 100 const WebCore::String& error_message, |
| 100 int line_number, | 101 int line_number, |
| 101 const WebCore::String& source_url); | 102 const WebCore::String& source_url); |
| 102 static void PostConsoleMessageTask( | 103 static void PostConsoleMessageTask( |
| 103 WebCore::ScriptExecutionContext* context, | 104 WebCore::ScriptExecutionContext* context, |
| 104 WebWorkerImpl* this_ptr, | 105 WebWorkerImpl* this_ptr, |
| 105 int destination, | 106 int destination, |
| 106 int source, | 107 int source, |
| 108 int type, |
| 107 int level, | 109 int level, |
| 108 const WebCore::String& message, | 110 const WebCore::String& message, |
| 109 int line_number, | 111 int line_number, |
| 110 const WebCore::String& source_url); | 112 const WebCore::String& source_url); |
| 111 static void ConfirmMessageTask( | 113 static void ConfirmMessageTask( |
| 112 WebCore::ScriptExecutionContext* context, | 114 WebCore::ScriptExecutionContext* context, |
| 113 WebWorkerImpl* this_ptr, | 115 WebWorkerImpl* this_ptr, |
| 114 bool has_pending_activity); | 116 bool has_pending_activity); |
| 115 static void ReportPendingActivityTask( | 117 static void ReportPendingActivityTask( |
| 116 WebCore::ScriptExecutionContext* context, | 118 WebCore::ScriptExecutionContext* context, |
| (...skipping 11 matching lines...) Expand all Loading... |
| 128 bool asked_to_terminate_; | 130 bool asked_to_terminate_; |
| 129 | 131 |
| 130 WTF::RefPtr<WebCore::WorkerThread> worker_thread_; | 132 WTF::RefPtr<WebCore::WorkerThread> worker_thread_; |
| 131 | 133 |
| 132 DISALLOW_COPY_AND_ASSIGN(WebWorkerImpl); | 134 DISALLOW_COPY_AND_ASSIGN(WebWorkerImpl); |
| 133 }; | 135 }; |
| 134 | 136 |
| 135 #endif | 137 #endif |
| 136 | 138 |
| 137 #endif // WEBKIT_GLUE_WEBWORKER_IMPL_H_ | 139 #endif // WEBKIT_GLUE_WEBWORKER_IMPL_H_ |
| OLD | NEW |