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

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

Issue 258143002: Oilpan: move DOM string collection objects to the Oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase + final adjustments Created 6 years, 7 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
« no previous file with comments | « Source/modules/indexeddb/IDBObjectStore.h ('k') | Source/modules/indexeddb/IDBRequest.cpp » ('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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
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
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 { 71 {
72 visitor->trace(m_transaction); 72 visitor->trace(m_transaction);
73 visitor->trace(m_indexMap); 73 visitor->trace(m_indexMap);
74 } 74 }
75 75
76 ScriptValue IDBObjectStore::keyPath(ScriptState* scriptState) const 76 ScriptValue IDBObjectStore::keyPath(ScriptState* scriptState) const
77 { 77 {
78 return idbAnyToScriptValue(scriptState, IDBAny::create(m_metadata.keyPath)); 78 return idbAnyToScriptValue(scriptState, IDBAny::create(m_metadata.keyPath));
79 } 79 }
80 80
81 PassRefPtr<DOMStringList> IDBObjectStore::indexNames() const 81 PassRefPtrWillBeRawPtr<DOMStringList> IDBObjectStore::indexNames() const
82 { 82 {
83 IDB_TRACE("IDBObjectStore::indexNames"); 83 IDB_TRACE("IDBObjectStore::indexNames");
84 RefPtr<DOMStringList> indexNames = DOMStringList::create(); 84 RefPtrWillBeRawPtr<DOMStringList> indexNames = DOMStringList::create();
85 for (IDBObjectStoreMetadata::IndexMap::const_iterator it = m_metadata.indexe s.begin(); it != m_metadata.indexes.end(); ++it) 85 for (IDBObjectStoreMetadata::IndexMap::const_iterator it = m_metadata.indexe s.begin(); it != m_metadata.indexes.end(); ++it)
86 indexNames->append(it->value.name); 86 indexNames->append(it->value.name);
87 indexNames->sort(); 87 indexNames->sort();
88 return indexNames.release(); 88 return indexNames.release();
89 } 89 }
90 90
91 PassRefPtrWillBeRawPtr<IDBRequest> IDBObjectStore::get(ExecutionContext* context , const ScriptValue& key, ExceptionState& exceptionState) 91 PassRefPtrWillBeRawPtr<IDBRequest> IDBObjectStore::get(ExecutionContext* context , const ScriptValue& key, ExceptionState& exceptionState)
92 { 92 {
93 IDB_TRACE("IDBObjectStore::get"); 93 IDB_TRACE("IDBObjectStore::get");
94 if (isDeleted()) { 94 if (isDeleted()) {
(...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after
672 } 672 }
673 return IDBIndexMetadata::InvalidId; 673 return IDBIndexMetadata::InvalidId;
674 } 674 }
675 675
676 WebIDBDatabase* IDBObjectStore::backendDB() const 676 WebIDBDatabase* IDBObjectStore::backendDB() const
677 { 677 {
678 return m_transaction->backendDB(); 678 return m_transaction->backendDB();
679 } 679 }
680 680
681 } // namespace WebCore 681 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/modules/indexeddb/IDBObjectStore.h ('k') | Source/modules/indexeddb/IDBRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698