| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 for (size_t i = 0; i < webChannels.size(); ++i) { | 175 for (size_t i = 0; i < webChannels.size(); ++i) { |
| 176 webChannels[i] = (*channels)[i]->channel()->webChannelRelease(); | 176 webChannels[i] = (*channels)[i]->channel()->webChannelRelease(); |
| 177 webChannels[i]->setClient(0); | 177 webChannels[i]->setClient(0); |
| 178 } | 178 } |
| 179 | 179 |
| 180 thisPtr->client()->postMessageToWorkerObject(message, webChannels); | 180 thisPtr->client()->postMessageToWorkerObject(message, webChannels); |
| 181 } | 181 } |
| 182 | 182 |
| 183 void WebSharedWorkerImpl::postExceptionToWorkerObject(const String& errorMessage
, | 183 void WebSharedWorkerImpl::postExceptionToWorkerObject(const String& errorMessage
, |
| 184 int lineNumber, | 184 int lineNumber, |
| 185 int columnNumber, |
| 185 const String& sourceURL) | 186 const String& sourceURL) |
| 186 { | 187 { |
| 187 WebWorkerBase::dispatchTaskToMainThread( | 188 WebWorkerBase::dispatchTaskToMainThread( |
| 188 createCallbackTask(&postExceptionTask, AllowCrossThreadAccess(this), | 189 createCallbackTask(&postExceptionTask, AllowCrossThreadAccess(this), |
| 189 errorMessage, lineNumber, | 190 errorMessage, lineNumber, |
| 190 sourceURL)); | 191 sourceURL)); |
| 191 } | 192 } |
| 192 | 193 |
| 193 void WebSharedWorkerImpl::postExceptionTask(ScriptExecutionContext* context, | 194 void WebSharedWorkerImpl::postExceptionTask(ScriptExecutionContext* context, |
| 194 WebSharedWorkerImpl* thisPtr, | 195 WebSharedWorkerImpl* thisPtr, |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 441 workerThread()->runLoop().postTaskForMode(createCallbackTask(dispatchOnInspe
ctorBackendTask, String(message)), WorkerDebuggerAgent::debuggerTaskMode); | 442 workerThread()->runLoop().postTaskForMode(createCallbackTask(dispatchOnInspe
ctorBackendTask, String(message)), WorkerDebuggerAgent::debuggerTaskMode); |
| 442 WorkerDebuggerAgent::interruptAndDispatchInspectorCommands(workerThread()); | 443 WorkerDebuggerAgent::interruptAndDispatchInspectorCommands(workerThread()); |
| 443 } | 444 } |
| 444 | 445 |
| 445 WebSharedWorker* WebSharedWorker::create(WebSharedWorkerClient* client) | 446 WebSharedWorker* WebSharedWorker::create(WebSharedWorkerClient* client) |
| 446 { | 447 { |
| 447 return new WebSharedWorkerImpl(client); | 448 return new WebSharedWorkerImpl(client); |
| 448 } | 449 } |
| 449 | 450 |
| 450 } // namespace WebKit | 451 } // namespace WebKit |
| OLD | NEW |