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_INDEX_WRITER_H_ | 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_INDEX_WRITER_H_ |
6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_INDEX_WRITER_H_ | 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_INDEX_WRITER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
11 #include <memory> | 11 #include <memory> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "content/browser/indexed_db/indexed_db_backing_store.h" | 15 #include "content/browser/indexed_db/indexed_db_backing_store.h" |
16 #include "content/browser/indexed_db/indexed_db_database.h" | 16 #include "content/browser/indexed_db/indexed_db_database.h" |
17 #include "content/browser/indexed_db/indexed_db_metadata.h" | |
18 #include "content/common/indexed_db/indexed_db_key_path.h" | 17 #include "content/common/indexed_db/indexed_db_key_path.h" |
| 18 #include "content/common/indexed_db/indexed_db_metadata.h" |
19 | 19 |
20 namespace content { | 20 namespace content { |
21 | 21 |
22 class IndexedDBTransaction; | 22 class IndexedDBTransaction; |
23 struct IndexedDBObjectStoreMetadata; | 23 struct IndexedDBObjectStoreMetadata; |
24 | 24 |
25 class IndexWriter { | 25 class IndexWriter { |
26 public: | 26 public: |
27 explicit IndexWriter(const IndexedDBIndexMetadata& index_metadata); | 27 explicit IndexWriter(const IndexedDBIndexMetadata& index_metadata); |
28 | 28 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 const IndexedDBKey& primary_key, | 70 const IndexedDBKey& primary_key, |
71 bool key_was_generated, | 71 bool key_was_generated, |
72 const std::vector<IndexedDBDatabase::IndexKeys>& index_keys, | 72 const std::vector<IndexedDBDatabase::IndexKeys>& index_keys, |
73 std::vector<std::unique_ptr<IndexWriter>>* index_writers, | 73 std::vector<std::unique_ptr<IndexWriter>>* index_writers, |
74 base::string16* error_message, | 74 base::string16* error_message, |
75 bool* completed) WARN_UNUSED_RESULT; | 75 bool* completed) WARN_UNUSED_RESULT; |
76 | 76 |
77 } // namespace content | 77 } // namespace content |
78 | 78 |
79 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_INDEX_WRITER_H_ | 79 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_INDEX_WRITER_H_ |
OLD | NEW |