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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 const base::string16& name() const { return metadata_.name; } | 72 const base::string16& name() const { return metadata_.name; } |
73 | 73 |
74 void AddObjectStore(const IndexedDBObjectStoreMetadata& metadata, | 74 void AddObjectStore(const IndexedDBObjectStoreMetadata& metadata, |
75 int64_t new_max_object_store_id); | 75 int64_t new_max_object_store_id); |
76 void RemoveObjectStore(int64_t object_store_id); | 76 void RemoveObjectStore(int64_t object_store_id); |
77 void AddIndex(int64_t object_store_id, | 77 void AddIndex(int64_t object_store_id, |
78 const IndexedDBIndexMetadata& metadata, | 78 const IndexedDBIndexMetadata& metadata, |
79 int64_t new_max_index_id); | 79 int64_t new_max_index_id); |
80 void RemoveIndex(int64_t object_store_id, int64_t index_id); | 80 void RemoveIndex(int64_t object_store_id, int64_t index_id); |
81 | 81 |
82 void OpenConnection(const IndexedDBPendingConnection& connection); | 82 void OpenConnection(std::unique_ptr<IndexedDBPendingConnection> connection); |
83 void DeleteDatabase(scoped_refptr<IndexedDBCallbacks> callbacks); | 83 void DeleteDatabase(scoped_refptr<IndexedDBCallbacks> callbacks); |
84 const IndexedDBDatabaseMetadata& metadata() const { return metadata_; } | 84 const IndexedDBDatabaseMetadata& metadata() const { return metadata_; } |
85 | 85 |
86 void CreateObjectStore(int64_t transaction_id, | 86 void CreateObjectStore(int64_t transaction_id, |
87 int64_t object_store_id, | 87 int64_t object_store_id, |
88 const base::string16& name, | 88 const base::string16& name, |
89 const IndexedDBKeyPath& key_path, | 89 const IndexedDBKeyPath& key_path, |
90 bool auto_increment); | 90 bool auto_increment); |
91 void DeleteObjectStore(int64_t transaction_id, int64_t object_store_id); | 91 void DeleteObjectStore(int64_t transaction_id, int64_t object_store_id); |
92 IndexedDBTransaction* CreateTransaction( | 92 IndexedDBTransaction* CreateTransaction( |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
332 bool processing_pending_requests_ = false; | 332 bool processing_pending_requests_ = false; |
333 | 333 |
334 bool experimental_web_platform_features_enabled_; | 334 bool experimental_web_platform_features_enabled_; |
335 | 335 |
336 DISALLOW_COPY_AND_ASSIGN(IndexedDBDatabase); | 336 DISALLOW_COPY_AND_ASSIGN(IndexedDBDatabase); |
337 }; | 337 }; |
338 | 338 |
339 } // namespace content | 339 } // namespace content |
340 | 340 |
341 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_ | 341 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_ |
OLD | NEW |