OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_context_impl.h" | 5 #include "content/browser/indexed_db/indexed_db_context_impl.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/file_util.h" | 11 #include "base/file_util.h" |
12 #include "base/files/file_enumerator.h" | 12 #include "base/files/file_enumerator.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/sequenced_task_runner.h" | 14 #include "base/sequenced_task_runner.h" |
15 #include "base/strings/string_util.h" | 15 #include "base/strings/string_util.h" |
16 #include "base/strings/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
17 #include "base/threading/thread_restrictions.h" | 17 #include "base/threading/thread_restrictions.h" |
18 #include "content/browser/browser_main_loop.h" | 18 #include "content/browser/browser_main_loop.h" |
19 #include "content/browser/indexed_db/indexed_db_quota_client.h" | 19 #include "content/browser/indexed_db/indexed_db_quota_client.h" |
20 #include "content/browser/indexed_db/webidbdatabase_impl.h" | 20 #include "content/browser/indexed_db/webidbdatabase_impl.h" |
21 #include "content/browser/indexed_db/webidbfactory_impl.h" | 21 #include "content/browser/indexed_db/webidbfactory_impl.h" |
22 #include "content/public/browser/browser_thread.h" | 22 #include "content/public/browser/browser_thread.h" |
23 #include "content/public/browser/indexed_db_info.h" | 23 #include "content/public/browser/indexed_db_info.h" |
24 #include "content/public/common/content_switches.h" | 24 #include "content/public/common/content_switches.h" |
25 #include "third_party/WebKit/public/platform/WebString.h" | |
26 #include "webkit/browser/database/database_util.h" | 25 #include "webkit/browser/database/database_util.h" |
27 #include "webkit/browser/quota/quota_manager.h" | 26 #include "webkit/browser/quota/quota_manager.h" |
28 #include "webkit/browser/quota/special_storage_policy.h" | 27 #include "webkit/browser/quota/special_storage_policy.h" |
29 #include "webkit/common/database/database_identifier.h" | 28 #include "webkit/common/database/database_identifier.h" |
30 | 29 |
31 using webkit_database::DatabaseUtil; | 30 using webkit_database::DatabaseUtil; |
32 | 31 |
33 namespace content { | 32 namespace content { |
34 const base::FilePath::CharType IndexedDBContextImpl::kIndexedDBDirectory[] = | 33 const base::FilePath::CharType IndexedDBContextImpl::kIndexedDBDirectory[] = |
35 FILE_PATH_LITERAL("IndexedDB"); | 34 FILE_PATH_LITERAL("IndexedDB"); |
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
422 origin_set_.reset(); | 421 origin_set_.reset(); |
423 origin_size_map_.clear(); | 422 origin_size_map_.clear(); |
424 space_available_map_.clear(); | 423 space_available_map_.clear(); |
425 } | 424 } |
426 | 425 |
427 base::TaskRunner* IndexedDBContextImpl::TaskRunner() const { | 426 base::TaskRunner* IndexedDBContextImpl::TaskRunner() const { |
428 return task_runner_; | 427 return task_runner_; |
429 } | 428 } |
430 | 429 |
431 } // namespace content | 430 } // namespace content |
OLD | NEW |