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 <vector> | 11 #include <vector> |
11 | 12 |
12 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
13 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
14 #include "content/browser/indexed_db/indexed_db.h" | 15 #include "content/browser/indexed_db/indexed_db.h" |
15 #include "content/browser/indexed_db/indexed_db_callbacks.h" | 16 #include "content/browser/indexed_db/indexed_db_callbacks.h" |
16 #include "content/browser/indexed_db/indexed_db_metadata.h" | 17 #include "content/browser/indexed_db/indexed_db_metadata.h" |
17 #include "content/browser/indexed_db/indexed_db_transaction_coordinator.h" | 18 #include "content/browser/indexed_db/indexed_db_transaction_coordinator.h" |
18 #include "content/browser/indexed_db/list_set.h" | 19 #include "content/browser/indexed_db/list_set.h" |
19 | 20 |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 void TransactionFinishedAndAbortFired(IndexedDBTransaction* transaction); | 113 void TransactionFinishedAndAbortFired(IndexedDBTransaction* transaction); |
113 | 114 |
114 void Get(int64 transaction_id, | 115 void Get(int64 transaction_id, |
115 int64 object_store_id, | 116 int64 object_store_id, |
116 int64 index_id, | 117 int64 index_id, |
117 scoped_ptr<IndexedDBKeyRange> key_range, | 118 scoped_ptr<IndexedDBKeyRange> key_range, |
118 bool key_only, | 119 bool key_only, |
119 scoped_refptr<IndexedDBCallbacks> callbacks); | 120 scoped_refptr<IndexedDBCallbacks> callbacks); |
120 void Put(int64 transaction_id, | 121 void Put(int64 transaction_id, |
121 int64 object_store_id, | 122 int64 object_store_id, |
122 std::vector<char>* value, | 123 std::string* value, |
123 scoped_ptr<IndexedDBKey> key, | 124 scoped_ptr<IndexedDBKey> key, |
124 PutMode mode, | 125 PutMode mode, |
125 scoped_refptr<IndexedDBCallbacks> callbacks, | 126 scoped_refptr<IndexedDBCallbacks> callbacks, |
126 const std::vector<int64>& index_ids, | 127 const std::vector<int64>& index_ids, |
127 const std::vector<IndexKeys>& index_keys); | 128 const std::vector<IndexKeys>& index_keys); |
128 void SetIndexKeys(int64 transaction_id, | 129 void SetIndexKeys(int64 transaction_id, |
129 int64 object_store_id, | 130 int64 object_store_id, |
130 scoped_ptr<IndexedDBKey> primary_key, | 131 scoped_ptr<IndexedDBKey> primary_key, |
131 const std::vector<int64>& index_ids, | 132 const std::vector<int64>& index_ids, |
132 const std::vector<IndexKeys>& index_keys); | 133 const std::vector<IndexKeys>& index_keys); |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 | 223 |
223 typedef list_set<IndexedDBConnection*> ConnectionSet; | 224 typedef list_set<IndexedDBConnection*> ConnectionSet; |
224 ConnectionSet connections_; | 225 ConnectionSet connections_; |
225 | 226 |
226 bool closing_connection_; | 227 bool closing_connection_; |
227 }; | 228 }; |
228 | 229 |
229 } // namespace content | 230 } // namespace content |
230 | 231 |
231 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_ | 232 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_ |
OLD | NEW |