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 #include "content/browser/indexed_db/indexed_db_index_writer.h" | 5 #include "content/browser/indexed_db/indexed_db_index_writer.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <utility> |
8 | 9 |
9 #include "base/logging.h" | 10 #include "base/logging.h" |
10 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
11 #include "content/browser/indexed_db/indexed_db_backing_store.h" | 12 #include "content/browser/indexed_db/indexed_db_backing_store.h" |
12 #include "content/browser/indexed_db/indexed_db_tracing.h" | 13 #include "content/browser/indexed_db/indexed_db_tracing.h" |
13 #include "content/browser/indexed_db/indexed_db_transaction.h" | 14 #include "content/browser/indexed_db/indexed_db_transaction.h" |
14 #include "content/common/indexed_db/indexed_db_key.h" | 15 #include "content/common/indexed_db/indexed_db_key.h" |
15 #include "content/common/indexed_db/indexed_db_key_path.h" | 16 #include "content/common/indexed_db/indexed_db_key_path.h" |
16 #include "content/common/indexed_db/indexed_db_key_range.h" | 17 #include "content/common/indexed_db/indexed_db_key_range.h" |
17 | 18 |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 object_store.id, | 156 object_store.id, |
156 index.id, | 157 index.id, |
157 &can_add_keys, | 158 &can_add_keys, |
158 primary_key, | 159 primary_key, |
159 error_message); | 160 error_message); |
160 if (!backing_store_success) | 161 if (!backing_store_success) |
161 return false; | 162 return false; |
162 if (!can_add_keys) | 163 if (!can_add_keys) |
163 return true; | 164 return true; |
164 | 165 |
165 index_writers->push_back(index_writer.Pass()); | 166 index_writers->push_back(std::move(index_writer)); |
166 } | 167 } |
167 | 168 |
168 *completed = true; | 169 *completed = true; |
169 return true; | 170 return true; |
170 } | 171 } |
171 | 172 |
172 } // namespace content | 173 } // namespace content |
OLD | NEW |