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

Side by Side Diff: Source/modules/indexeddb/DOMWindowIndexedDatabase.cpp

Issue 517043003: Move Frame to the Oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update OilpanExpectations Created 6 years, 3 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) 2011, Google Inc. All rights reserved. 2 * Copyright (C) 2011, 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 met: 5 * modification, are permitted provided that the following conditions are met:
6 * 6 *
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 29 matching lines...) Expand all
40 } 40 }
41 41
42 DOMWindowIndexedDatabase::~DOMWindowIndexedDatabase() 42 DOMWindowIndexedDatabase::~DOMWindowIndexedDatabase()
43 { 43 {
44 } 44 }
45 45
46 void DOMWindowIndexedDatabase::trace(Visitor* visitor) 46 void DOMWindowIndexedDatabase::trace(Visitor* visitor)
47 { 47 {
48 visitor->trace(m_idbFactory); 48 visitor->trace(m_idbFactory);
49 WillBeHeapSupplement<LocalDOMWindow>::trace(visitor); 49 WillBeHeapSupplement<LocalDOMWindow>::trace(visitor);
50 DOMWindowProperty::trace(visitor);
50 } 51 }
51 52
52 const char* DOMWindowIndexedDatabase::supplementName() 53 const char* DOMWindowIndexedDatabase::supplementName()
53 { 54 {
54 return "DOMWindowIndexedDatabase"; 55 return "DOMWindowIndexedDatabase";
55 } 56 }
56 57
57 DOMWindowIndexedDatabase& DOMWindowIndexedDatabase::from(LocalDOMWindow& window) 58 DOMWindowIndexedDatabase& DOMWindowIndexedDatabase::from(LocalDOMWindow& window)
58 { 59 {
59 DOMWindowIndexedDatabase* supplement = static_cast<DOMWindowIndexedDatabase* >(WillBeHeapSupplement<LocalDOMWindow>::from(window, supplementName())); 60 DOMWindowIndexedDatabase* supplement = static_cast<DOMWindowIndexedDatabase* >(WillBeHeapSupplement<LocalDOMWindow>::from(window, supplementName()));
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 94
94 if (!m_window.isCurrentlyDisplayedInFrame()) 95 if (!m_window.isCurrentlyDisplayedInFrame())
95 return 0; 96 return 0;
96 97
97 if (!m_idbFactory) 98 if (!m_idbFactory)
98 m_idbFactory = IDBFactory::create(IndexedDBClient::create()); 99 m_idbFactory = IDBFactory::create(IndexedDBClient::create());
99 return m_idbFactory.get(); 100 return m_idbFactory.get();
100 } 101 }
101 102
102 } // namespace blink 103 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698