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

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

Issue 419203004: DevTools: wrapping arguments addConsoleMessage in ConsoleMessage (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@wrap-not-all-console-args
Patch Set: Created 6 years, 4 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
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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 bind(&WebSharedWorkerImpl::onScriptLoaderFinished, this)); 232 bind(&WebSharedWorkerImpl::onScriptLoaderFinished, this));
233 } 233 }
234 234
235 // WorkerReportingProxy -------------------------------------------------------- 235 // WorkerReportingProxy --------------------------------------------------------
236 236
237 void WebSharedWorkerImpl::reportException(const String& errorMessage, int lineNu mber, int columnNumber, const String& sourceURL) 237 void WebSharedWorkerImpl::reportException(const String& errorMessage, int lineNu mber, int columnNumber, const String& sourceURL)
238 { 238 {
239 // Not suppported in SharedWorker. 239 // Not suppported in SharedWorker.
240 } 240 }
241 241
242 void WebSharedWorkerImpl::reportConsoleMessage(MessageSource source, MessageLeve l level, const String& message, int lineNumber, const String& sourceURL) 242 void WebSharedWorkerImpl::reportConsoleMessage(PassRefPtr<blink::ConsoleMessage> )
243 { 243 {
244 // Not supported in SharedWorker. 244 // Not supported in SharedWorker.
245 } 245 }
246 246
247 void WebSharedWorkerImpl::postMessageToPageInspector(const String& message) 247 void WebSharedWorkerImpl::postMessageToPageInspector(const String& message)
248 { 248 {
249 // Note that we need to keep the closure creation on a separate line so 249 // Note that we need to keep the closure creation on a separate line so
250 // that the temporary created by isolatedCopy() will always be destroyed 250 // that the temporary created by isolatedCopy() will always be destroyed
251 // before the copy in the closure is used on the main thread. 251 // before the copy in the closure is used on the main thread.
252 const Closure& boundFunction = bind(&WebSharedWorkerClient::dispatchDevTools Message, m_clientWeakPtr, message.isolatedCopy()); 252 const Closure& boundFunction = bind(&WebSharedWorkerClient::dispatchDevTools Message, m_clientWeakPtr, message.isolatedCopy());
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 workerThread()->postDebuggerTask(createCrossThreadTask(dispatchOnInspectorBa ckendTask, String(message))); 448 workerThread()->postDebuggerTask(createCrossThreadTask(dispatchOnInspectorBa ckendTask, String(message)));
449 workerThread()->interruptAndDispatchInspectorCommands(); 449 workerThread()->interruptAndDispatchInspectorCommands();
450 } 450 }
451 451
452 WebSharedWorker* WebSharedWorker::create(WebSharedWorkerClient* client) 452 WebSharedWorker* WebSharedWorker::create(WebSharedWorkerClient* client)
453 { 453 {
454 return new WebSharedWorkerImpl(client); 454 return new WebSharedWorkerImpl(client);
455 } 455 }
456 456
457 } // namespace blink 457 } // namespace blink
OLDNEW
« Source/web/WebSharedWorkerImpl.h ('K') | « Source/web/WebSharedWorkerImpl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698