Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 292 WebSettings* settings = m_webView->settings(); | 292 WebSettings* settings = m_webView->settings(); |
| 293 // FIXME: http://crbug.com/363843. This needs to find a better way to | 293 // FIXME: http://crbug.com/363843. This needs to find a better way to |
| 294 // not create graphics layers. | 294 // not create graphics layers. |
| 295 settings->setAcceleratedCompositingEnabled(false); | 295 settings->setAcceleratedCompositingEnabled(false); |
| 296 // Currently we block all mixed-content requests from a ServiceWorker. | 296 // Currently we block all mixed-content requests from a ServiceWorker. |
| 297 // FIXME: When we support FetchEvent.default(), we should relax this | 297 // FIXME: When we support FetchEvent.default(), we should relax this |
| 298 // restriction. | 298 // restriction. |
| 299 settings->setStrictMixedContentChecking(true); | 299 settings->setStrictMixedContentChecking(true); |
| 300 settings->setAllowRunningOfInsecureContent(false); | 300 settings->setAllowRunningOfInsecureContent(false); |
| 301 settings->setDataSaverEnabled(m_workerStartData.dataSaverEnabled); | 301 settings->setDataSaverEnabled(m_workerStartData.dataSaverEnabled); |
| 302 m_mainFrame = toWebLocalFrameImpl( | 302 m_mainFrame = toWebLocalFrameImpl(WebLocalFrame::create( |
| 303 WebLocalFrame::create(WebTreeScopeType::Document, this)); | 303 WebTreeScopeType::Document, this, nullptr, nullptr)); |
|
Łukasz Anforowicz
2017/01/23 23:38:16
blink::WebEmbeddedWorkerImpl doesn't override inte
| |
| 304 m_webView->setMainFrame(m_mainFrame.get()); | 304 m_webView->setMainFrame(m_mainFrame.get()); |
| 305 m_mainFrame->setDevToolsAgentClient(this); | 305 m_mainFrame->setDevToolsAgentClient(this); |
| 306 | 306 |
| 307 // If we were asked to wait for debugger then it is the good time to do that. | 307 // If we were asked to wait for debugger then it is the good time to do that. |
| 308 m_workerContextClient->workerReadyForInspection(); | 308 m_workerContextClient->workerReadyForInspection(); |
| 309 if (m_workerStartData.waitForDebuggerMode == | 309 if (m_workerStartData.waitForDebuggerMode == |
| 310 WebEmbeddedWorkerStartData::WaitForDebugger) { | 310 WebEmbeddedWorkerStartData::WaitForDebugger) { |
| 311 m_waitingForDebuggerState = WaitingForDebugger; | 311 m_waitingForDebuggerState = WaitingForDebugger; |
| 312 return; | 312 return; |
| 313 } | 313 } |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 475 *this, *document, *m_workerContextClient); | 475 *this, *document, *m_workerContextClient); |
| 476 m_loaderProxy = WorkerLoaderProxy::create(this); | 476 m_loaderProxy = WorkerLoaderProxy::create(this); |
| 477 m_workerThread = | 477 m_workerThread = |
| 478 ServiceWorkerThread::create(m_loaderProxy, *m_workerGlobalScopeProxy); | 478 ServiceWorkerThread::create(m_loaderProxy, *m_workerGlobalScopeProxy); |
| 479 m_workerThread->start(std::move(startupData)); | 479 m_workerThread->start(std::move(startupData)); |
| 480 m_workerInspectorProxy->workerThreadCreated(document, m_workerThread.get(), | 480 m_workerInspectorProxy->workerThreadCreated(document, m_workerThread.get(), |
| 481 scriptURL); | 481 scriptURL); |
| 482 } | 482 } |
| 483 | 483 |
| 484 } // namespace blink | 484 } // namespace blink |
| OLD | NEW |