| 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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 // Create 'shadow page'. This page is never displayed, it is used to proxy t
he | 206 // Create 'shadow page'. This page is never displayed, it is used to proxy t
he |
| 207 // loading requests from the worker context to the rest of WebKit and Chromi
um | 207 // loading requests from the worker context to the rest of WebKit and Chromi
um |
| 208 // infrastructure. | 208 // infrastructure. |
| 209 ASSERT(!m_webView); | 209 ASSERT(!m_webView); |
| 210 m_webView = WebView::create(0); | 210 m_webView = WebView::create(0); |
| 211 // FIXME: http://crbug.com/363843. This needs to find a better way to | 211 // FIXME: http://crbug.com/363843. This needs to find a better way to |
| 212 // not create graphics layers. | 212 // not create graphics layers. |
| 213 m_webView->settings()->setAcceleratedCompositingEnabled(false); | 213 m_webView->settings()->setAcceleratedCompositingEnabled(false); |
| 214 // FIXME: Settings information should be passed to the Worker process from B
rowser process when the worker | 214 // FIXME: Settings information should be passed to the Worker process from B
rowser process when the worker |
| 215 // is created (similar to RenderThread::OnCreateNewView). | 215 // is created (similar to RenderThread::OnCreateNewView). |
| 216 m_mainFrame = toWebLocalFrameImpl(WebLocalFrame::create(WebTreeScopeType::Do
cument, this)); | 216 m_mainFrame = toWebLocalFrameImpl(WebLocalFrame::create(this)); |
| 217 m_webView->setMainFrame(m_mainFrame); | 217 m_webView->setMainFrame(m_mainFrame); |
| 218 m_mainFrame->setDevToolsAgentClient(this); | 218 m_mainFrame->setDevToolsAgentClient(this); |
| 219 | 219 |
| 220 // If we were asked to pause worker context on start and wait for debugger t
hen it is the good time to do that. | 220 // If we were asked to pause worker context on start and wait for debugger t
hen it is the good time to do that. |
| 221 client()->workerReadyForInspection(); | 221 client()->workerReadyForInspection(); |
| 222 if (m_pauseWorkerContextOnStart) { | 222 if (m_pauseWorkerContextOnStart) { |
| 223 m_isPausedOnStart = true; | 223 m_isPausedOnStart = true; |
| 224 return; | 224 return; |
| 225 } | 225 } |
| 226 loadShadowPage(); | 226 loadShadowPage(); |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 474 if (devtoolsAgent) | 474 if (devtoolsAgent) |
| 475 devtoolsAgent->dispatchOnInspectorBackend(message); | 475 devtoolsAgent->dispatchOnInspectorBackend(message); |
| 476 } | 476 } |
| 477 | 477 |
| 478 WebSharedWorker* WebSharedWorker::create(WebSharedWorkerClient* client) | 478 WebSharedWorker* WebSharedWorker::create(WebSharedWorkerClient* client) |
| 479 { | 479 { |
| 480 return new WebSharedWorkerImpl(client); | 480 return new WebSharedWorkerImpl(client); |
| 481 } | 481 } |
| 482 | 482 |
| 483 } // namespace blink | 483 } // namespace blink |
| OLD | NEW |