| 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 m_workerThread->terminate(); | 118 m_workerThread->terminate(); |
| 119 m_workerInspectorProxy->workerThreadTerminated(); | 119 m_workerInspectorProxy->workerThreadTerminated(); |
| 120 } | 120 } |
| 121 | 121 |
| 122 void WebSharedWorkerImpl::initializeLoader() | 122 void WebSharedWorkerImpl::initializeLoader() |
| 123 { | 123 { |
| 124 // Create 'shadow page'. This page is never displayed, it is used to proxy t
he | 124 // Create 'shadow page'. This page is never displayed, it is used to proxy t
he |
| 125 // loading requests from the worker context to the rest of WebKit and Chromi
um | 125 // loading requests from the worker context to the rest of WebKit and Chromi
um |
| 126 // infrastructure. | 126 // infrastructure. |
| 127 DCHECK(!m_webView); | 127 DCHECK(!m_webView); |
| 128 m_webView = WebView::create(0); | 128 m_webView = WebView::create(nullptr, true); |
| 129 // FIXME: http://crbug.com/363843. This needs to find a better way to | 129 // FIXME: http://crbug.com/363843. This needs to find a better way to |
| 130 // not create graphics layers. | 130 // not create graphics layers. |
| 131 m_webView->settings()->setAcceleratedCompositingEnabled(false); | 131 m_webView->settings()->setAcceleratedCompositingEnabled(false); |
| 132 // FIXME: Settings information should be passed to the Worker process from B
rowser process when the worker | 132 // FIXME: Settings information should be passed to the Worker process from B
rowser process when the worker |
| 133 // is created (similar to RenderThread::OnCreateNewView). | 133 // is created (similar to RenderThread::OnCreateNewView). |
| 134 m_mainFrame = toWebLocalFrameImpl(WebLocalFrame::create(WebTreeScopeType::Do
cument, this)); | 134 m_mainFrame = toWebLocalFrameImpl(WebLocalFrame::create(WebTreeScopeType::Do
cument, this)); |
| 135 m_webView->setMainFrame(m_mainFrame.get()); | 135 m_webView->setMainFrame(m_mainFrame.get()); |
| 136 m_mainFrame->setDevToolsAgentClient(this); | 136 m_mainFrame->setDevToolsAgentClient(this); |
| 137 | 137 |
| 138 // If we were asked to pause worker context on start and wait for debugger t
hen it is the good time to do that. | 138 // If we were asked to pause worker context on start and wait for debugger t
hen it is the good time to do that. |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 391 if (devtoolsAgent) | 391 if (devtoolsAgent) |
| 392 devtoolsAgent->dispatchOnInspectorBackend(sessionId, callId, method, mes
sage); | 392 devtoolsAgent->dispatchOnInspectorBackend(sessionId, callId, method, mes
sage); |
| 393 } | 393 } |
| 394 | 394 |
| 395 WebSharedWorker* WebSharedWorker::create(WebSharedWorkerClient* client) | 395 WebSharedWorker* WebSharedWorker::create(WebSharedWorkerClient* client) |
| 396 { | 396 { |
| 397 return new WebSharedWorkerImpl(client); | 397 return new WebSharedWorkerImpl(client); |
| 398 } | 398 } |
| 399 | 399 |
| 400 } // namespace blink | 400 } // namespace blink |
| OLD | NEW |