| 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_H_ | 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_ |
| 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_ | 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 // Number of open calls that are blocked on other connections. | 168 // Number of open calls that are blocked on other connections. |
| 169 size_t PendingOpenCount() const; | 169 size_t PendingOpenCount() const; |
| 170 // Number of pending upgrades (0 or 1). Also included in ConnectionCount(). | 170 // Number of pending upgrades (0 or 1). Also included in ConnectionCount(). |
| 171 size_t PendingUpgradeCount() const; | 171 size_t PendingUpgradeCount() const; |
| 172 // Number of running upgrades (0 or 1). Also included in ConnectionCount(). | 172 // Number of running upgrades (0 or 1). Also included in ConnectionCount(). |
| 173 size_t RunningUpgradeCount() const; | 173 size_t RunningUpgradeCount() const; |
| 174 // Number of pending deletes, blocked on other connections. | 174 // Number of pending deletes, blocked on other connections. |
| 175 size_t PendingDeleteCount() const; | 175 size_t PendingDeleteCount() const; |
| 176 | 176 |
| 177 // Asynchronous tasks scheduled within transactions: | 177 // Asynchronous tasks scheduled within transactions: |
| 178 void CreateObjectStoreOperation( | |
| 179 const IndexedDBObjectStoreMetadata& object_store_metadata, | |
| 180 IndexedDBTransaction* transaction); | |
| 181 void CreateObjectStoreAbortOperation(int64 object_store_id, | 178 void CreateObjectStoreAbortOperation(int64 object_store_id, |
| 182 IndexedDBTransaction* transaction); | 179 IndexedDBTransaction* transaction); |
| 183 void DeleteObjectStoreOperation( | 180 void DeleteObjectStoreOperation( |
| 184 const IndexedDBObjectStoreMetadata& object_store_metadata, | 181 const IndexedDBObjectStoreMetadata& object_store_metadata, |
| 185 IndexedDBTransaction* transaction); | 182 IndexedDBTransaction* transaction); |
| 186 void DeleteObjectStoreAbortOperation( | 183 void DeleteObjectStoreAbortOperation( |
| 187 const IndexedDBObjectStoreMetadata& object_store_metadata, | 184 const IndexedDBObjectStoreMetadata& object_store_metadata, |
| 188 IndexedDBTransaction* transaction); | 185 IndexedDBTransaction* transaction); |
| 189 void VersionChangeOperation(int64 version, | 186 void VersionChangeOperation(int64 version, |
| 190 scoped_refptr<IndexedDBCallbacks> callbacks, | 187 scoped_refptr<IndexedDBCallbacks> callbacks, |
| 191 scoped_ptr<IndexedDBConnection> connection, | 188 scoped_ptr<IndexedDBConnection> connection, |
| 192 IndexedDBTransaction* transaction); | 189 IndexedDBTransaction* transaction); |
| 193 void VersionChangeAbortOperation(const base::string16& previous_version, | 190 void VersionChangeAbortOperation(const base::string16& previous_version, |
| 194 int64 previous_int_version, | 191 int64 previous_int_version, |
| 195 IndexedDBTransaction* transaction); | 192 IndexedDBTransaction* transaction); |
| 196 void CreateIndexOperation(int64 object_store_id, | |
| 197 const IndexedDBIndexMetadata& index_metadata, | |
| 198 IndexedDBTransaction* transaction); | |
| 199 void DeleteIndexOperation(int64 object_store_id, | 193 void DeleteIndexOperation(int64 object_store_id, |
| 200 const IndexedDBIndexMetadata& index_metadata, | 194 const IndexedDBIndexMetadata& index_metadata, |
| 201 IndexedDBTransaction* transaction); | 195 IndexedDBTransaction* transaction); |
| 202 void CreateIndexAbortOperation(int64 object_store_id, | 196 void CreateIndexAbortOperation(int64 object_store_id, |
| 203 int64 index_id, | 197 int64 index_id, |
| 204 IndexedDBTransaction* transaction); | 198 IndexedDBTransaction* transaction); |
| 205 void DeleteIndexAbortOperation(int64 object_store_id, | 199 void DeleteIndexAbortOperation(int64 object_store_id, |
| 206 const IndexedDBIndexMetadata& index_metadata, | 200 const IndexedDBIndexMetadata& index_metadata, |
| 207 IndexedDBTransaction* transaction); | 201 IndexedDBTransaction* transaction); |
| 208 void GetOperation(int64 object_store_id, | 202 void GetOperation(int64 object_store_id, |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 typedef std::list<PendingDeleteCall*> PendingDeleteCallList; | 288 typedef std::list<PendingDeleteCall*> PendingDeleteCallList; |
| 295 PendingDeleteCallList pending_delete_calls_; | 289 PendingDeleteCallList pending_delete_calls_; |
| 296 | 290 |
| 297 typedef list_set<IndexedDBConnection*> ConnectionSet; | 291 typedef list_set<IndexedDBConnection*> ConnectionSet; |
| 298 ConnectionSet connections_; | 292 ConnectionSet connections_; |
| 299 }; | 293 }; |
| 300 | 294 |
| 301 } // namespace content | 295 } // namespace content |
| 302 | 296 |
| 303 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_ | 297 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_ |
| OLD | NEW |