| 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_DATABASE_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_IMPL_H_ |
| 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_IMPL_H_ | 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_IMPL_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 #include "content/browser/indexed_db/indexed_db_callbacks_wrapper.h" | 13 #include "content/browser/indexed_db/indexed_db_callbacks_wrapper.h" |
| 14 #include "content/browser/indexed_db/indexed_db_metadata.h" | 14 #include "content/browser/indexed_db/indexed_db_metadata.h" |
| 15 #include "content/browser/indexed_db/indexed_db_transaction_coordinator.h" | 15 #include "content/browser/indexed_db/indexed_db_transaction_coordinator.h" |
| 16 #include "content/browser/indexed_db/list_set.h" | 16 #include "content/browser/indexed_db/list_set.h" |
| 17 | 17 |
| 18 namespace content { | 18 namespace content { |
| 19 | 19 |
| 20 class IndexedDBBackingStore; | 20 class IndexedDBBackingStore; |
| 21 class IndexedDBDatabase; | 21 class IndexedDBDatabase; |
| 22 class IndexedDBFactoryImpl; | 22 class IndexedDBFactoryImpl; |
| 23 class IndexedDBTransaction; | 23 class IndexedDBTransaction; |
| 24 | 24 |
| 25 class IndexedDBDatabaseImpl : public IndexedDBDatabase { | 25 class CONTENT_EXPORT IndexedDBDatabaseImpl |
| 26 : NON_EXPORTED_BASE(public IndexedDBDatabase) { |
| 26 public: | 27 public: |
| 27 static scoped_refptr<IndexedDBDatabaseImpl> Create( | 28 static scoped_refptr<IndexedDBDatabaseImpl> Create( |
| 28 const string16& name, | 29 const string16& name, |
| 29 IndexedDBBackingStore* database, | 30 IndexedDBBackingStore* database, |
| 30 IndexedDBFactoryImpl* factory, | 31 IndexedDBFactoryImpl* factory, |
| 31 const string16& unique_identifier); | 32 const string16& unique_identifier); |
| 32 scoped_refptr<IndexedDBBackingStore> BackingStore() const; | 33 scoped_refptr<IndexedDBBackingStore> BackingStore() const; |
| 33 | 34 |
| 34 static const int64 kInvalidId = 0; | 35 static const int64 kInvalidId = 0; |
| 35 int64 id() const { return metadata_.id; } | 36 int64 id() const { return metadata_.id; } |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 typedef list_set<scoped_refptr<IndexedDBDatabaseCallbacksWrapper> > | 196 typedef list_set<scoped_refptr<IndexedDBDatabaseCallbacksWrapper> > |
| 196 DatabaseCallbacksSet; | 197 DatabaseCallbacksSet; |
| 197 DatabaseCallbacksSet database_callbacks_set_; | 198 DatabaseCallbacksSet database_callbacks_set_; |
| 198 | 199 |
| 199 bool closing_connection_; | 200 bool closing_connection_; |
| 200 }; | 201 }; |
| 201 | 202 |
| 202 } // namespace content | 203 } // namespace content |
| 203 | 204 |
| 204 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_IMPL_H_ | 205 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_IMPL_H_ |
| OLD | NEW |