| 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_TOOLS_TEST_SHELL_TEST_WEB_WORKER_H_ | 5 #ifndef WEBKIT_TOOLS_TEST_SHELL_TEST_WEB_WORKER_H_ |
| 6 #define WEBKIT_TOOLS_TEST_SHELL_TEST_WEB_WORKER_H_ | 6 #define WEBKIT_TOOLS_TEST_SHELL_TEST_WEB_WORKER_H_ |
| 7 | 7 |
| 8 #if ENABLE(WORKERS) | 8 #if ENABLE(WORKERS) |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 } | 35 } |
| 36 virtual void terminateWorkerContext() { | 36 virtual void terminateWorkerContext() { |
| 37 } | 37 } |
| 38 virtual void postMessageToWorkerContext( | 38 virtual void postMessageToWorkerContext( |
| 39 const WebKit::WebString& message, | 39 const WebKit::WebString& message, |
| 40 const WebKit::WebMessagePortChannelArray& channel) { | 40 const WebKit::WebMessagePortChannelArray& channel) { |
| 41 } | 41 } |
| 42 virtual void workerObjectDestroyed() { | 42 virtual void workerObjectDestroyed() { |
| 43 Release(); // Releases the reference held for worker object. | 43 Release(); // Releases the reference held for worker object. |
| 44 } | 44 } |
| 45 virtual void clientDestroyed() { |
| 46 } |
| 45 | 47 |
| 46 // WebWorkerClient methods: | 48 // WebWorkerClient methods: |
| 47 virtual void postMessageToWorkerObject( | 49 virtual void postMessageToWorkerObject( |
| 48 const WebKit::WebString& message, | 50 const WebKit::WebString& message, |
| 49 const WebKit::WebMessagePortChannelArray& channel) { | 51 const WebKit::WebMessagePortChannelArray& channel) { |
| 50 } | 52 } |
| 51 virtual void postExceptionToWorkerObject( | 53 virtual void postExceptionToWorkerObject( |
| 52 const WebKit::WebString& error_message, | 54 const WebKit::WebString& error_message, |
| 53 int line_number, | 55 int line_number, |
| 54 const WebKit::WebString& source_url) { | 56 const WebKit::WebString& source_url) { |
| (...skipping 19 matching lines...) Expand all Loading... |
| 74 return NULL; | 76 return NULL; |
| 75 } | 77 } |
| 76 | 78 |
| 77 private: | 79 private: |
| 78 DISALLOW_COPY_AND_ASSIGN(TestWebWorker); | 80 DISALLOW_COPY_AND_ASSIGN(TestWebWorker); |
| 79 }; | 81 }; |
| 80 | 82 |
| 81 #endif | 83 #endif |
| 82 | 84 |
| 83 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEB_WORKER_H_ | 85 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEB_WORKER_H_ |
| OLD | NEW |