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_transaction.h" | 5 #include "content/browser/indexed_db/indexed_db_transaction.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
10 #include "content/browser/indexed_db/indexed_db_backing_store.h" | 10 #include "content/browser/indexed_db/indexed_db_backing_store.h" |
11 #include "content/browser/indexed_db/indexed_db_cursor_impl.h" | 11 #include "content/browser/indexed_db/indexed_db_cursor_impl.h" |
12 #include "content/browser/indexed_db/indexed_db_database_callbacks_wrapper.h" | 12 #include "content/browser/indexed_db/indexed_db_database_callbacks_wrapper.h" |
13 #include "content/browser/indexed_db/indexed_db_database_impl.h" | 13 #include "content/browser/indexed_db/indexed_db_database_impl.h" |
14 #include "content/browser/indexed_db/indexed_db_tracing.h" | 14 #include "content/browser/indexed_db/indexed_db_tracing.h" |
15 #include "content/browser/indexed_db/indexed_db_transaction_coordinator.h" | 15 #include "content/browser/indexed_db/indexed_db_transaction_coordinator.h" |
16 #include "third_party/WebKit/public/platform/WebIDBDatabaseException.h" | 16 #include "third_party/WebKit/public/platform/WebIDBDatabaseException.h" |
17 | 17 |
18 namespace content { | 18 namespace content { |
19 | 19 |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 | 298 |
299 void IndexedDBTransaction::CloseOpenCursors() { | 299 void IndexedDBTransaction::CloseOpenCursors() { |
300 for (std::set<IndexedDBCursorImpl*>::iterator i = open_cursors_.begin(); | 300 for (std::set<IndexedDBCursorImpl*>::iterator i = open_cursors_.begin(); |
301 i != open_cursors_.end(); | 301 i != open_cursors_.end(); |
302 ++i) | 302 ++i) |
303 (*i)->Close(); | 303 (*i)->Close(); |
304 open_cursors_.clear(); | 304 open_cursors_.clear(); |
305 } | 305 } |
306 | 306 |
307 } // namespace content | 307 } // namespace content |
OLD | NEW |