| 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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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(PassRefPtrWillBeRawPtr<WebCore::Consol
eMessage> consoleError) |
| 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 Loading... |
| 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 |
| OLD | NEW |