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

Side by Side Diff: Source/web/WebSharedWorkerImpl.cpp

Issue 19693006: Pass column as 4th argument to WorkerGlobalScope.onerror handler (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 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 | « Source/web/WebSharedWorkerImpl.h ('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 /* 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
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
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
OLDNEW
« no previous file with comments | « Source/web/WebSharedWorkerImpl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698