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
3 // found in the LICENSE file.
5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_BACKING_STORE_H_
6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_BACKING_STORE_H_
14 #include "base/basictypes.h"
15 #include "base/files/file_path.h"
16 #include "base/memory/ref_counted.h"
17 #include "base/memory/scoped_ptr.h"
18 #include "base/strings/string_piece.h"
19 #include "base/time/time.h"
20 #include "base/timer/timer.h"
21 #include "content/browser/indexed_db/indexed_db.h"
22 #include "content/browser/indexed_db/indexed_db_active_blob_registry.h"
23 #include "content/browser/indexed_db/indexed_db_blob_info.h"
24 #include "content/browser/indexed_db/indexed_db_leveldb_coding.h"
25 #include "content/browser/indexed_db/indexed_db_metadata.h"
26 #include "content/browser/indexed_db/leveldb/leveldb_iterator.h"
27 #include "content/browser/indexed_db/leveldb/leveldb_transaction.h"
28 #include "content/common/content_export.h"
29 #include "content/common/indexed_db/indexed_db_key.h"
30 #include "content/common/indexed_db/indexed_db_key_path.h"
31 #include "content/common/indexed_db/indexed_db_key_range.h"
32 #include "storage/browser/blob/blob_data_handle.h"
33 #include "third_party/leveldatabase/src/include/leveldb/status.h"
37 class SequencedTaskRunner
;
41 class FileWriterDelegate
;
45 class URLRequestContext
;
50 class IndexedDBFactory
;
51 class LevelDBComparator
;
52 class LevelDBDatabase
;
54 struct IndexedDBValue
;
56 class CONTENT_EXPORT IndexedDBBackingStore
57 : public base::RefCounted
<IndexedDBBackingStore
> {
59 class CONTENT_EXPORT Comparator
: public LevelDBComparator
{
61 int Compare(const base::StringPiece
& a
,
62 const base::StringPiece
& b
) const override
;
63 const char* Name() const override
;
66 class CONTENT_EXPORT RecordIdentifier
{
68 RecordIdentifier(const std::string
& primary_key
, int64 version
);
72 const std::string
& primary_key() const { return primary_key_
; }
73 int64
version() const { return version_
; }
74 void Reset(const std::string
& primary_key
, int64 version
) {
75 primary_key_
= primary_key
;
80 // TODO(jsbell): Make it more clear that this is the *encoded* version of
82 std::string primary_key_
;
84 DISALLOW_COPY_AND_ASSIGN(RecordIdentifier
);
87 class BlobWriteCallback
: public base::RefCounted
<BlobWriteCallback
> {
89 virtual void Run(bool succeeded
) = 0;
92 friend class base::RefCounted
<BlobWriteCallback
>;
93 virtual ~BlobWriteCallback() {}
96 class BlobChangeRecord
{
98 BlobChangeRecord(const std::string
& key
, int64 object_store_id
);
101 const std::string
& key() const { return key_
; }
102 int64
object_store_id() const { return object_store_id_
; }
103 void SetBlobInfo(std::vector
<IndexedDBBlobInfo
>* blob_info
);
104 std::vector
<IndexedDBBlobInfo
>& mutable_blob_info() { return blob_info_
; }
105 const std::vector
<IndexedDBBlobInfo
>& blob_info() const {
108 void SetHandles(ScopedVector
<storage::BlobDataHandle
>* handles
);
109 scoped_ptr
<BlobChangeRecord
> Clone() const;
113 int64 object_store_id_
;
114 std::vector
<IndexedDBBlobInfo
> blob_info_
;
115 ScopedVector
<storage::BlobDataHandle
> handles_
;
116 DISALLOW_COPY_AND_ASSIGN(BlobChangeRecord
);
118 typedef std::map
<std::string
, BlobChangeRecord
*> BlobChangeMap
;
120 class CONTENT_EXPORT Transaction
{
122 explicit Transaction(IndexedDBBackingStore
* backing_store
);
123 virtual ~Transaction();
125 virtual void Begin();
127 // CommitPhaseOne determines what blobs (if any) need to be written to disk
128 // and updates the primary blob journal, and kicks off the async writing
129 // of the blob files. In case of crash/rollback, the journal indicates what
130 // files should be cleaned up.
131 // The callback will be called eventually on success or failure, or
132 // immediately if phase one is complete due to lack of any blobs to write.
133 virtual leveldb::Status
CommitPhaseOne(scoped_refptr
<BlobWriteCallback
>);
135 // CommitPhaseTwo is called once the blob files (if any) have been written
136 // to disk, and commits the actual transaction to the backing store,
137 // including blob journal updates, then deletes any blob files deleted
138 // by the transaction and not referenced by running scripts.
139 virtual leveldb::Status
CommitPhaseTwo();
141 virtual void Rollback();
143 backing_store_
= NULL
;
146 leveldb::Status
PutBlobInfoIfNeeded(
148 int64 object_store_id
,
149 const std::string
& object_store_data_key
,
150 std::vector
<IndexedDBBlobInfo
>*,
151 ScopedVector
<storage::BlobDataHandle
>* handles
);
152 void PutBlobInfo(int64 database_id
,
153 int64 object_store_id
,
154 const std::string
& object_store_data_key
,
155 std::vector
<IndexedDBBlobInfo
>*,
156 ScopedVector
<storage::BlobDataHandle
>* handles
);
158 LevelDBTransaction
* transaction() { return transaction_
.get(); }
160 leveldb::Status
GetBlobInfoForRecord(
162 const std::string
& object_store_data_key
,
163 IndexedDBValue
* value
);
165 // This holds a BlobEntryKey and the encoded IndexedDBBlobInfo vector stored
167 typedef std::vector
<std::pair
<BlobEntryKey
, std::string
> >
168 BlobEntryKeyValuePairVec
;
170 class CONTENT_EXPORT WriteDescriptor
{
172 WriteDescriptor(const GURL
& url
,
175 base::Time last_modified
);
176 WriteDescriptor(const base::FilePath
& path
,
179 base::Time last_modified
);
180 WriteDescriptor(const WriteDescriptor
& other
);
182 WriteDescriptor
& operator=(const WriteDescriptor
& other
);
184 bool is_file() const { return is_file_
; }
185 const GURL
& url() const {
189 const base::FilePath
& file_path() const {
193 int64_t key() const { return key_
; }
194 int64_t size() const { return size_
; }
195 base::Time
last_modified() const { return last_modified_
; }
200 base::FilePath file_path_
;
203 base::Time last_modified_
;
206 class ChainedBlobWriter
207 : public base::RefCountedThreadSafe
<ChainedBlobWriter
> {
209 virtual void set_delegate(
210 scoped_ptr
<storage::FileWriterDelegate
> delegate
) = 0;
212 // TODO(ericu): Add a reason in the event of failure.
213 virtual void ReportWriteCompletion(bool succeeded
,
214 int64 bytes_written
) = 0;
216 virtual void Abort() = 0;
219 friend class base::RefCountedThreadSafe
<ChainedBlobWriter
>;
220 virtual ~ChainedBlobWriter() {}
223 class ChainedBlobWriterImpl
;
225 typedef std::vector
<WriteDescriptor
> WriteDescriptorVec
;
228 class BlobWriteCallbackWrapper
;
230 // Called by CommitPhaseOne: Identifies the blob entries to write and adds
231 // them to the primary blob journal directly (i.e. not as part of the
232 // transaction). Populates blobs_to_write_.
233 leveldb::Status
HandleBlobPreTransaction(
234 BlobEntryKeyValuePairVec
* new_blob_entries
,
235 WriteDescriptorVec
* new_files_to_write
);
237 // Called by CommitPhaseOne: Populates blob_files_to_remove_ by
238 // determining which blobs are deleted as part of the transaction, and
239 // adds blob entry cleanup operations to the transaction. Returns true on
240 // success, false on failure.
241 bool CollectBlobFilesToRemove();
243 // Called by CommitPhaseOne: Kicks off the asynchronous writes of blobs
244 // identified in HandleBlobPreTransaction. The callback will be called
245 // eventually on success or failure.
246 void WriteNewBlobs(BlobEntryKeyValuePairVec
* new_blob_entries
,
247 WriteDescriptorVec
* new_files_to_write
,
248 scoped_refptr
<BlobWriteCallback
> callback
);
250 // Called by CommitPhaseTwo: Partition blob references in blobs_to_remove_
251 // into live (active references) and dead (no references).
252 void PartitionBlobsToRemove(BlobJournalType
* dead_blobs
,
253 BlobJournalType
* live_blobs
) const;
255 IndexedDBBackingStore
* backing_store_
;
256 scoped_refptr
<LevelDBTransaction
> transaction_
;
257 BlobChangeMap blob_change_map_
;
258 BlobChangeMap incognito_blob_map_
;
261 // List of blob files being newly written as part of this transaction.
262 // These will be added to the primary blob journal prior to commit, then
263 // removed after a sucessful commit.
264 BlobJournalType blobs_to_write_
;
266 // List of blob files being deleted as part of this transaction. These will
267 // be added to either the primary or live blob journal as appropriate
268 // following a successful commit.
269 BlobJournalType blobs_to_remove_
;
270 scoped_refptr
<ChainedBlobWriter
> chained_blob_writer_
;
272 // Set to true between CommitPhaseOne and CommitPhaseTwo/Rollback, to
273 // indicate that the committing_transaction_count_ on the backing store
274 // has been bumped, and journal cleaning should be deferred.
280 enum IteratorState
{ READY
= 0, SEEK
};
284 struct CursorOptions
{
288 int64 object_store_id
;
292 std::string high_key
;
298 const IndexedDBKey
& key() const { return *current_key_
; }
299 bool Continue(leveldb::Status
* s
) { return Continue(NULL
, NULL
, SEEK
, s
); }
300 bool Continue(const IndexedDBKey
* key
,
302 leveldb::Status
* s
) {
303 return Continue(key
, NULL
, state
, s
);
305 bool Continue(const IndexedDBKey
* key
,
306 const IndexedDBKey
* primary_key
,
309 bool Advance(uint32 count
, leveldb::Status
*);
310 bool FirstSeek(leveldb::Status
*);
312 virtual Cursor
* Clone() = 0;
313 virtual const IndexedDBKey
& primary_key() const;
314 virtual IndexedDBValue
* value() = 0;
315 virtual const RecordIdentifier
& record_identifier() const;
316 virtual bool LoadCurrentRow(leveldb::Status
* s
) = 0;
319 Cursor(scoped_refptr
<IndexedDBBackingStore
> backing_store
,
320 Transaction
* transaction
,
322 const CursorOptions
& cursor_options
);
323 explicit Cursor(const IndexedDBBackingStore::Cursor
* other
);
325 virtual std::string
EncodeKey(const IndexedDBKey
& key
) = 0;
326 virtual std::string
EncodeKey(const IndexedDBKey
& key
,
327 const IndexedDBKey
& primary_key
) = 0;
329 bool IsPastBounds() const;
330 bool HaveEnteredRange() const;
332 IndexedDBBackingStore
* backing_store_
;
333 Transaction
* transaction_
;
335 const CursorOptions cursor_options_
;
336 scoped_ptr
<LevelDBIterator
> iterator_
;
337 scoped_ptr
<IndexedDBKey
> current_key_
;
338 IndexedDBBackingStore::RecordIdentifier record_identifier_
;
341 // For cursors with direction Next or NextNoDuplicate.
342 bool ContinueNext(const IndexedDBKey
* key
,
343 const IndexedDBKey
* primary_key
,
346 // For cursors with direction Prev or PrevNoDuplicate. The PrevNoDuplicate
347 // case has additional complexity of not being symmetric with
349 bool ContinuePrevious(const IndexedDBKey
* key
,
350 const IndexedDBKey
* primary_key
,
354 DISALLOW_COPY_AND_ASSIGN(Cursor
);
357 const GURL
& origin_url() const { return origin_url_
; }
358 IndexedDBFactory
* factory() const { return indexed_db_factory_
; }
359 base::SequencedTaskRunner
* task_runner() const { return task_runner_
.get(); }
360 base::OneShotTimer
<IndexedDBBackingStore
>* close_timer() {
361 return &close_timer_
;
363 IndexedDBActiveBlobRegistry
* active_blob_registry() {
364 return &active_blob_registry_
;
367 static scoped_refptr
<IndexedDBBackingStore
> Open(
368 IndexedDBFactory
* indexed_db_factory
,
369 const GURL
& origin_url
,
370 const base::FilePath
& path_base
,
371 net::URLRequestContext
* request_context
,
372 blink::WebIDBDataLoss
* data_loss
,
373 std::string
* data_loss_message
,
375 base::SequencedTaskRunner
* task_runner
,
377 leveldb::Status
* status
);
378 static scoped_refptr
<IndexedDBBackingStore
> Open(
379 IndexedDBFactory
* indexed_db_factory
,
380 const GURL
& origin_url
,
381 const base::FilePath
& path_base
,
382 net::URLRequestContext
* request_context
,
383 blink::WebIDBDataLoss
* data_loss
,
384 std::string
* data_loss_message
,
386 LevelDBFactory
* leveldb_factory
,
387 base::SequencedTaskRunner
* task_runner
,
389 leveldb::Status
* status
);
390 static scoped_refptr
<IndexedDBBackingStore
> OpenInMemory(
391 const GURL
& origin_url
,
392 base::SequencedTaskRunner
* task_runner
,
393 leveldb::Status
* status
);
394 static scoped_refptr
<IndexedDBBackingStore
> OpenInMemory(
395 const GURL
& origin_url
,
396 LevelDBFactory
* leveldb_factory
,
397 base::SequencedTaskRunner
* task_runner
,
398 leveldb::Status
* status
);
400 void GrantChildProcessPermissions(int child_process_id
);
402 // Compact is public for testing.
403 virtual void Compact();
404 virtual std::vector
<base::string16
> GetDatabaseNames(leveldb::Status
*);
405 virtual leveldb::Status
GetIDBDatabaseMetaData(
406 const base::string16
& name
,
407 IndexedDBDatabaseMetadata
* metadata
,
408 bool* success
) WARN_UNUSED_RESULT
;
409 virtual leveldb::Status
CreateIDBDatabaseMetaData(
410 const base::string16
& name
,
411 const base::string16
& version
,
414 virtual bool UpdateIDBDatabaseIntVersion(
415 IndexedDBBackingStore::Transaction
* transaction
,
418 virtual leveldb::Status
DeleteDatabase(const base::string16
& name
);
420 // Assumes caller has already closed the backing store.
421 static leveldb::Status
DestroyBackingStore(const base::FilePath
& path_base
,
422 const GURL
& origin_url
);
423 static bool RecordCorruptionInfo(const base::FilePath
& path_base
,
424 const GURL
& origin_url
,
425 const std::string
& message
);
426 leveldb::Status
GetObjectStores(
428 IndexedDBDatabaseMetadata::ObjectStoreMap
* map
) WARN_UNUSED_RESULT
;
429 virtual leveldb::Status
CreateObjectStore(
430 IndexedDBBackingStore::Transaction
* transaction
,
432 int64 object_store_id
,
433 const base::string16
& name
,
434 const IndexedDBKeyPath
& key_path
,
435 bool auto_increment
);
436 virtual leveldb::Status
DeleteObjectStore(
437 IndexedDBBackingStore::Transaction
* transaction
,
439 int64 object_store_id
) WARN_UNUSED_RESULT
;
441 virtual leveldb::Status
GetRecord(
442 IndexedDBBackingStore::Transaction
* transaction
,
444 int64 object_store_id
,
445 const IndexedDBKey
& key
,
446 IndexedDBValue
* record
) WARN_UNUSED_RESULT
;
447 virtual leveldb::Status
PutRecord(
448 IndexedDBBackingStore::Transaction
* transaction
,
450 int64 object_store_id
,
451 const IndexedDBKey
& key
,
452 IndexedDBValue
* value
,
453 ScopedVector
<storage::BlobDataHandle
>* handles
,
454 RecordIdentifier
* record
) WARN_UNUSED_RESULT
;
455 virtual leveldb::Status
ClearObjectStore(
456 IndexedDBBackingStore::Transaction
* transaction
,
458 int64 object_store_id
) WARN_UNUSED_RESULT
;
459 virtual leveldb::Status
DeleteRecord(
460 IndexedDBBackingStore::Transaction
* transaction
,
462 int64 object_store_id
,
463 const RecordIdentifier
& record
) WARN_UNUSED_RESULT
;
464 virtual leveldb::Status
DeleteRange(
465 IndexedDBBackingStore::Transaction
* transaction
,
467 int64 object_store_id
,
468 const IndexedDBKeyRange
&) WARN_UNUSED_RESULT
;
469 virtual leveldb::Status
GetKeyGeneratorCurrentNumber(
470 IndexedDBBackingStore::Transaction
* transaction
,
472 int64 object_store_id
,
473 int64
* current_number
) WARN_UNUSED_RESULT
;
474 virtual leveldb::Status
MaybeUpdateKeyGeneratorCurrentNumber(
475 IndexedDBBackingStore::Transaction
* transaction
,
477 int64 object_store_id
,
479 bool check_current
) WARN_UNUSED_RESULT
;
480 virtual leveldb::Status
KeyExistsInObjectStore(
481 IndexedDBBackingStore::Transaction
* transaction
,
483 int64 object_store_id
,
484 const IndexedDBKey
& key
,
485 RecordIdentifier
* found_record_identifier
,
486 bool* found
) WARN_UNUSED_RESULT
;
488 virtual leveldb::Status
CreateIndex(
489 IndexedDBBackingStore::Transaction
* transaction
,
491 int64 object_store_id
,
493 const base::string16
& name
,
494 const IndexedDBKeyPath
& key_path
,
496 bool is_multi_entry
) WARN_UNUSED_RESULT
;
497 virtual leveldb::Status
DeleteIndex(
498 IndexedDBBackingStore::Transaction
* transaction
,
500 int64 object_store_id
,
501 int64 index_id
) WARN_UNUSED_RESULT
;
502 virtual leveldb::Status
PutIndexDataForRecord(
503 IndexedDBBackingStore::Transaction
* transaction
,
505 int64 object_store_id
,
507 const IndexedDBKey
& key
,
508 const RecordIdentifier
& record
) WARN_UNUSED_RESULT
;
509 virtual leveldb::Status
GetPrimaryKeyViaIndex(
510 IndexedDBBackingStore::Transaction
* transaction
,
512 int64 object_store_id
,
514 const IndexedDBKey
& key
,
515 scoped_ptr
<IndexedDBKey
>* primary_key
) WARN_UNUSED_RESULT
;
516 virtual leveldb::Status
KeyExistsInIndex(
517 IndexedDBBackingStore::Transaction
* transaction
,
519 int64 object_store_id
,
521 const IndexedDBKey
& key
,
522 scoped_ptr
<IndexedDBKey
>* found_primary_key
,
523 bool* exists
) WARN_UNUSED_RESULT
;
525 // Public for IndexedDBActiveBlobRegistry::ReleaseBlobRef.
526 virtual void ReportBlobUnused(int64 database_id
, int64 blob_key
);
528 base::FilePath
GetBlobFileName(int64 database_id
, int64 key
) const;
530 virtual scoped_ptr
<Cursor
> OpenObjectStoreKeyCursor(
531 IndexedDBBackingStore::Transaction
* transaction
,
533 int64 object_store_id
,
534 const IndexedDBKeyRange
& key_range
,
535 blink::WebIDBCursorDirection
,
537 virtual scoped_ptr
<Cursor
> OpenObjectStoreCursor(
538 IndexedDBBackingStore::Transaction
* transaction
,
540 int64 object_store_id
,
541 const IndexedDBKeyRange
& key_range
,
542 blink::WebIDBCursorDirection
,
544 virtual scoped_ptr
<Cursor
> OpenIndexKeyCursor(
545 IndexedDBBackingStore::Transaction
* transaction
,
547 int64 object_store_id
,
549 const IndexedDBKeyRange
& key_range
,
550 blink::WebIDBCursorDirection
,
552 virtual scoped_ptr
<Cursor
> OpenIndexCursor(
553 IndexedDBBackingStore::Transaction
* transaction
,
555 int64 object_store_id
,
557 const IndexedDBKeyRange
& key_range
,
558 blink::WebIDBCursorDirection
,
562 friend class base::RefCounted
<IndexedDBBackingStore
>;
564 IndexedDBBackingStore(IndexedDBFactory
* indexed_db_factory
,
565 const GURL
& origin_url
,
566 const base::FilePath
& blob_path
,
567 net::URLRequestContext
* request_context
,
568 scoped_ptr
<LevelDBDatabase
> db
,
569 scoped_ptr
<LevelDBComparator
> comparator
,
570 base::SequencedTaskRunner
* task_runner
);
571 virtual ~IndexedDBBackingStore();
573 bool is_incognito() const { return !indexed_db_factory_
; }
575 leveldb::Status
SetUpMetadata();
577 virtual bool WriteBlobFile(
579 const Transaction::WriteDescriptor
& descriptor
,
580 Transaction::ChainedBlobWriter
* chained_blob_writer
);
582 // Remove the referenced file on disk.
583 virtual bool RemoveBlobFile(int64 database_id
, int64 key
) const;
585 // Schedule a call to CleanPrimaryJournalIgnoreReturn() via
586 // an owned timer. If this object is destroyed, the timer
587 // will automatically be cancelled.
588 virtual void StartJournalCleaningTimer();
590 // Attempt to clean the primary journal. This will remove
591 // any referenced files and delete the journal entry. If any
592 // transaction is currently committing this will be deferred
593 // via StartJournalCleaningTimer().
594 void CleanPrimaryJournalIgnoreReturn();
597 static scoped_refptr
<IndexedDBBackingStore
> Create(
598 IndexedDBFactory
* indexed_db_factory
,
599 const GURL
& origin_url
,
600 const base::FilePath
& blob_path
,
601 net::URLRequestContext
* request_context
,
602 scoped_ptr
<LevelDBDatabase
> db
,
603 scoped_ptr
<LevelDBComparator
> comparator
,
604 base::SequencedTaskRunner
* task_runner
,
605 leveldb::Status
* status
);
607 static bool ReadCorruptionInfo(const base::FilePath
& path_base
,
608 const GURL
& origin_url
,
609 std::string
* message
);
611 leveldb::Status
FindKeyInIndex(
612 IndexedDBBackingStore::Transaction
* transaction
,
614 int64 object_store_id
,
616 const IndexedDBKey
& key
,
617 std::string
* found_encoded_primary_key
,
619 leveldb::Status
GetIndexes(int64 database_id
,
620 int64 object_store_id
,
621 IndexedDBObjectStoreMetadata::IndexMap
* map
)
624 // Remove the blob directory for the specified database and all contained
626 bool RemoveBlobDirectory(int64 database_id
) const;
628 // Synchronously read the key-specified blob journal entry from the backing
629 // store, delete all referenced blob files, and erase the journal entry.
630 // This must not be used while temporary entries are present e.g. during
631 // a two-stage transaction commit with blobs.
632 leveldb::Status
CleanUpBlobJournal(const std::string
& level_db_key
) const;
634 // Synchronously delete the files and/or directories on disk referenced by
636 leveldb::Status
CleanUpBlobJournalEntries(
637 const BlobJournalType
& journal
) const;
639 IndexedDBFactory
* indexed_db_factory_
;
640 const GURL origin_url_
;
641 base::FilePath blob_path_
;
643 // The origin identifier is a key prefix unique to the origin used in the
644 // leveldb backing store to partition data by origin. It is a normalized
645 // version of the origin URL with a versioning suffix appended, e.g.
646 // "http_localhost_81@1" Since only one origin is stored per backing store
647 // this is redundant but necessary for backwards compatibility; the suffix
648 // provides for future flexibility.
649 const std::string origin_identifier_
;
651 net::URLRequestContext
* request_context_
;
652 scoped_refptr
<base::SequencedTaskRunner
> task_runner_
;
653 std::set
<int> child_process_ids_granted_
;
654 BlobChangeMap incognito_blob_map_
;
655 base::OneShotTimer
<IndexedDBBackingStore
> journal_cleaning_timer_
;
657 scoped_ptr
<LevelDBDatabase
> db_
;
658 scoped_ptr
<LevelDBComparator
> comparator_
;
659 // Whenever blobs are registered in active_blob_registry_, indexed_db_factory_
660 // will hold a reference to this backing store.
661 IndexedDBActiveBlobRegistry active_blob_registry_
;
662 base::OneShotTimer
<IndexedDBBackingStore
> close_timer_
;
664 // Incremented whenever a transaction starts committing, decremented when
665 // complete. While > 0, temporary journal entries may exist so out-of-band
666 // journal cleaning must be deferred.
667 size_t committing_transaction_count_
;
669 DISALLOW_COPY_AND_ASSIGN(IndexedDBBackingStore
);
672 } // namespace content
674 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_BACKING_STORE_H_