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

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

Issue 1838733002: Allow LoadNavigationErrorPage to run scripts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2661
Patch Set: Created 4 years, 8 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) 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 } 159 }
160 160
161 void WebSharedWorkerImpl::willSendRequest( 161 void WebSharedWorkerImpl::willSendRequest(
162 WebLocalFrame* frame, unsigned, WebURLRequest& request, 162 WebLocalFrame* frame, unsigned, WebURLRequest& request,
163 const WebURLResponse& redirectResponse) 163 const WebURLResponse& redirectResponse)
164 { 164 {
165 if (m_networkProvider) 165 if (m_networkProvider)
166 m_networkProvider->willSendRequest(frame->dataSource(), request); 166 m_networkProvider->willSendRequest(frame->dataSource(), request);
167 } 167 }
168 168
169 void WebSharedWorkerImpl::didFinishDocumentLoad(WebLocalFrame* frame, bool) 169 void WebSharedWorkerImpl::didFinishDocumentLoad(WebLocalFrame* frame)
170 { 170 {
171 ASSERT(!m_loadingDocument); 171 ASSERT(!m_loadingDocument);
172 ASSERT(!m_mainScriptLoader); 172 ASSERT(!m_mainScriptLoader);
173 m_networkProvider = adoptPtr(m_client->createServiceWorkerNetworkProvider(fr ame->dataSource())); 173 m_networkProvider = adoptPtr(m_client->createServiceWorkerNetworkProvider(fr ame->dataSource()));
174 m_mainScriptLoader = WorkerScriptLoader::create(); 174 m_mainScriptLoader = WorkerScriptLoader::create();
175 m_mainScriptLoader->setRequestContext(WebURLRequest::RequestContextSharedWor ker); 175 m_mainScriptLoader->setRequestContext(WebURLRequest::RequestContextSharedWor ker);
176 m_loadingDocument = toWebLocalFrameImpl(frame)->frame()->document(); 176 m_loadingDocument = toWebLocalFrameImpl(frame)->frame()->document();
177 m_mainScriptLoader->loadAsynchronously( 177 m_mainScriptLoader->loadAsynchronously(
178 *m_loadingDocument.get(), 178 *m_loadingDocument.get(),
179 m_url, 179 m_url,
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 if (devtoolsAgent) 393 if (devtoolsAgent)
394 devtoolsAgent->dispatchOnInspectorBackend(sessionId, message); 394 devtoolsAgent->dispatchOnInspectorBackend(sessionId, message);
395 } 395 }
396 396
397 WebSharedWorker* WebSharedWorker::create(WebSharedWorkerClient* client) 397 WebSharedWorker* WebSharedWorker::create(WebSharedWorkerClient* client)
398 { 398 {
399 return new WebSharedWorkerImpl(client); 399 return new WebSharedWorkerImpl(client);
400 } 400 }
401 401
402 } // namespace blink 402 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebSharedWorkerImpl.h ('k') | third_party/WebKit/Source/web/tests/WebFrameTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698