OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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/dom_storage/dom_storage_context_wrapper.h" | 5 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/bind_helpers.h" | 11 #include "base/bind_helpers.h" |
12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
13 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
14 #include "base/location.h" | 14 #include "base/location.h" |
15 #include "base/memory/memory_coordinator_client_registry.h" | 15 #include "base/memory/memory_coordinator_client_registry.h" |
16 #include "base/memory/ptr_util.h" | 16 #include "base/memory/ptr_util.h" |
17 #include "base/memory/weak_ptr.h" | 17 #include "base/memory/weak_ptr.h" |
18 #include "base/sequenced_task_runner.h" | 18 #include "base/sequenced_task_runner.h" |
19 #include "base/single_thread_task_runner.h" | 19 #include "base/single_thread_task_runner.h" |
20 #include "base/strings/utf_string_conversions.h" | 20 #include "base/strings/utf_string_conversions.h" |
21 #include "base/task_scheduler/post_task.h" | 21 #include "base/task_scheduler/post_task.h" |
| 22 #include "base/threading/sequenced_worker_pool.h" |
22 #include "base/threading/thread_task_runner_handle.h" | 23 #include "base/threading/thread_task_runner_handle.h" |
23 #include "content/browser/dom_storage/dom_storage_area.h" | 24 #include "content/browser/dom_storage/dom_storage_area.h" |
24 #include "content/browser/dom_storage/dom_storage_context_impl.h" | 25 #include "content/browser/dom_storage/dom_storage_context_impl.h" |
25 #include "content/browser/dom_storage/dom_storage_task_runner.h" | 26 #include "content/browser/dom_storage/dom_storage_task_runner.h" |
26 #include "content/browser/dom_storage/local_storage_context_mojo.h" | 27 #include "content/browser/dom_storage/local_storage_context_mojo.h" |
27 #include "content/browser/dom_storage/session_storage_namespace_impl.h" | 28 #include "content/browser/dom_storage/session_storage_namespace_impl.h" |
28 #include "content/public/browser/browser_thread.h" | 29 #include "content/public/browser/browser_thread.h" |
29 #include "content/public/browser/content_browser_client.h" | 30 #include "content/public/browser/content_browser_client.h" |
30 #include "content/public/browser/local_storage_usage_info.h" | 31 #include "content/public/browser/local_storage_usage_info.h" |
31 #include "content/public/browser/session_storage_usage_info.h" | 32 #include "content/public/browser/session_storage_usage_info.h" |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 GetLocalStorageUsageCallback callback, | 291 GetLocalStorageUsageCallback callback, |
291 std::vector<LocalStorageUsageInfo> usage) { | 292 std::vector<LocalStorageUsageInfo> usage) { |
292 context_->task_runner()->PostShutdownBlockingTask( | 293 context_->task_runner()->PostShutdownBlockingTask( |
293 FROM_HERE, DOMStorageTaskRunner::PRIMARY_SEQUENCE, | 294 FROM_HERE, DOMStorageTaskRunner::PRIMARY_SEQUENCE, |
294 base::Bind(&GetLocalStorageUsageHelper, base::Passed(&usage), | 295 base::Bind(&GetLocalStorageUsageHelper, base::Passed(&usage), |
295 base::RetainedRef(base::ThreadTaskRunnerHandle::Get()), | 296 base::RetainedRef(base::ThreadTaskRunnerHandle::Get()), |
296 base::RetainedRef(context_), callback)); | 297 base::RetainedRef(context_), callback)); |
297 } | 298 } |
298 | 299 |
299 } // namespace content | 300 } // namespace content |
OLD | NEW |