| 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 16 matching lines...) Expand all Loading... |
| 27 // WebCore::WorkerObjectProxy, this class will conver to Chrome data types first | 27 // WebCore::WorkerObjectProxy, this class will conver to Chrome data types first |
| 28 // and then call the supplied WebWorkerClient. | 28 // and then call the supplied WebWorkerClient. |
| 29 class WebWorkerImpl: public WebCore::WorkerObjectProxy, | 29 class WebWorkerImpl: public WebCore::WorkerObjectProxy, |
| 30 public WebCore::WorkerLoaderProxy, | 30 public WebCore::WorkerLoaderProxy, |
| 31 public WebKit::WebWorker { | 31 public WebKit::WebWorker { |
| 32 public: | 32 public: |
| 33 explicit WebWorkerImpl(WebKit::WebWorkerClient* client); | 33 explicit WebWorkerImpl(WebKit::WebWorkerClient* client); |
| 34 | 34 |
| 35 // WebCore::WorkerObjectProxy methods: | 35 // WebCore::WorkerObjectProxy methods: |
| 36 virtual void postMessageToWorkerObject( | 36 virtual void postMessageToWorkerObject( |
| 37 const WebCore::String& message, | 37 WTF::PassRefPtr<WebCore::SerializedScriptValue> message, |
| 38 WTF::PassOwnPtr<WebCore::MessagePortChannelArray> channels); | 38 WTF::PassOwnPtr<WebCore::MessagePortChannelArray> channels); |
| 39 virtual void postExceptionToWorkerObject( | 39 virtual void postExceptionToWorkerObject( |
| 40 const WebCore::String& error_message, | 40 const WebCore::String& error_message, |
| 41 int line_number, | 41 int line_number, |
| 42 const WebCore::String& source_url); | 42 const WebCore::String& source_url); |
| 43 virtual void postConsoleMessageToWorkerObject( | 43 virtual void postConsoleMessageToWorkerObject( |
| 44 WebCore::MessageDestination destination, | 44 WebCore::MessageDestination destination, |
| 45 WebCore::MessageSource source, | 45 WebCore::MessageSource source, |
| 46 WebCore::MessageType type, | 46 WebCore::MessageType type, |
| 47 WebCore::MessageLevel level, | 47 WebCore::MessageLevel level, |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 bool asked_to_terminate_; | 130 bool asked_to_terminate_; |
| 131 | 131 |
| 132 WTF::RefPtr<WebCore::WorkerThread> worker_thread_; | 132 WTF::RefPtr<WebCore::WorkerThread> worker_thread_; |
| 133 | 133 |
| 134 DISALLOW_COPY_AND_ASSIGN(WebWorkerImpl); | 134 DISALLOW_COPY_AND_ASSIGN(WebWorkerImpl); |
| 135 }; | 135 }; |
| 136 | 136 |
| 137 #endif | 137 #endif |
| 138 | 138 |
| 139 #endif // WEBKIT_GLUE_WEBWORKER_IMPL_H_ | 139 #endif // WEBKIT_GLUE_WEBWORKER_IMPL_H_ |
| OLD | NEW |