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_factory_impl.h" | 5 #include "content/browser/indexed_db/indexed_db_factory_impl.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
14 #include "base/time/time.h" | 14 #include "base/time/time.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_context_impl.h" | 16 #include "content/browser/indexed_db/indexed_db_context_impl.h" |
17 #include "content/browser/indexed_db/indexed_db_database_error.h" | |
18 #include "content/browser/indexed_db/indexed_db_tracing.h" | 17 #include "content/browser/indexed_db/indexed_db_tracing.h" |
19 #include "content/browser/indexed_db/indexed_db_transaction_coordinator.h" | 18 #include "content/browser/indexed_db/indexed_db_transaction_coordinator.h" |
| 19 #include "content/common/indexed_db/indexed_db_database_error.h" |
20 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBDatabaseExc
eption.h" | 20 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBDatabaseExc
eption.h" |
21 #include "third_party/leveldatabase/env_chromium.h" | 21 #include "third_party/leveldatabase/env_chromium.h" |
22 | 22 |
23 using base::ASCIIToUTF16; | 23 using base::ASCIIToUTF16; |
24 using url::Origin; | 24 using url::Origin; |
25 | 25 |
26 namespace content { | 26 namespace content { |
27 | 27 |
28 const int64_t kBackingStoreGracePeriodMs = 2000; | 28 const int64_t kBackingStoreGracePeriodMs = 2000; |
29 | 29 |
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
476 size_t count(0); | 476 size_t count(0); |
477 | 477 |
478 OriginDBs range = GetOpenDatabasesForOrigin(origin); | 478 OriginDBs range = GetOpenDatabasesForOrigin(origin); |
479 for (OriginDBMapIterator it = range.first; it != range.second; ++it) | 479 for (OriginDBMapIterator it = range.first; it != range.second; ++it) |
480 count += it->second->ConnectionCount(); | 480 count += it->second->ConnectionCount(); |
481 | 481 |
482 return count; | 482 return count; |
483 } | 483 } |
484 | 484 |
485 } // namespace content | 485 } // namespace content |
OLD | NEW |