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 "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
11 #include "content/browser/indexed_db/indexed_db_backing_store.h" | 11 #include "content/browser/indexed_db/indexed_db_backing_store.h" |
12 #include "content/browser/indexed_db/indexed_db_cursor.h" | 12 #include "content/browser/indexed_db/indexed_db_cursor.h" |
13 #include "content/browser/indexed_db/indexed_db_database.h" | 13 #include "content/browser/indexed_db/indexed_db_database.h" |
14 #include "content/browser/indexed_db/indexed_db_database_callbacks.h" | 14 #include "content/browser/indexed_db/indexed_db_database_callbacks.h" |
15 #include "content/browser/indexed_db/indexed_db_tracing.h" | 15 #include "content/browser/indexed_db/indexed_db_tracing.h" |
16 #include "content/browser/indexed_db/indexed_db_transaction_coordinator.h" | 16 #include "content/browser/indexed_db/indexed_db_transaction_coordinator.h" |
17 #include "third_party/WebKit/public/platform/WebIDBDatabaseException.h" | 17 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBDatabaseExc
eption.h" |
18 #include "third_party/leveldatabase/env_chromium.h" | 18 #include "third_party/leveldatabase/env_chromium.h" |
19 | 19 |
20 namespace content { | 20 namespace content { |
21 | 21 |
22 const int64 kInactivityTimeoutPeriodSeconds = 60; | 22 const int64 kInactivityTimeoutPeriodSeconds = 60; |
23 | 23 |
24 IndexedDBTransaction::TaskQueue::TaskQueue() {} | 24 IndexedDBTransaction::TaskQueue::TaskQueue() {} |
25 IndexedDBTransaction::TaskQueue::~TaskQueue() { clear(); } | 25 IndexedDBTransaction::TaskQueue::~TaskQueue() { clear(); } |
26 | 26 |
27 void IndexedDBTransaction::TaskQueue::clear() { | 27 void IndexedDBTransaction::TaskQueue::clear() { |
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
404 base::ASCIIToUTF16("Transaction timed out due to inactivity."))); | 404 base::ASCIIToUTF16("Transaction timed out due to inactivity."))); |
405 } | 405 } |
406 | 406 |
407 void IndexedDBTransaction::CloseOpenCursors() { | 407 void IndexedDBTransaction::CloseOpenCursors() { |
408 for (auto* cursor : open_cursors_) | 408 for (auto* cursor : open_cursors_) |
409 cursor->Close(); | 409 cursor->Close(); |
410 open_cursors_.clear(); | 410 open_cursors_.clear(); |
411 } | 411 } |
412 | 412 |
413 } // namespace content | 413 } // namespace content |
OLD | NEW |