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

Side by Side Diff: Source/WebCore/workers/WorkerContext.cpp

Issue 6519013: Merge 77563 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/648/
Patch Set: Created 9 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) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * Copyright (C) 2009 Google Inc. All Rights Reserved. 3 * Copyright (C) 2009, 2011 Google Inc. All Rights Reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the 11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution. 12 * documentation and/or other materials provided with the distribution.
13 * 13 *
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 242
243 // If the fetching attempt failed, throw a NETWORK_ERR exception and abo rt all these steps. 243 // If the fetching attempt failed, throw a NETWORK_ERR exception and abo rt all these steps.
244 if (scriptLoader.failed()) { 244 if (scriptLoader.failed()) {
245 ec = XMLHttpRequestException::NETWORK_ERR; 245 ec = XMLHttpRequestException::NETWORK_ERR;
246 return; 246 return;
247 } 247 }
248 248
249 InspectorInstrumentation::scriptImported(scriptExecutionContext(), script Loader.identifier(), scriptLoader.script()); 249 InspectorInstrumentation::scriptImported(scriptExecutionContext(), script Loader.identifier(), scriptLoader.script());
250 250
251 ScriptValue exception; 251 ScriptValue exception;
252 m_script->evaluate(ScriptSourceCode(scriptLoader.script(), *it), &except ion); 252 m_script->evaluate(ScriptSourceCode(scriptLoader.script(), scriptLoader. responseURL()), &exception);
253 if (!exception.hasNoValue()) { 253 if (!exception.hasNoValue()) {
254 m_script->setException(exception); 254 m_script->setException(exception);
255 return; 255 return;
256 } 256 }
257 } 257 }
258 } 258 }
259 259
260 EventTarget* WorkerContext::errorEventTarget() 260 EventTarget* WorkerContext::errorEventTarget()
261 { 261 {
262 return this; 262 return this;
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 WorkerContext::Observer* observer = *iter; 424 WorkerContext::Observer* observer = *iter;
425 observer->stopObserving(); 425 observer->stopObserving();
426 observer->notifyStop(); 426 observer->notifyStop();
427 iter = m_workerObservers.begin(); 427 iter = m_workerObservers.begin();
428 } 428 }
429 } 429 }
430 430
431 } // namespace WebCore 431 } // namespace WebCore
432 432
433 #endif // ENABLE(WORKERS) 433 #endif // ENABLE(WORKERS)
OLDNEW
« no previous file with comments | « Source/WebCore/dom/ScriptExecutionContext.cpp ('k') | Source/WebCore/workers/WorkerScriptLoader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698