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

Side by Side Diff: third_party/WebKit/WebCore/workers/WorkerMessagingProxy.cpp

Issue 27157: Initial checkin of the out of process worker implementation.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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/worker/worker_thread.cc ('k') | webkit/glue/glue.vcproj » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * Copyright (C) 2009 Google Inc. All Rights Reserved. 3 * Copyright (C) 2009 Google Inc. All Rights Reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 virtual void performTask(ScriptExecutionContext*) 164 virtual void performTask(ScriptExecutionContext*)
165 { 165 {
166 m_messagingProxy->reportPendingActivityInternal(m_confirmingMessage, m_h asPendingActivity); 166 m_messagingProxy->reportPendingActivityInternal(m_confirmingMessage, m_h asPendingActivity);
167 } 167 }
168 168
169 WorkerMessagingProxy* m_messagingProxy; 169 WorkerMessagingProxy* m_messagingProxy;
170 bool m_confirmingMessage; 170 bool m_confirmingMessage;
171 bool m_hasPendingActivity; 171 bool m_hasPendingActivity;
172 }; 172 };
173 173
174
175 #if !PLATFORM(CHROMIUM) 174 #if !PLATFORM(CHROMIUM)
176 WorkerContextProxy* WorkerContextProxy::create(Worker* worker) 175 WorkerContextProxy* WorkerContextProxy::create(Worker* worker)
177 { 176 {
178 return new WorkerMessagingProxy(worker); 177 return new WorkerMessagingProxy(worker);
179 } 178 }
180 #endif 179 #endif
181 180
182 WorkerMessagingProxy::WorkerMessagingProxy(Worker* workerObject) 181 WorkerMessagingProxy::WorkerMessagingProxy(Worker* workerObject)
183 : m_scriptExecutionContext(workerObject->scriptExecutionContext()) 182 : m_scriptExecutionContext(workerObject->scriptExecutionContext())
184 , m_workerObject(workerObject) 183 , m_workerObject(workerObject)
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 } 333 }
335 334
336 bool WorkerMessagingProxy::hasPendingActivity() const 335 bool WorkerMessagingProxy::hasPendingActivity() const
337 { 336 {
338 return (m_unconfirmedMessageCount || m_workerThreadHadPendingActivity) && !m _askedToTerminate; 337 return (m_unconfirmedMessageCount || m_workerThreadHadPendingActivity) && !m _askedToTerminate;
339 } 338 }
340 339
341 } // namespace WebCore 340 } // namespace WebCore
342 341
343 #endif // ENABLE(WORKERS) 342 #endif // ENABLE(WORKERS)
OLDNEW
« no previous file with comments | « chrome/worker/worker_thread.cc ('k') | webkit/glue/glue.vcproj » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698