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

Side by Side Diff: webkit/glue/webworker_impl.h

Issue 151125: Fix the GC of workers. When Worker object is GC'ed in the renderer, we need t... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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 | « chrome/renderer/webworker_proxy.cc ('k') | webkit/glue/webworker_impl.cc » ('j') | 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_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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 bool has_pending_activity); 112 bool has_pending_activity);
113 static void WorkerContextDestroyedTask( 113 static void WorkerContextDestroyedTask(
114 WebCore::ScriptExecutionContext* context, 114 WebCore::ScriptExecutionContext* context,
115 WebWorkerImpl* this_ptr); 115 WebWorkerImpl* this_ptr);
116 116
117 WebKit::WebWorkerClient* client_; 117 WebKit::WebWorkerClient* client_;
118 118
119 // 'shadow page' - created to proxy loading requests from the worker. 119 // 'shadow page' - created to proxy loading requests from the worker.
120 WTF::RefPtr<WebCore::ScriptExecutionContext> loading_document_; 120 WTF::RefPtr<WebCore::ScriptExecutionContext> loading_document_;
121 WebView* web_view_; 121 WebView* web_view_;
122 bool asked_to_terminate_;
122 123
123 WTF::RefPtr<WebCore::WorkerThread> worker_thread_; 124 WTF::RefPtr<WebCore::WorkerThread> worker_thread_;
124 125
125 DISALLOW_COPY_AND_ASSIGN(WebWorkerImpl); 126 DISALLOW_COPY_AND_ASSIGN(WebWorkerImpl);
126 }; 127 };
127 128
128 #endif 129 #endif
129 130
130 #endif // WEBKIT_GLUE_WEBWORKER_IMPL_H_ 131 #endif // WEBKIT_GLUE_WEBWORKER_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/renderer/webworker_proxy.cc ('k') | webkit/glue/webworker_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698