| OLD | NEW |
| 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 <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 class LevelDBDatabase; | 52 class LevelDBDatabase; |
| 53 class LevelDBFactory; | 53 class LevelDBFactory; |
| 54 struct IndexedDBValue; | 54 struct IndexedDBValue; |
| 55 | 55 |
| 56 class CONTENT_EXPORT IndexedDBBackingStore | 56 class CONTENT_EXPORT IndexedDBBackingStore |
| 57 : public base::RefCounted<IndexedDBBackingStore> { | 57 : public base::RefCounted<IndexedDBBackingStore> { |
| 58 public: | 58 public: |
| 59 class CONTENT_EXPORT Comparator : public LevelDBComparator { | 59 class CONTENT_EXPORT Comparator : public LevelDBComparator { |
| 60 public: | 60 public: |
| 61 virtual int Compare(const base::StringPiece& a, | 61 virtual int Compare(const base::StringPiece& a, |
| 62 const base::StringPiece& b) const OVERRIDE; | 62 const base::StringPiece& b) const override; |
| 63 virtual const char* Name() const OVERRIDE; | 63 virtual const char* Name() const override; |
| 64 }; | 64 }; |
| 65 | 65 |
| 66 class CONTENT_EXPORT RecordIdentifier { | 66 class CONTENT_EXPORT RecordIdentifier { |
| 67 public: | 67 public: |
| 68 RecordIdentifier(const std::string& primary_key, int64 version); | 68 RecordIdentifier(const std::string& primary_key, int64 version); |
| 69 RecordIdentifier(); | 69 RecordIdentifier(); |
| 70 ~RecordIdentifier(); | 70 ~RecordIdentifier(); |
| 71 | 71 |
| 72 const std::string& primary_key() const { return primary_key_; } | 72 const std::string& primary_key() const { return primary_key_; } |
| 73 int64 version() const { return version_; } | 73 int64 version() const { return version_; } |
| (...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 578 // will hold a reference to this backing store. | 578 // will hold a reference to this backing store. |
| 579 IndexedDBActiveBlobRegistry active_blob_registry_; | 579 IndexedDBActiveBlobRegistry active_blob_registry_; |
| 580 base::OneShotTimer<IndexedDBBackingStore> close_timer_; | 580 base::OneShotTimer<IndexedDBBackingStore> close_timer_; |
| 581 | 581 |
| 582 DISALLOW_COPY_AND_ASSIGN(IndexedDBBackingStore); | 582 DISALLOW_COPY_AND_ASSIGN(IndexedDBBackingStore); |
| 583 }; | 583 }; |
| 584 | 584 |
| 585 } // namespace content | 585 } // namespace content |
| 586 | 586 |
| 587 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_BACKING_STORE_H_ | 587 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_BACKING_STORE_H_ |
| OLD | NEW |