Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp

Issue 2651583007: Plumbing blink::Interface{Provider|Registry} through WebLocalFrame's constructor. (Closed)
Patch Set: Rebasing... Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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));
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
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 = ServiceWorkerThread::create( 477 m_workerThread = ServiceWorkerThread::create(
478 m_loaderProxy, *m_workerGlobalScopeProxy, m_mainThreadTaskRunners.get()); 478 m_loaderProxy, *m_workerGlobalScopeProxy, m_mainThreadTaskRunners.get());
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
OLDNEW
« no previous file with comments | « media/blink/webmediaplayer_impl_unittest.cc ('k') | third_party/WebKit/Source/web/WebLocalFrameImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698