| 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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 loadShadowPage(); | 217 loadShadowPage(); |
| 218 } | 218 } |
| 219 | 219 |
| 220 WebDevToolsAgentClient::WebKitClientMessageLoop* | 220 WebDevToolsAgentClient::WebKitClientMessageLoop* |
| 221 WebSharedWorkerImpl::createClientMessageLoop() { | 221 WebSharedWorkerImpl::createClientMessageLoop() { |
| 222 return m_client->createDevToolsMessageLoop(); | 222 return m_client->createDevToolsMessageLoop(); |
| 223 } | 223 } |
| 224 | 224 |
| 225 // WorkerReportingProxy -------------------------------------------------------- | 225 // WorkerReportingProxy -------------------------------------------------------- |
| 226 | 226 |
| 227 void WebSharedWorkerImpl::countFeature(UseCounter::Feature) { |
| 228 // TODO(nhiroki): Support UseCounter for SharedWorker. Send an IPC message to |
| 229 // the browser process and ask each connected document to record API use in |
| 230 // its UseCounter (https://crbug.com/376039). |
| 231 } |
| 232 |
| 233 void WebSharedWorkerImpl::countDeprecation(UseCounter::Feature) { |
| 234 // TODO(nhiroki): Support UseCounter for SharedWorker. Send an IPC message to |
| 235 // the browser process and ask each connected document to record API use in |
| 236 // its UseCounter (https://crbug.com/376039). |
| 237 } |
| 238 |
| 227 void WebSharedWorkerImpl::reportException(const String& errorMessage, | 239 void WebSharedWorkerImpl::reportException(const String& errorMessage, |
| 228 std::unique_ptr<SourceLocation>, | 240 std::unique_ptr<SourceLocation>, |
| 229 int exceptionId) { | 241 int exceptionId) { |
| 230 // Not suppported in SharedWorker. | 242 // Not suppported in SharedWorker. |
| 231 } | 243 } |
| 232 | 244 |
| 233 void WebSharedWorkerImpl::reportConsoleMessage(MessageSource, | 245 void WebSharedWorkerImpl::reportConsoleMessage(MessageSource, |
| 234 MessageLevel, | 246 MessageLevel, |
| 235 const String& message, | 247 const String& message, |
| 236 SourceLocation*) { | 248 SourceLocation*) { |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 448 if (devtoolsAgent) | 460 if (devtoolsAgent) |
| 449 devtoolsAgent->dispatchOnInspectorBackend(sessionId, callId, method, | 461 devtoolsAgent->dispatchOnInspectorBackend(sessionId, callId, method, |
| 450 message); | 462 message); |
| 451 } | 463 } |
| 452 | 464 |
| 453 WebSharedWorker* WebSharedWorker::create(WebSharedWorkerClient* client) { | 465 WebSharedWorker* WebSharedWorker::create(WebSharedWorkerClient* client) { |
| 454 return new WebSharedWorkerImpl(client); | 466 return new WebSharedWorkerImpl(client); |
| 455 } | 467 } |
| 456 | 468 |
| 457 } // namespace blink | 469 } // namespace blink |
| OLD | NEW |