Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(119)

Side by Side Diff: webkit/tools/test_shell/test_webworker_helper.h

Issue 66043: Make OSX TestShell able to run workers, using a new test_worker.dylib which i... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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__
OLDNEW
« no previous file with comments | « webkit/tools/test_shell/test_shell.gyp ('k') | webkit/tools/test_shell/test_webworker_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698