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

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

Issue 266036: Fix another race condition on worker process shutdown that results in use-aft... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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
« no previous file with comments | « webkit/glue/webworker_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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
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
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_
OLDNEW
« no previous file with comments | « webkit/glue/webworker_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698