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

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: 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
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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 for (size_t i = 0; i < webChannels.size(); ++i) { 174 for (size_t i = 0; i < webChannels.size(); ++i) {
175 webChannels[i] = (*channels)[i]->channel()->webChannelRelease(); 175 webChannels[i] = (*channels)[i]->channel()->webChannelRelease();
176 webChannels[i]->setClient(0); 176 webChannels[i]->setClient(0);
177 } 177 }
178 178
179 thisPtr->client()->postMessageToWorkerObject(message, webChannels); 179 thisPtr->client()->postMessageToWorkerObject(message, webChannels);
180 } 180 }
181 181
182 void WebSharedWorkerImpl::postExceptionToWorkerObject(const String& errorMessage , 182 void WebSharedWorkerImpl::postExceptionToWorkerObject(const String& errorMessage ,
183 int lineNumber, 183 int lineNumber,
184 int columnNumber,
184 const String& sourceURL) 185 const String& sourceURL)
185 { 186 {
186 WebWorkerBase::dispatchTaskToMainThread( 187 WebWorkerBase::dispatchTaskToMainThread(
187 createCallbackTask(&postExceptionTask, AllowCrossThreadAccess(this), 188 createCallbackTask(&postExceptionTask, AllowCrossThreadAccess(this),
188 errorMessage, lineNumber, 189 errorMessage, lineNumber,
189 sourceURL)); 190 sourceURL));
190 } 191 }
191 192
192 void WebSharedWorkerImpl::postExceptionTask(ScriptExecutionContext* context, 193 void WebSharedWorkerImpl::postExceptionTask(ScriptExecutionContext* context,
193 WebSharedWorkerImpl* thisPtr, 194 WebSharedWorkerImpl* thisPtr,
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 workerThread()->runLoop().postTaskForMode(createCallbackTask(dispatchOnInspe ctorBackendTask, String(message)), WorkerDebuggerAgent::debuggerTaskMode); 443 workerThread()->runLoop().postTaskForMode(createCallbackTask(dispatchOnInspe ctorBackendTask, String(message)), WorkerDebuggerAgent::debuggerTaskMode);
443 WorkerDebuggerAgent::interruptAndDispatchInspectorCommands(workerThread()); 444 WorkerDebuggerAgent::interruptAndDispatchInspectorCommands(workerThread());
444 } 445 }
445 446
446 WebSharedWorker* WebSharedWorker::create(WebSharedWorkerClient* client) 447 WebSharedWorker* WebSharedWorker::create(WebSharedWorkerClient* client)
447 { 448 {
448 return new WebSharedWorkerImpl(client); 449 return new WebSharedWorkerImpl(client);
449 } 450 }
450 451
451 } // namespace WebKit 452 } // namespace WebKit
OLDNEW
« Source/core/dom/ErrorEvent.idl ('K') | « Source/web/WebSharedWorkerImpl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698