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

Side by Side Diff: Source/web/WebSharedWorkerImpl.cpp

Issue 1157563004: Revert of Update Blink to use the tree scope info on WebFrame for scoping checks. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « Source/web/WebRemoteFrameImpl.cpp ('k') | Source/web/tests/ChromeClientImplTest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/web/WebRemoteFrameImpl.cpp ('k') | Source/web/tests/ChromeClientImplTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698