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 "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
9 #include "content/browser/indexed_db/indexed_db_backing_store.h" | 9 #include "content/browser/indexed_db/indexed_db_backing_store.h" |
10 #include "content/browser/indexed_db/indexed_db_database_impl.h" | 10 #include "content/browser/indexed_db/indexed_db_database_impl.h" |
11 #include "content/browser/indexed_db/indexed_db_tracing.h" | 11 #include "content/browser/indexed_db/indexed_db_tracing.h" |
12 #include "content/browser/indexed_db/indexed_db_transaction_coordinator.h" | 12 #include "content/browser/indexed_db/indexed_db_transaction_coordinator.h" |
13 #include "third_party/WebKit/public/platform/WebIDBDatabaseException.h" | 13 #include "third_party/WebKit/public/platform/WebIDBDatabaseException.h" |
14 | 14 |
15 namespace content { | 15 namespace content { |
16 | 16 |
17 template <typename K, typename M> | 17 template <typename K, typename M> |
18 static void CleanWeakMap(std::map<K, base::WeakPtr<M> >& map) { | 18 static void CleanWeakMap(std::map<K, base::WeakPtr<M> >& map) { |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 database_backend_map_[unique_identifier] = database_backend.get(); | 188 database_backend_map_[unique_identifier] = database_backend.get(); |
189 } else { | 189 } else { |
190 database_backend = it->second; | 190 database_backend = it->second; |
191 } | 191 } |
192 | 192 |
193 database_backend->OpenConnection( | 193 database_backend->OpenConnection( |
194 callbacks, database_callbacks, transaction_id, version); | 194 callbacks, database_callbacks, transaction_id, version); |
195 } | 195 } |
196 | 196 |
197 } // namespace content | 197 } // namespace content |
OLD | NEW |