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

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

Issue 442383002: Move storage-related files from webkit/ to new top-level directory storage/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 4 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 | Annotate | Revision Log
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 <utility> 7 #include <utility>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/strings/utf_string_conversions.h" 11 #include "base/strings/utf_string_conversions.h"
12 #include "base/time/time.h" 12 #include "base/time/time.h"
13 #include "content/browser/indexed_db/indexed_db_backing_store.h" 13 #include "content/browser/indexed_db/indexed_db_backing_store.h"
14 #include "content/browser/indexed_db/indexed_db_context_impl.h" 14 #include "content/browser/indexed_db/indexed_db_context_impl.h"
15 #include "content/browser/indexed_db/indexed_db_database_error.h" 15 #include "content/browser/indexed_db/indexed_db_database_error.h"
16 #include "content/browser/indexed_db/indexed_db_tracing.h" 16 #include "content/browser/indexed_db/indexed_db_tracing.h"
17 #include "content/browser/indexed_db/indexed_db_transaction_coordinator.h" 17 #include "content/browser/indexed_db/indexed_db_transaction_coordinator.h"
18 #include "third_party/WebKit/public/platform/WebIDBDatabaseException.h" 18 #include "third_party/WebKit/public/platform/WebIDBDatabaseException.h"
19 #include "third_party/leveldatabase/env_chromium.h" 19 #include "third_party/leveldatabase/env_chromium.h"
20 #include "webkit/common/database/database_identifier.h" 20 #include "storage/common/database/database_identifier.h"
21 21
22 using base::ASCIIToUTF16; 22 using base::ASCIIToUTF16;
23 23
24 namespace content { 24 namespace content {
25 25
26 const int64 kBackingStoreGracePeriodMs = 2000; 26 const int64 kBackingStoreGracePeriodMs = 2000;
27 27
28 IndexedDBFactoryImpl::IndexedDBFactoryImpl(IndexedDBContextImpl* context) 28 IndexedDBFactoryImpl::IndexedDBFactoryImpl(IndexedDBContextImpl* context)
29 : context_(context) { 29 : context_(context) {
30 } 30 }
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 size_t count(0); 496 size_t count(0);
497 497
498 OriginDBs range = GetOpenDatabasesForOrigin(origin_url); 498 OriginDBs range = GetOpenDatabasesForOrigin(origin_url);
499 for (OriginDBMapIterator it = range.first; it != range.second; ++it) 499 for (OriginDBMapIterator it = range.first; it != range.second; ++it)
500 count += it->second->ConnectionCount(); 500 count += it->second->ConnectionCount();
501 501
502 return count; 502 return count;
503 } 503 }
504 504
505 } // namespace content 505 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/indexed_db/indexed_db_dispatcher_host.cc ('k') | content/browser/indexed_db/indexed_db_factory_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698