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

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: addressed comments 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
« no previous file with comments | « content/browser/browser_main_loop.cc ('k') | content/browser/memory/memory_coordinator.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/sequenced_task_runner.h" 17 #include "base/sequenced_task_runner.h"
18 #include "base/single_thread_task_runner.h" 18 #include "base/single_thread_task_runner.h"
19 #include "base/strings/utf_string_conversions.h" 19 #include "base/strings/utf_string_conversions.h"
20 #include "base/task_scheduler/post_task.h" 20 #include "base/task_scheduler/post_task.h"
21 #include "base/threading/thread_task_runner_handle.h" 21 #include "base/threading/thread_task_runner_handle.h"
22 #include "components/filesystem/public/interfaces/directory.mojom.h" 22 #include "components/filesystem/public/interfaces/directory.mojom.h"
23 #include "components/leveldb/public/interfaces/leveldb.mojom.h" 23 #include "components/leveldb/public/interfaces/leveldb.mojom.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_context_impl.h" 25 #include "content/browser/dom_storage/dom_storage_context_impl.h"
26 #include "content/browser/dom_storage/dom_storage_task_runner.h" 26 #include "content/browser/dom_storage/dom_storage_task_runner.h"
27 #include "content/browser/dom_storage/session_storage_namespace_impl.h" 27 #include "content/browser/dom_storage/session_storage_namespace_impl.h"
28 #include "content/browser/leveldb_wrapper_impl.h" 28 #include "content/browser/leveldb_wrapper_impl.h"
29 #include "content/browser/memory/memory_coordinator.h"
30 #include "content/public/browser/browser_thread.h" 29 #include "content/public/browser/browser_thread.h"
31 #include "content/public/browser/content_browser_client.h" 30 #include "content/public/browser/content_browser_client.h"
32 #include "content/public/browser/local_storage_usage_info.h" 31 #include "content/public/browser/local_storage_usage_info.h"
33 #include "content/public/browser/session_storage_usage_info.h" 32 #include "content/public/browser/session_storage_usage_info.h"
34 #include "content/public/common/content_client.h" 33 #include "content/public/common/content_client.h"
35 #include "content/public/common/content_features.h" 34 #include "content/public/common/content_features.h"
36 #include "mojo/common/common_type_converters.h" 35 #include "mojo/common/common_type_converters.h"
37 #include "services/file/public/interfaces/constants.mojom.h" 36 #include "services/file/public/interfaces/constants.mojom.h"
38 #include "services/file/public/interfaces/file_system.mojom.h" 37 #include "services/file/public/interfaces/file_system.mojom.h"
39 #include "services/service_manager/public/cpp/connection.h" 38 #include "services/service_manager/public/cpp/connection.h"
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 } 462 }
464 463
465 void DOMStorageContextWrapper::PurgeMemory(DOMStorageContextImpl::PurgeOption 464 void DOMStorageContextWrapper::PurgeMemory(DOMStorageContextImpl::PurgeOption
466 purge_option) { 465 purge_option) {
467 context_->task_runner()->PostTask( 466 context_->task_runner()->PostTask(
468 FROM_HERE, 467 FROM_HERE,
469 base::Bind(&DOMStorageContextImpl::PurgeMemory, context_, purge_option)); 468 base::Bind(&DOMStorageContextImpl::PurgeMemory, context_, purge_option));
470 } 469 }
471 470
472 } // namespace content 471 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/browser_main_loop.cc ('k') | content/browser/memory/memory_coordinator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698