| 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 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 | 285 |
| 286 void WebSharedWorkerImpl::postMessageToPageInspectorOnMainThread(const String& m
essage) | 286 void WebSharedWorkerImpl::postMessageToPageInspectorOnMainThread(const String& m
essage) |
| 287 { | 287 { |
| 288 WorkerInspectorProxy::PageInspector* pageInspector = m_workerInspectorProxy-
>pageInspector(); | 288 WorkerInspectorProxy::PageInspector* pageInspector = m_workerInspectorProxy-
>pageInspector(); |
| 289 if (!pageInspector) | 289 if (!pageInspector) |
| 290 return; | 290 return; |
| 291 pageInspector->dispatchMessageFromWorker(message); | 291 pageInspector->dispatchMessageFromWorker(message); |
| 292 | 292 |
| 293 } | 293 } |
| 294 | 294 |
| 295 void WebSharedWorkerImpl::updateInspectorStateCookie(const String& cookie) | |
| 296 { | |
| 297 } | |
| 298 | |
| 299 void WebSharedWorkerImpl::workerGlobalScopeClosed() | 295 void WebSharedWorkerImpl::workerGlobalScopeClosed() |
| 300 { | 296 { |
| 301 callOnMainThread(bind(&WebSharedWorkerImpl::workerGlobalScopeClosedOnMainThr
ead, this)); | 297 callOnMainThread(bind(&WebSharedWorkerImpl::workerGlobalScopeClosedOnMainThr
ead, this)); |
| 302 } | 298 } |
| 303 | 299 |
| 304 void WebSharedWorkerImpl::workerGlobalScopeClosedOnMainThread() | 300 void WebSharedWorkerImpl::workerGlobalScopeClosedOnMainThread() |
| 305 { | 301 { |
| 306 if (client()) | 302 if (client()) |
| 307 client()->workerContextClosed(); | 303 client()->workerContextClosed(); |
| 308 | 304 |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 419 void WebSharedWorkerImpl::clientDestroyed() | 415 void WebSharedWorkerImpl::clientDestroyed() |
| 420 { | 416 { |
| 421 m_client.clear(); | 417 m_client.clear(); |
| 422 } | 418 } |
| 423 | 419 |
| 424 void WebSharedWorkerImpl::pauseWorkerContextOnStart() | 420 void WebSharedWorkerImpl::pauseWorkerContextOnStart() |
| 425 { | 421 { |
| 426 m_pauseWorkerContextOnStart = true; | 422 m_pauseWorkerContextOnStart = true; |
| 427 } | 423 } |
| 428 | 424 |
| 429 void WebSharedWorkerImpl::resumeWorkerContext() | |
| 430 { | |
| 431 } | |
| 432 | |
| 433 void WebSharedWorkerImpl::attachDevTools(const WebString& hostId) | 425 void WebSharedWorkerImpl::attachDevTools(const WebString& hostId) |
| 434 { | 426 { |
| 435 WebDevToolsAgent* devtoolsAgent = m_webView->devToolsAgent(); | 427 WebDevToolsAgent* devtoolsAgent = m_webView->devToolsAgent(); |
| 436 if (devtoolsAgent) | 428 if (devtoolsAgent) |
| 437 devtoolsAgent->attach(hostId); | 429 devtoolsAgent->attach(hostId); |
| 438 } | 430 } |
| 439 | 431 |
| 440 void WebSharedWorkerImpl::reattachDevTools(const WebString& hostId, const WebStr
ing& savedState) | 432 void WebSharedWorkerImpl::reattachDevTools(const WebString& hostId, const WebStr
ing& savedState) |
| 441 { | 433 { |
| 442 WebDevToolsAgent* devtoolsAgent = m_webView->devToolsAgent(); | 434 WebDevToolsAgent* devtoolsAgent = m_webView->devToolsAgent(); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 460 if (devtoolsAgent) | 452 if (devtoolsAgent) |
| 461 devtoolsAgent->dispatchOnInspectorBackend(message); | 453 devtoolsAgent->dispatchOnInspectorBackend(message); |
| 462 } | 454 } |
| 463 | 455 |
| 464 WebSharedWorker* WebSharedWorker::create(WebSharedWorkerClient* client) | 456 WebSharedWorker* WebSharedWorker::create(WebSharedWorkerClient* client) |
| 465 { | 457 { |
| 466 return new WebSharedWorkerImpl(client); | 458 return new WebSharedWorkerImpl(client); |
| 467 } | 459 } |
| 468 | 460 |
| 469 } // namespace blink | 461 } // namespace blink |
| OLD | NEW |