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

Side by Side Diff: Source/modules/indexeddb/IDBDatabase.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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 } 161 }
162 162
163 void IDBDatabase::onComplete(int64_t transactionId) 163 void IDBDatabase::onComplete(int64_t transactionId)
164 { 164 {
165 ASSERT(m_transactions.contains(transactionId)); 165 ASSERT(m_transactions.contains(transactionId));
166 m_transactions.get(transactionId)->onComplete(); 166 m_transactions.get(transactionId)->onComplete();
167 } 167 }
168 168
169 PassRefPtrWillBeRawPtr<DOMStringList> IDBDatabase::objectStoreNames() const 169 PassRefPtrWillBeRawPtr<DOMStringList> IDBDatabase::objectStoreNames() const
170 { 170 {
171 RefPtrWillBeRawPtr<DOMStringList> objectStoreNames = DOMStringList::create() ; 171 RefPtrWillBeRawPtr<DOMStringList> objectStoreNames = DOMStringList::create(D OMStringList::IndexedDB);
172 for (IDBDatabaseMetadata::ObjectStoreMap::const_iterator it = m_metadata.obj ectStores.begin(); it != m_metadata.objectStores.end(); ++it) 172 for (IDBDatabaseMetadata::ObjectStoreMap::const_iterator it = m_metadata.obj ectStores.begin(); it != m_metadata.objectStores.end(); ++it)
173 objectStoreNames->append(it->value.name); 173 objectStoreNames->append(it->value.name);
174 objectStoreNames->sort(); 174 objectStoreNames->sort();
175 return objectStoreNames.release(); 175 return objectStoreNames.release();
176 } 176 }
177 177
178 void IDBDatabase::version(UnsignedLongLongOrString& result) const 178 void IDBDatabase::version(UnsignedLongLongOrString& result) const
179 { 179 {
180 if (m_metadata.intVersion == IDBDatabaseMetadata::NoIntVersion) 180 if (m_metadata.intVersion == IDBDatabaseMetadata::NoIntVersion)
181 result.setString(m_metadata.version); 181 result.setString(m_metadata.version);
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 { 453 {
454 return EventTargetNames::IDBDatabase; 454 return EventTargetNames::IDBDatabase;
455 } 455 }
456 456
457 ExecutionContext* IDBDatabase::executionContext() const 457 ExecutionContext* IDBDatabase::executionContext() const
458 { 458 {
459 return ActiveDOMObject::executionContext(); 459 return ActiveDOMObject::executionContext();
460 } 460 }
461 461
462 } // namespace blink 462 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698