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> |
11 #include <utility> | 11 #include <utility> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/basictypes.h" | 14 #include "base/basictypes.h" |
15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
16 #include "content/browser/indexed_db/indexed_db.h" | 16 #include "content/browser/indexed_db/indexed_db.h" |
17 #include "content/browser/indexed_db/indexed_db_backing_store.h" | 17 #include "content/browser/indexed_db/indexed_db_backing_store.h" |
18 #include "content/browser/indexed_db/indexed_db_callbacks.h" | 18 #include "content/browser/indexed_db/indexed_db_callbacks.h" |
19 #include "content/browser/indexed_db/indexed_db_metadata.h" | 19 #include "content/browser/indexed_db/indexed_db_metadata.h" |
20 #include "content/browser/indexed_db/indexed_db_pending_connection.h" | 20 #include "content/browser/indexed_db/indexed_db_pending_connection.h" |
21 #include "content/browser/indexed_db/indexed_db_transaction_coordinator.h" | 21 #include "content/browser/indexed_db/indexed_db_transaction_coordinator.h" |
22 #include "content/browser/indexed_db/list_set.h" | 22 #include "content/browser/indexed_db/list_set.h" |
23 #include "url/gurl.h" | 23 #include "url/gurl.h" |
24 | 24 |
25 namespace content { | 25 namespace content { |
26 | 26 |
| 27 class IndexedDBBlobInfo; |
27 class IndexedDBConnection; | 28 class IndexedDBConnection; |
28 class IndexedDBDatabaseCallbacks; | 29 class IndexedDBDatabaseCallbacks; |
29 class IndexedDBFactory; | 30 class IndexedDBFactory; |
30 class IndexedDBKey; | 31 class IndexedDBKey; |
31 class IndexedDBKeyPath; | 32 class IndexedDBKeyPath; |
32 class IndexedDBKeyRange; | 33 class IndexedDBKeyRange; |
33 class IndexedDBTransaction; | 34 class IndexedDBTransaction; |
34 struct IndexedDBValue; | 35 struct IndexedDBValue; |
35 | 36 |
36 class CONTENT_EXPORT IndexedDBDatabase | 37 class CONTENT_EXPORT IndexedDBDatabase |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 | 123 |
123 void Get(int64 transaction_id, | 124 void Get(int64 transaction_id, |
124 int64 object_store_id, | 125 int64 object_store_id, |
125 int64 index_id, | 126 int64 index_id, |
126 scoped_ptr<IndexedDBKeyRange> key_range, | 127 scoped_ptr<IndexedDBKeyRange> key_range, |
127 bool key_only, | 128 bool key_only, |
128 scoped_refptr<IndexedDBCallbacks> callbacks); | 129 scoped_refptr<IndexedDBCallbacks> callbacks); |
129 void Put(int64 transaction_id, | 130 void Put(int64 transaction_id, |
130 int64 object_store_id, | 131 int64 object_store_id, |
131 IndexedDBValue* value, | 132 IndexedDBValue* value, |
| 133 ScopedVector<webkit_blob::BlobDataHandle>* handles, |
132 scoped_ptr<IndexedDBKey> key, | 134 scoped_ptr<IndexedDBKey> key, |
133 PutMode mode, | 135 PutMode mode, |
134 scoped_refptr<IndexedDBCallbacks> callbacks, | 136 scoped_refptr<IndexedDBCallbacks> callbacks, |
135 const std::vector<IndexKeys>& index_keys); | 137 const std::vector<IndexKeys>& index_keys); |
136 void SetIndexKeys(int64 transaction_id, | 138 void SetIndexKeys(int64 transaction_id, |
137 int64 object_store_id, | 139 int64 object_store_id, |
138 scoped_ptr<IndexedDBKey> primary_key, | 140 scoped_ptr<IndexedDBKey> primary_key, |
139 const std::vector<IndexKeys>& index_keys); | 141 const std::vector<IndexKeys>& index_keys); |
140 void SetIndexesReady(int64 transaction_id, | 142 void SetIndexesReady(int64 transaction_id, |
141 int64 object_store_id, | 143 int64 object_store_id, |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 typedef std::list<PendingDeleteCall*> PendingDeleteCallList; | 294 typedef std::list<PendingDeleteCall*> PendingDeleteCallList; |
293 PendingDeleteCallList pending_delete_calls_; | 295 PendingDeleteCallList pending_delete_calls_; |
294 | 296 |
295 typedef list_set<IndexedDBConnection*> ConnectionSet; | 297 typedef list_set<IndexedDBConnection*> ConnectionSet; |
296 ConnectionSet connections_; | 298 ConnectionSet connections_; |
297 }; | 299 }; |
298 | 300 |
299 } // namespace content | 301 } // namespace content |
300 | 302 |
301 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_ | 303 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_ |
OLD | NEW |