| 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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |