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

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

Issue 966843002: Mark DOMStringList.contains() as deprecated, add console warning. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add more detailed use counters Created 5 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
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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 } 72 }
73 73
74 ScriptValue IDBObjectStore::keyPath(ScriptState* scriptState) const 74 ScriptValue IDBObjectStore::keyPath(ScriptState* scriptState) const
75 { 75 {
76 return ScriptValue::from(scriptState, m_metadata.keyPath); 76 return ScriptValue::from(scriptState, m_metadata.keyPath);
77 } 77 }
78 78
79 PassRefPtrWillBeRawPtr<DOMStringList> IDBObjectStore::indexNames() const 79 PassRefPtrWillBeRawPtr<DOMStringList> IDBObjectStore::indexNames() const
80 { 80 {
81 IDB_TRACE("IDBObjectStore::indexNames"); 81 IDB_TRACE("IDBObjectStore::indexNames");
82 RefPtrWillBeRawPtr<DOMStringList> indexNames = DOMStringList::create(); 82 RefPtrWillBeRawPtr<DOMStringList> indexNames = DOMStringList::create(DOMStri ngList::IndexedDB);
83 for (IDBObjectStoreMetadata::IndexMap::const_iterator it = m_metadata.indexe s.begin(); it != m_metadata.indexes.end(); ++it) 83 for (IDBObjectStoreMetadata::IndexMap::const_iterator it = m_metadata.indexe s.begin(); it != m_metadata.indexes.end(); ++it)
84 indexNames->append(it->value.name); 84 indexNames->append(it->value.name);
85 indexNames->sort(); 85 indexNames->sort();
86 return indexNames.release(); 86 return indexNames.release();
87 } 87 }
88 88
89 IDBRequest* IDBObjectStore::get(ScriptState* scriptState, const ScriptValue& key , ExceptionState& exceptionState) 89 IDBRequest* IDBObjectStore::get(ScriptState* scriptState, const ScriptValue& key , ExceptionState& exceptionState)
90 { 90 {
91 IDB_TRACE("IDBObjectStore::get"); 91 IDB_TRACE("IDBObjectStore::get");
92 if (isDeleted()) { 92 if (isDeleted()) {
(...skipping 651 matching lines...) Expand 10 before | Expand all | Expand 10 after
744 } 744 }
745 return IDBIndexMetadata::InvalidId; 745 return IDBIndexMetadata::InvalidId;
746 } 746 }
747 747
748 WebIDBDatabase* IDBObjectStore::backendDB() const 748 WebIDBDatabase* IDBObjectStore::backendDB() const
749 { 749 {
750 return m_transaction->backendDB(); 750 return m_transaction->backendDB();
751 } 751 }
752 752
753 } // namespace blink 753 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698