| 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/dom_storage/dom_storage_context_impl.h" | 5 #include "content/browser/dom_storage/dom_storage_context_impl.h" |
| 6 | 6 |
| 7 #include <inttypes.h> | 7 #include <inttypes.h> |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdlib.h> | 9 #include <stdlib.h> |
| 10 | 10 |
| 11 #include "base/bind.h" | 11 #include "base/bind.h" |
| 12 #include "base/bind_helpers.h" | 12 #include "base/bind_helpers.h" |
| 13 #include "base/files/file_enumerator.h" | 13 #include "base/files/file_enumerator.h" |
| 14 #include "base/files/file_util.h" | 14 #include "base/files/file_util.h" |
| 15 #include "base/guid.h" | 15 #include "base/guid.h" |
| 16 #include "base/location.h" | 16 #include "base/location.h" |
| 17 #include "base/metrics/histogram.h" | 17 #include "base/metrics/histogram_macros.h" |
| 18 #include "base/stl_util.h" | 18 #include "base/stl_util.h" |
| 19 #include "base/strings/stringprintf.h" | 19 #include "base/strings/stringprintf.h" |
| 20 #include "base/sys_info.h" | 20 #include "base/sys_info.h" |
| 21 #include "base/time/time.h" | 21 #include "base/time/time.h" |
| 22 #include "base/trace_event/memory_dump_manager.h" | 22 #include "base/trace_event/memory_dump_manager.h" |
| 23 #include "base/trace_event/process_memory_dump.h" | 23 #include "base/trace_event/process_memory_dump.h" |
| 24 #include "content/browser/dom_storage/dom_storage_area.h" | 24 #include "content/browser/dom_storage/dom_storage_area.h" |
| 25 #include "content/browser/dom_storage/dom_storage_database.h" | 25 #include "content/browser/dom_storage/dom_storage_database.h" |
| 26 #include "content/browser/dom_storage/dom_storage_namespace.h" | 26 #include "content/browser/dom_storage/dom_storage_namespace.h" |
| 27 #include "content/browser/dom_storage/dom_storage_task_runner.h" | 27 #include "content/browser/dom_storage/dom_storage_task_runner.h" |
| (...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 603 if (!deletable_persistent_namespace_ids_.empty()) { | 603 if (!deletable_persistent_namespace_ids_.empty()) { |
| 604 task_runner_->PostDelayedTask( | 604 task_runner_->PostDelayedTask( |
| 605 FROM_HERE, base::Bind( | 605 FROM_HERE, base::Bind( |
| 606 &DOMStorageContextImpl::DeleteNextUnusedNamespace, | 606 &DOMStorageContextImpl::DeleteNextUnusedNamespace, |
| 607 this), | 607 this), |
| 608 base::TimeDelta::FromSeconds(kSessionStoraceScavengingSeconds)); | 608 base::TimeDelta::FromSeconds(kSessionStoraceScavengingSeconds)); |
| 609 } | 609 } |
| 610 } | 610 } |
| 611 | 611 |
| 612 } // namespace content | 612 } // namespace content |
| OLD | NEW |