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

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

Issue 376213002: DevTools: Make FrameConsole methods accept ConsoleMessage objects. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@scriptFailedToParse
Patch Set: Created 6 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
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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 m_loadingDocument = toWebLocalFrameImpl(frame)->frame()->document(); 227 m_loadingDocument = toWebLocalFrameImpl(frame)->frame()->document();
228 m_mainScriptLoader->load( 228 m_mainScriptLoader->load(
229 m_loadingDocument.get(), 229 m_loadingDocument.get(),
230 m_url, 230 m_url,
231 bind(&WebSharedWorkerImpl::didReceiveScriptLoaderResponse, this), 231 bind(&WebSharedWorkerImpl::didReceiveScriptLoaderResponse, this),
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(PassRefPtr<WebCore::ConsoleMessage>)
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(MessageSource source, MessageLeve l level, const String& message, int lineNumber, const String& sourceURL)
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)
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 workerThread()->runLoop().postDebuggerTask(createCrossThreadTask(dispatchOnI nspectorBackendTask, String(message))); 446 workerThread()->runLoop().postDebuggerTask(createCrossThreadTask(dispatchOnI nspectorBackendTask, String(message)));
447 WorkerDebuggerAgent::interruptAndDispatchInspectorCommands(workerThread()); 447 WorkerDebuggerAgent::interruptAndDispatchInspectorCommands(workerThread());
448 } 448 }
449 449
450 WebSharedWorker* WebSharedWorker::create(WebSharedWorkerClient* client) 450 WebSharedWorker* WebSharedWorker::create(WebSharedWorkerClient* client)
451 { 451 {
452 return new WebSharedWorkerImpl(client); 452 return new WebSharedWorkerImpl(client);
453 } 453 }
454 454
455 } // namespace blink 455 } // namespace blink
OLDNEW
« Source/core/frame/csp/CSPDirectiveList.cpp ('K') | « Source/web/WebSharedWorkerImpl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698