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

Side by Side Diff: Source/bindings/core/dart/DartDOMData.cpp

Issue 1663753002: Apply all blink changes between @202695 and tip of trunk (Closed) Base URL: svn://svn.chromium.org/blink/branches/dart/2454_1
Patch Set: Created 4 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 | Annotate | Revision Log
« no previous file with comments | « Source/bindings/core/dart/DartDOMData.h ('k') | Source/bindings/core/dart/DartDOMWrapper.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 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 , m_applicationSnapshot() 50 , m_applicationSnapshot()
51 , m_reachableWeakHandle(0) 51 , m_reachableWeakHandle(0)
52 , m_objectMap() 52 , m_objectMap()
53 , m_messagePortMap() 53 , m_messagePortMap()
54 , m_isolateDestructionObservers() 54 , m_isolateDestructionObservers()
55 , m_classHandleCache() 55 , m_classHandleCache()
56 , m_libraryHandleCache() 56 , m_libraryHandleCache()
57 , m_functionType(0) 57 , m_functionType(0)
58 , m_currentException(0) 58 , m_currentException(0)
59 , m_rootScriptState(0) 59 , m_rootScriptState(0)
60 , m_weakReferenceSetForRootMap(0)
61 , m_documentWeakReferenceSet(0)
62 , m_weakReferenceSetBuilder(0)
63 { 60 {
64 } 61 }
65 62
66 DartDOMData::~DartDOMData() 63 DartDOMData::~DartDOMData()
67 { 64 {
68 ASSERT(m_objectMap.isEmpty()); 65 ASSERT(m_objectMap.isEmpty());
69 ASSERT(m_messagePortMap.isEmpty()); 66 ASSERT(m_messagePortMap.isEmpty());
70 67
71 free(m_scriptURL); 68 free(m_scriptURL);
72 setApplicationLoader(nullptr); 69 setApplicationLoader(nullptr);
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 Dart_PersistentHandle DartDOMData::getLibrary(int libraryId, const char* name) 104 Dart_PersistentHandle DartDOMData::getLibrary(int libraryId, const char* name)
108 { 105 {
109 Dart_Handle lib = Dart_LookupLibrary(Dart_NewStringFromCString(name)); 106 Dart_Handle lib = Dart_LookupLibrary(Dart_NewStringFromCString(name));
110 ASSERT(!Dart_IsError(lib)); 107 ASSERT(!Dart_IsError(lib));
111 Dart_PersistentHandle persistentLib = Dart_NewPersistentHandle(lib); 108 Dart_PersistentHandle persistentLib = Dart_NewPersistentHandle(lib);
112 m_libraryHandleCache[libraryId] = persistentLib; 109 m_libraryHandleCache[libraryId] = persistentLib;
113 return persistentLib; 110 return persistentLib;
114 } 111 }
115 112
116 } 113 }
OLDNEW
« no previous file with comments | « Source/bindings/core/dart/DartDOMData.h ('k') | Source/bindings/core/dart/DartDOMWrapper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698