| 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 <algorithm> | 7 #include <algorithm> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 #include "content/browser/indexed_db/indexed_db_connection.h" | 23 #include "content/browser/indexed_db/indexed_db_connection.h" |
| 24 #include "content/browser/indexed_db/indexed_db_database.h" | 24 #include "content/browser/indexed_db/indexed_db_database.h" |
| 25 #include "content/browser/indexed_db/indexed_db_dispatcher_host.h" | 25 #include "content/browser/indexed_db/indexed_db_dispatcher_host.h" |
| 26 #include "content/browser/indexed_db/indexed_db_factory_impl.h" | 26 #include "content/browser/indexed_db/indexed_db_factory_impl.h" |
| 27 #include "content/browser/indexed_db/indexed_db_quota_client.h" | 27 #include "content/browser/indexed_db/indexed_db_quota_client.h" |
| 28 #include "content/browser/indexed_db/indexed_db_tracing.h" | 28 #include "content/browser/indexed_db/indexed_db_tracing.h" |
| 29 #include "content/browser/indexed_db/indexed_db_transaction.h" | 29 #include "content/browser/indexed_db/indexed_db_transaction.h" |
| 30 #include "content/public/browser/browser_thread.h" | 30 #include "content/public/browser/browser_thread.h" |
| 31 #include "content/public/browser/indexed_db_info.h" | 31 #include "content/public/browser/indexed_db_info.h" |
| 32 #include "content/public/common/content_switches.h" | 32 #include "content/public/common/content_switches.h" |
| 33 #include "storage/common/database/database_identifier.h" |
| 33 #include "ui/base/text/bytes_formatting.h" | 34 #include "ui/base/text/bytes_formatting.h" |
| 34 #include "webkit/browser/database/database_util.h" | 35 #include "webkit/browser/database/database_util.h" |
| 35 #include "webkit/browser/quota/quota_manager_proxy.h" | 36 #include "webkit/browser/quota/quota_manager_proxy.h" |
| 36 #include "webkit/browser/quota/special_storage_policy.h" | 37 #include "webkit/browser/quota/special_storage_policy.h" |
| 37 #include "webkit/common/database/database_identifier.h" | |
| 38 | 38 |
| 39 using base::DictionaryValue; | 39 using base::DictionaryValue; |
| 40 using base::ListValue; | 40 using base::ListValue; |
| 41 using storage::DatabaseUtil; | 41 using storage::DatabaseUtil; |
| 42 | 42 |
| 43 namespace content { | 43 namespace content { |
| 44 const base::FilePath::CharType IndexedDBContextImpl::kIndexedDBDirectory[] = | 44 const base::FilePath::CharType IndexedDBContextImpl::kIndexedDBDirectory[] = |
| 45 FILE_PATH_LITERAL("IndexedDB"); | 45 FILE_PATH_LITERAL("IndexedDB"); |
| 46 | 46 |
| 47 static const base::FilePath::CharType kIndexedDBExtension[] = | 47 static const base::FilePath::CharType kIndexedDBExtension[] = |
| (...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 571 origin_set_.reset(); | 571 origin_set_.reset(); |
| 572 origin_size_map_.clear(); | 572 origin_size_map_.clear(); |
| 573 space_available_map_.clear(); | 573 space_available_map_.clear(); |
| 574 } | 574 } |
| 575 | 575 |
| 576 base::SequencedTaskRunner* IndexedDBContextImpl::TaskRunner() const { | 576 base::SequencedTaskRunner* IndexedDBContextImpl::TaskRunner() const { |
| 577 return task_runner_.get(); | 577 return task_runner_.get(); |
| 578 } | 578 } |
| 579 | 579 |
| 580 } // namespace content | 580 } // namespace content |
| OLD | NEW |