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

Side by Side Diff: Source/modules/indexeddb/IDBTransaction.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 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 326
327 ASSERT_NOT_REACHED(); 327 ASSERT_NOT_REACHED();
328 return IndexedDBNames::readonly; 328 return IndexedDBNames::readonly;
329 } 329 }
330 330
331 PassRefPtrWillBeRawPtr<DOMStringList> IDBTransaction::objectStoreNames() const 331 PassRefPtrWillBeRawPtr<DOMStringList> IDBTransaction::objectStoreNames() const
332 { 332 {
333 if (m_mode == WebIDBTransactionModeVersionChange) 333 if (m_mode == WebIDBTransactionModeVersionChange)
334 return m_database->objectStoreNames(); 334 return m_database->objectStoreNames();
335 335
336 RefPtrWillBeRawPtr<DOMStringList> objectStoreNames = DOMStringList::create() ; 336 RefPtrWillBeRawPtr<DOMStringList> objectStoreNames = DOMStringList::create(D OMStringList::IndexedDB);
337 for (const String& name : m_objectStoreNames) 337 for (const String& name : m_objectStoreNames)
338 objectStoreNames->append(name); 338 objectStoreNames->append(name);
339 objectStoreNames->sort(); 339 objectStoreNames->sort();
340 return objectStoreNames.release(); 340 return objectStoreNames.release();
341 } 341 }
342 342
343 const AtomicString& IDBTransaction::interfaceName() const 343 const AtomicString& IDBTransaction::interfaceName() const
344 { 344 {
345 return EventTargetNames::IDBTransaction; 345 return EventTargetNames::IDBTransaction;
346 } 346 }
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 event->setTarget(this); 408 event->setTarget(this);
409 eventQueue->enqueueEvent(event); 409 eventQueue->enqueueEvent(event);
410 } 410 }
411 411
412 WebIDBDatabase* IDBTransaction::backendDB() const 412 WebIDBDatabase* IDBTransaction::backendDB() const
413 { 413 {
414 return m_database->backend(); 414 return m_database->backend();
415 } 415 }
416 416
417 } // namespace blink 417 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698