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_database.h" | 5 #include "content/browser/indexed_db/indexed_db_database.h" |
6 | 6 |
7 #include <math.h> | 7 #include <math.h> |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/memory/scoped_vector.h" | 13 #include "base/memory/scoped_vector.h" |
14 #include "base/stl_util.h" | 14 #include "base/stl_util.h" |
15 #include "base/strings/string_number_conversions.h" | 15 #include "base/strings/string_number_conversions.h" |
16 #include "base/strings/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
17 #include "content/browser/indexed_db/indexed_db_blob_info.h" | 17 #include "content/browser/indexed_db/indexed_db_blob_info.h" |
18 #include "content/browser/indexed_db/indexed_db_connection.h" | 18 #include "content/browser/indexed_db/indexed_db_connection.h" |
19 #include "content/browser/indexed_db/indexed_db_context_impl.h" | 19 #include "content/browser/indexed_db/indexed_db_context_impl.h" |
20 #include "content/browser/indexed_db/indexed_db_cursor.h" | 20 #include "content/browser/indexed_db/indexed_db_cursor.h" |
21 #include "content/browser/indexed_db/indexed_db_factory.h" | 21 #include "content/browser/indexed_db/indexed_db_factory.h" |
22 #include "content/browser/indexed_db/indexed_db_index_writer.h" | 22 #include "content/browser/indexed_db/indexed_db_index_writer.h" |
23 #include "content/browser/indexed_db/indexed_db_pending_connection.h" | 23 #include "content/browser/indexed_db/indexed_db_pending_connection.h" |
24 #include "content/browser/indexed_db/indexed_db_tracing.h" | 24 #include "content/browser/indexed_db/indexed_db_tracing.h" |
25 #include "content/browser/indexed_db/indexed_db_transaction.h" | 25 #include "content/browser/indexed_db/indexed_db_transaction.h" |
26 #include "content/browser/indexed_db/indexed_db_value.h" | 26 #include "content/browser/indexed_db/indexed_db_value.h" |
27 #include "content/common/indexed_db/indexed_db_key_path.h" | 27 #include "content/common/indexed_db/indexed_db_key_path.h" |
28 #include "content/common/indexed_db/indexed_db_key_range.h" | 28 #include "content/common/indexed_db/indexed_db_key_range.h" |
| 29 #include "storage/browser/blob/blob_data_handle.h" |
29 #include "third_party/WebKit/public/platform/WebIDBDatabaseException.h" | 30 #include "third_party/WebKit/public/platform/WebIDBDatabaseException.h" |
30 #include "third_party/leveldatabase/env_chromium.h" | 31 #include "third_party/leveldatabase/env_chromium.h" |
31 #include "webkit/browser/blob/blob_data_handle.h" | |
32 | 32 |
33 using base::ASCIIToUTF16; | 33 using base::ASCIIToUTF16; |
34 using base::Int64ToString16; | 34 using base::Int64ToString16; |
35 using blink::WebIDBKeyTypeNumber; | 35 using blink::WebIDBKeyTypeNumber; |
36 | 36 |
37 namespace content { | 37 namespace content { |
38 | 38 |
39 // PendingUpgradeCall has a scoped_ptr<IndexedDBConnection> because it owns the | 39 // PendingUpgradeCall has a scoped_ptr<IndexedDBConnection> because it owns the |
40 // in-progress connection. | 40 // in-progress connection. |
41 class IndexedDBDatabase::PendingUpgradeCall { | 41 class IndexedDBDatabase::PendingUpgradeCall { |
(...skipping 1738 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1780 IndexedDBTransaction* transaction) { | 1780 IndexedDBTransaction* transaction) { |
1781 DCHECK(!transaction); | 1781 DCHECK(!transaction); |
1782 IDB_TRACE1("IndexedDBDatabase::VersionChangeAbortOperation", | 1782 IDB_TRACE1("IndexedDBDatabase::VersionChangeAbortOperation", |
1783 "txn.id", | 1783 "txn.id", |
1784 transaction->id()); | 1784 transaction->id()); |
1785 metadata_.version = previous_version; | 1785 metadata_.version = previous_version; |
1786 metadata_.int_version = previous_int_version; | 1786 metadata_.int_version = previous_int_version; |
1787 } | 1787 } |
1788 | 1788 |
1789 } // namespace content | 1789 } // namespace content |
OLD | NEW |