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.h" | 5 #include "content/browser/indexed_db/indexed_db_factory.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
9 #include "base/time/time.h" | 9 #include "base/time/time.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_context_impl.h" | 11 #include "content/browser/indexed_db/indexed_db_context_impl.h" |
12 #include "content/browser/indexed_db/indexed_db_tracing.h" | 12 #include "content/browser/indexed_db/indexed_db_tracing.h" |
13 #include "content/browser/indexed_db/indexed_db_transaction_coordinator.h" | 13 #include "content/browser/indexed_db/indexed_db_transaction_coordinator.h" |
14 #include "third_party/WebKit/public/platform/WebIDBDatabaseException.h" | 14 #include "third_party/WebKit/public/platform/WebIDBDatabaseException.h" |
15 #include "webkit/common/database/database_identifier.h" | 15 #include "webkit/common/database/database_identifier.h" |
16 | 16 |
| 17 using base::ASCIIToUTF16; |
| 18 |
17 namespace content { | 19 namespace content { |
18 | 20 |
19 const int64 kBackingStoreGracePeriodMs = 2000; | 21 const int64 kBackingStoreGracePeriodMs = 2000; |
20 | 22 |
21 IndexedDBFactory::IndexedDBFactory(IndexedDBContextImpl* context) | 23 IndexedDBFactory::IndexedDBFactory(IndexedDBContextImpl* context) |
22 : context_(context) {} | 24 : context_(context) {} |
23 | 25 |
24 IndexedDBFactory::~IndexedDBFactory() {} | 26 IndexedDBFactory::~IndexedDBFactory() {} |
25 | 27 |
26 void IndexedDBFactory::ReleaseDatabase( | 28 void IndexedDBFactory::ReleaseDatabase( |
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
332 for (IndexedDBDatabaseMap::const_iterator it = database_map_.begin(); | 334 for (IndexedDBDatabaseMap::const_iterator it = database_map_.begin(); |
333 it != database_map_.end(); | 335 it != database_map_.end(); |
334 ++it) { | 336 ++it) { |
335 if (it->first.first == origin_url) | 337 if (it->first.first == origin_url) |
336 result.push_back(it->second); | 338 result.push_back(it->second); |
337 } | 339 } |
338 return result; | 340 return result; |
339 } | 341 } |
340 | 342 |
341 } // namespace content | 343 } // namespace content |
OLD | NEW |