Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Side by Side Diff: content/browser/dom_storage/dom_storage_context_wrapper.cc

Issue 2579233002: Merge MemoryCoordinator and MemoryCoordinatorImpl into one class (Closed)
Patch Set: Rebase Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/files/file_path.h" 12 #include "base/files/file_path.h"
13 #include "base/location.h" 13 #include "base/location.h"
14 #include "base/memory/memory_coordinator_client_registry.h" 14 #include "base/memory/memory_coordinator_client_registry.h"
15 #include "base/memory/ptr_util.h" 15 #include "base/memory/ptr_util.h"
16 #include "base/memory/weak_ptr.h" 16 #include "base/memory/weak_ptr.h"
17 #include "base/single_thread_task_runner.h" 17 #include "base/single_thread_task_runner.h"
18 #include "base/strings/utf_string_conversions.h" 18 #include "base/strings/utf_string_conversions.h"
19 #include "base/threading/thread_task_runner_handle.h" 19 #include "base/threading/thread_task_runner_handle.h"
20 #include "components/filesystem/public/interfaces/directory.mojom.h" 20 #include "components/filesystem/public/interfaces/directory.mojom.h"
21 #include "components/leveldb/public/interfaces/leveldb.mojom.h" 21 #include "components/leveldb/public/interfaces/leveldb.mojom.h"
22 #include "content/browser/dom_storage/dom_storage_area.h" 22 #include "content/browser/dom_storage/dom_storage_area.h"
23 #include "content/browser/dom_storage/dom_storage_context_impl.h" 23 #include "content/browser/dom_storage/dom_storage_context_impl.h"
24 #include "content/browser/dom_storage/dom_storage_task_runner.h" 24 #include "content/browser/dom_storage/dom_storage_task_runner.h"
25 #include "content/browser/dom_storage/session_storage_namespace_impl.h" 25 #include "content/browser/dom_storage/session_storage_namespace_impl.h"
26 #include "content/browser/leveldb_wrapper_impl.h" 26 #include "content/browser/leveldb_wrapper_impl.h"
27 #include "content/browser/memory/memory_coordinator.h"
28 #include "content/public/browser/browser_thread.h" 27 #include "content/public/browser/browser_thread.h"
29 #include "content/public/browser/local_storage_usage_info.h" 28 #include "content/public/browser/local_storage_usage_info.h"
30 #include "content/public/browser/session_storage_usage_info.h" 29 #include "content/public/browser/session_storage_usage_info.h"
31 #include "content/public/common/content_features.h" 30 #include "content/public/common/content_features.h"
32 #include "mojo/common/common_type_converters.h" 31 #include "mojo/common/common_type_converters.h"
33 #include "services/file/public/interfaces/constants.mojom.h" 32 #include "services/file/public/interfaces/constants.mojom.h"
34 #include "services/file/public/interfaces/file_system.mojom.h" 33 #include "services/file/public/interfaces/file_system.mojom.h"
35 #include "services/service_manager/public/cpp/connection.h" 34 #include "services/service_manager/public/cpp/connection.h"
36 #include "services/service_manager/public/cpp/connector.h" 35 #include "services/service_manager/public/cpp/connector.h"
37 36
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 } 435 }
437 436
438 void DOMStorageContextWrapper::PurgeMemory(DOMStorageContextImpl::PurgeOption 437 void DOMStorageContextWrapper::PurgeMemory(DOMStorageContextImpl::PurgeOption
439 purge_option) { 438 purge_option) {
440 context_->task_runner()->PostTask( 439 context_->task_runner()->PostTask(
441 FROM_HERE, 440 FROM_HERE,
442 base::Bind(&DOMStorageContextImpl::PurgeMemory, context_, purge_option)); 441 base::Bind(&DOMStorageContextImpl::PurgeMemory, context_, purge_option));
443 } 442 }
444 443
445 } // namespace content 444 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698