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

Side by Side Diff: content/browser/indexed_db/indexed_db_backing_store.h

Issue 2233153002: IndexedDB: WrapUnique(new T(args..)) -> MakeUnique<T>(args...) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review feedback Created 4 years, 4 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 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_BACKING_STORE_H_ 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_BACKING_STORE_H_
6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_BACKING_STORE_H_ 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_BACKING_STORE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 leveldb::Status* s) { 308 leveldb::Status* s) {
309 return Continue(key, NULL, state, s); 309 return Continue(key, NULL, state, s);
310 } 310 }
311 bool Continue(const IndexedDBKey* key, 311 bool Continue(const IndexedDBKey* key,
312 const IndexedDBKey* primary_key, 312 const IndexedDBKey* primary_key,
313 IteratorState state, 313 IteratorState state,
314 leveldb::Status*); 314 leveldb::Status*);
315 bool Advance(uint32_t count, leveldb::Status*); 315 bool Advance(uint32_t count, leveldb::Status*);
316 bool FirstSeek(leveldb::Status*); 316 bool FirstSeek(leveldb::Status*);
317 317
318 virtual Cursor* Clone() = 0; 318 virtual std::unique_ptr<Cursor> Clone() const = 0;
319 virtual const IndexedDBKey& primary_key() const; 319 virtual const IndexedDBKey& primary_key() const;
320 virtual IndexedDBValue* value() = 0; 320 virtual IndexedDBValue* value() = 0;
321 virtual const RecordIdentifier& record_identifier() const; 321 virtual const RecordIdentifier& record_identifier() const;
322 virtual bool LoadCurrentRow(leveldb::Status* s) = 0; 322 virtual bool LoadCurrentRow(leveldb::Status* s) = 0;
323 323
324 protected: 324 protected:
325 Cursor(scoped_refptr<IndexedDBBackingStore> backing_store, 325 Cursor(scoped_refptr<IndexedDBBackingStore> backing_store,
326 Transaction* transaction, 326 Transaction* transaction,
327 int64_t database_id, 327 int64_t database_id,
328 const CursorOptions& cursor_options); 328 const CursorOptions& cursor_options);
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
666 // complete. While > 0, temporary journal entries may exist so out-of-band 666 // complete. While > 0, temporary journal entries may exist so out-of-band
667 // journal cleaning must be deferred. 667 // journal cleaning must be deferred.
668 size_t committing_transaction_count_; 668 size_t committing_transaction_count_;
669 669
670 DISALLOW_COPY_AND_ASSIGN(IndexedDBBackingStore); 670 DISALLOW_COPY_AND_ASSIGN(IndexedDBBackingStore);
671 }; 671 };
672 672
673 } // namespace content 673 } // namespace content
674 674
675 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_BACKING_STORE_H_ 675 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_BACKING_STORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698