Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(272)

Side by Side Diff: content/browser/indexed_db/indexed_db_factory_impl.cc

Issue 1757693002: Reduce use of DatabaseIdentifier in Indexed DB entry points. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert change for ZIP file naming Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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" 17 #include "content/browser/indexed_db/indexed_db_database_error.h"
18 #include "content/browser/indexed_db/indexed_db_tracing.h" 18 #include "content/browser/indexed_db/indexed_db_tracing.h"
19 #include "content/browser/indexed_db/indexed_db_transaction_coordinator.h" 19 #include "content/browser/indexed_db/indexed_db_transaction_coordinator.h"
20 #include "storage/common/database/database_identifier.h"
21 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBDatabaseExc eption.h" 20 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBDatabaseExc eption.h"
22 #include "third_party/leveldatabase/env_chromium.h" 21 #include "third_party/leveldatabase/env_chromium.h"
23 22
24 using base::ASCIIToUTF16; 23 using base::ASCIIToUTF16;
25 24
26 namespace content { 25 namespace content {
27 26
28 const int64_t kBackingStoreGracePeriodMs = 2000; 27 const int64_t kBackingStoreGracePeriodMs = 2000;
29 28
30 IndexedDBFactoryImpl::IndexedDBFactoryImpl(IndexedDBContextImpl* context) 29 IndexedDBFactoryImpl::IndexedDBFactoryImpl(IndexedDBContextImpl* context)
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 size_t count(0); 515 size_t count(0);
517 516
518 OriginDBs range = GetOpenDatabasesForOrigin(origin_url); 517 OriginDBs range = GetOpenDatabasesForOrigin(origin_url);
519 for (OriginDBMapIterator it = range.first; it != range.second; ++it) 518 for (OriginDBMapIterator it = range.first; it != range.second; ++it)
520 count += it->second->ConnectionCount(); 519 count += it->second->ConnectionCount();
521 520
522 return count; 521 return count;
523 } 522 }
524 523
525 } // namespace content 524 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698