| 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_WEBWORKER_HELPER_H__ | 5 #ifndef WEBKIT_TOOLS_TEST_SHELL_TEST_WEBWORKER_HELPER_H__ |
| 6 #define WEBKIT_TOOLS_TEST_SHELL_TEST_WEBWORKER_HELPER_H__ | 6 #define WEBKIT_TOOLS_TEST_SHELL_TEST_WEBWORKER_HELPER_H__ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 #if defined(OS_WIN) | 9 #if defined(OS_WIN) |
| 10 #include <windows.h> | 10 #include <windows.h> |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 TestWebWorkerHelper(); | 31 TestWebWorkerHelper(); |
| 32 ~TestWebWorkerHelper(); | 32 ~TestWebWorkerHelper(); |
| 33 | 33 |
| 34 virtual bool IsMainThread() const; | 34 virtual bool IsMainThread() const; |
| 35 virtual void DispatchToMainThread(WTF::MainThreadFunction* func, | 35 virtual void DispatchToMainThread(WTF::MainThreadFunction* func, |
| 36 void* context); | 36 void* context); |
| 37 virtual void Unload(); | 37 virtual void Unload(); |
| 38 | 38 |
| 39 private: | 39 private: |
| 40 bool Load(); | 40 void Load(); |
| 41 static void UnloadHelper(void* param); | 41 static void UnloadHelper(void* param); |
| 42 | 42 |
| 43 #if defined(OS_WIN) | 43 #if defined(OS_WIN) |
| 44 // TODO(port): Remove ifdefs when we have portable replacement for HMODULE. | 44 // TODO(port): Remove ifdefs when we have portable replacement for HMODULE. |
| 45 HMODULE module_; | 45 HMODULE module_; |
| 46 #endif // defined(OS_WIN) | 46 #elif defined(OS_MACOSX) |
| 47 void* module_; |
| 48 #endif |
| 47 | 49 |
| 48 CreateWebWorkerFunc CreateWebWorker_; | 50 CreateWebWorkerFunc CreateWebWorker_; |
| 49 | 51 |
| 50 DISALLOW_COPY_AND_ASSIGN(TestWebWorkerHelper); | 52 DISALLOW_COPY_AND_ASSIGN(TestWebWorkerHelper); |
| 51 }; | 53 }; |
| 52 | 54 |
| 53 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBWORKER_HELPER_H__ | 55 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBWORKER_HELPER_H__ |
| OLD | NEW |