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