| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/cache_storage/cache_storage_context_impl.h" | 5 #include "content/browser/cache_storage/cache_storage_context_impl.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/sequenced_task_runner.h" |
| 9 #include "base/task_scheduler/post_task.h" | 10 #include "base/task_scheduler/post_task.h" |
| 10 #include "content/browser/blob_storage/chrome_blob_storage_context.h" | 11 #include "content/browser/blob_storage/chrome_blob_storage_context.h" |
| 11 #include "content/browser/cache_storage/cache_storage_manager.h" | 12 #include "content/browser/cache_storage/cache_storage_manager.h" |
| 12 #include "content/public/browser/browser_context.h" | 13 #include "content/public/browser/browser_context.h" |
| 13 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
| 14 #include "net/url_request/url_request_context_getter.h" | 15 #include "net/url_request/url_request_context_getter.h" |
| 15 #include "storage/browser/blob/blob_storage_context.h" | 16 #include "storage/browser/blob/blob_storage_context.h" |
| 16 #include "storage/browser/quota/quota_manager_proxy.h" | 17 #include "storage/browser/quota/quota_manager_proxy.h" |
| 17 #include "storage/browser/quota/special_storage_policy.h" | 18 #include "storage/browser/quota/special_storage_policy.h" |
| 18 | 19 |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 user_data_directory, cache_task_runner, std::move(quota_manager_proxy)); | 110 user_data_directory, cache_task_runner, std::move(quota_manager_proxy)); |
| 110 } | 111 } |
| 111 | 112 |
| 112 void CacheStorageContextImpl::ShutdownOnIO() { | 113 void CacheStorageContextImpl::ShutdownOnIO() { |
| 113 DCHECK_CURRENTLY_ON(BrowserThread::IO); | 114 DCHECK_CURRENTLY_ON(BrowserThread::IO); |
| 114 | 115 |
| 115 cache_manager_.reset(); | 116 cache_manager_.reset(); |
| 116 } | 117 } |
| 117 | 118 |
| 118 } // namespace content | 119 } // namespace content |
| OLD | NEW |