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/renderer/renderer_blink_platform_impl.h" | 5 #include "content/renderer/renderer_blink_platform_impl.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
12 #include "base/guid.h" | 12 #include "base/guid.h" |
13 #include "base/lazy_instance.h" | 13 #include "base/lazy_instance.h" |
14 #include "base/location.h" | 14 #include "base/location.h" |
15 #include "base/logging.h" | 15 #include "base/logging.h" |
16 #include "base/memory/memory_coordinator_client_registry.h" | 16 #include "base/memory/memory_coordinator_client_registry.h" |
17 #include "base/memory/ptr_util.h" | 17 #include "base/memory/ptr_util.h" |
18 #include "base/memory/shared_memory.h" | 18 #include "base/memory/shared_memory.h" |
19 #include "base/metrics/histogram_macros.h" | 19 #include "base/metrics/histogram_macros.h" |
20 #include "base/numerics/safe_conversions.h" | 20 #include "base/numerics/safe_conversions.h" |
21 #include "base/single_thread_task_runner.h" | 21 #include "base/single_thread_task_runner.h" |
22 #include "base/strings/string_number_conversions.h" | 22 #include "base/strings/string_number_conversions.h" |
23 #include "base/strings/utf_string_conversions.h" | 23 #include "base/strings/utf_string_conversions.h" |
24 #include "base/threading/thread_task_runner_handle.h" | 24 #include "base/threading/thread_task_runner_handle.h" |
25 #include "build/build_config.h" | 25 #include "build/build_config.h" |
26 #include "components/url_formatter/url_formatter.h" | 26 #include "components/url_formatter/url_formatter.h" |
27 #include "content/child/blob_storage/webblobregistry_impl.h" | 27 #include "content/child/blob_storage/webblobregistry_impl.h" |
28 #include "content/child/child_shared_bitmap_manager.h" | |
29 #include "content/child/database_util.h" | 28 #include "content/child/database_util.h" |
30 #include "content/child/file_info_util.h" | 29 #include "content/child/file_info_util.h" |
31 #include "content/child/fileapi/webfilesystem_impl.h" | 30 #include "content/child/fileapi/webfilesystem_impl.h" |
32 #include "content/child/indexed_db/webidbfactory_impl.h" | 31 #include "content/child/indexed_db/webidbfactory_impl.h" |
33 #include "content/child/quota_dispatcher.h" | 32 #include "content/child/quota_dispatcher.h" |
34 #include "content/child/quota_message_filter.h" | 33 #include "content/child/quota_message_filter.h" |
35 #include "content/child/storage_util.h" | 34 #include "content/child/storage_util.h" |
36 #include "content/child/thread_safe_sender.h" | 35 #include "content/child/thread_safe_sender.h" |
37 #include "content/child/web_database_observer_impl.h" | 36 #include "content/child/web_database_observer_impl.h" |
38 #include "content/child/web_url_loader_impl.h" | 37 #include "content/child/web_url_loader_impl.h" |
(...skipping 1234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1273 //------------------------------------------------------------------------------ | 1272 //------------------------------------------------------------------------------ |
1274 void RendererBlinkPlatformImpl::requestPurgeMemory() { | 1273 void RendererBlinkPlatformImpl::requestPurgeMemory() { |
1275 // TODO(tasak|bashi): We should use ChildMemoryCoordinator here, but | 1274 // TODO(tasak|bashi): We should use ChildMemoryCoordinator here, but |
1276 // ChildMemoryCoordinator isn't always available as it's only initialized | 1275 // ChildMemoryCoordinator isn't always available as it's only initialized |
1277 // when kMemoryCoordinatorV0 is enabled. | 1276 // when kMemoryCoordinatorV0 is enabled. |
1278 // Use ChildMemoryCoordinator when memory coordinator is always enabled. | 1277 // Use ChildMemoryCoordinator when memory coordinator is always enabled. |
1279 base::MemoryCoordinatorClientRegistry::GetInstance()->PurgeMemory(); | 1278 base::MemoryCoordinatorClientRegistry::GetInstance()->PurgeMemory(); |
1280 } | 1279 } |
1281 | 1280 |
1282 } // namespace content | 1281 } // namespace content |
OLD | NEW |