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

Side by Side Diff: Source/bindings/dart/DartApplicationLoader.cpp

Issue 300393002: Merge DevTools Refactor CL to Blink36 (Closed) Base URL: svn://svn.chromium.org/blink/branches/dart/1985
Patch Set: PTAL Created 6 years, 6 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/bindings/common/StackTrace.h ('k') | Source/bindings/dart/DartController.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009, Google Inc. 1 // Copyright (c) 2009, Google Inc.
2 // All rights reserved. 2 // 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 14 matching lines...) Expand all
25 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 29
30 #include "config.h" 30 #include "config.h"
31 #include "bindings/dart/DartApplicationLoader.h" 31 #include "bindings/dart/DartApplicationLoader.h"
32 32
33 #include "FetchInitiatorTypeNames.h" 33 #include "FetchInitiatorTypeNames.h"
34 #include "bindings/dart/DartDOMWrapper.h" 34 #include "bindings/dart/DartDOMWrapper.h"
35 #include "bindings/dart/DartDebugServer.h"
36 #include "bindings/dart/DartInspectorTimeline.h" 35 #include "bindings/dart/DartInspectorTimeline.h"
36 #include "bindings/dart/DartScriptDebugServer.h"
37 #include "bindings/dart/DartUtilities.h" 37 #include "bindings/dart/DartUtilities.h"
38 #include "bindings/v8/ScriptSourceCode.h" 38 #include "bindings/v8/ScriptSourceCode.h"
39 #include "core/dom/Document.h" 39 #include "core/dom/Document.h"
40 #include "core/dom/Element.h" 40 #include "core/dom/Element.h"
41 #include "core/fetch/CachedMetadata.h" 41 #include "core/fetch/CachedMetadata.h"
42 #include "core/fetch/FetchRequest.h" 42 #include "core/fetch/FetchRequest.h"
43 #include "core/fetch/ResourceClient.h" 43 #include "core/fetch/ResourceClient.h"
44 #include "core/fetch/ResourceFetcher.h" 44 #include "core/fetch/ResourceFetcher.h"
45 #include "core/fetch/ScriptResource.h" 45 #include "core/fetch/ScriptResource.h"
46 #include "core/frame/DOMWindow.h" 46 #include "core/frame/DOMWindow.h"
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 void DartApplicationLoader::callEntryPoint() 228 void DartApplicationLoader::callEntryPoint()
229 { 229 {
230 if (m_mainInvoked) { 230 if (m_mainInvoked) {
231 ASSERT_NOT_REACHED(); 231 ASSERT_NOT_REACHED();
232 return; 232 return;
233 } 233 }
234 234
235 Timeline timeline(m_originDocument->frame(), String("callEntryPoint@") + m_l ibraryUrl); 235 Timeline timeline(m_originDocument->frame(), String("callEntryPoint@") + m_l ibraryUrl);
236 if (m_domEnabled) { 236 if (m_domEnabled) {
237 Timeline timeline(m_originDocument->frame(), String("notifyDebugServer@" ) + m_libraryUrl); 237 Timeline timeline(m_originDocument->frame(), String("notifyDebugServer@" ) + m_libraryUrl);
238 DartDebugServer::shared().isolateLoaded(); 238 DartScriptDebugServer::shared().isolateLoaded();
239 } 239 }
240 240
241 // FIXME: Do we still need this? 241 // FIXME: Do we still need this?
242 if (m_scriptHasError) { 242 if (m_scriptHasError) {
243 // Errors have already been printed to console. 243 // Errors have already been printed to console.
244 return; 244 return;
245 } 245 }
246 246
247 if (m_domEnabled) { 247 if (m_domEnabled) {
248 V8Scope v8scope(DartDOMData::current()); 248 V8Scope v8scope(DartDOMData::current());
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 // FIXME: try to dig out line number, -1 for now. 294 // FIXME: try to dig out line number, -1 for now.
295 if (failedUrl.startsWith(String("dart:"))) { 295 if (failedUrl.startsWith(String("dart:"))) {
296 m_originDocument->logExceptionToConsole(String("The built-in library '") + failedUrl + String("' is not available on Dartium."), m_libraryUrl, -1, 0, nu llptr); 296 m_originDocument->logExceptionToConsole(String("The built-in library '") + failedUrl + String("' is not available on Dartium."), m_libraryUrl, -1, 0, nu llptr);
297 } else { 297 } else {
298 m_originDocument->logExceptionToConsole(String("Failed to load a file ") + failedUrl, m_libraryUrl, -1, 0, nullptr); 298 m_originDocument->logExceptionToConsole(String("Failed to load a file ") + failedUrl, m_libraryUrl, -1, 0, nullptr);
299 } 299 }
300 m_errorEventDispatcher->dispatchErrorEvent(); 300 m_errorEventDispatcher->dispatchErrorEvent();
301 } 301 }
302 302
303 } 303 }
OLDNEW
« no previous file with comments | « Source/bindings/common/StackTrace.h ('k') | Source/bindings/dart/DartController.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698