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

Side by Side Diff: content/common/host_discardable_shared_memory_manager.h

Issue 1967823004: Fix include path for moved thread_task_runner_handle.h header in content/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@a1_move_task_runner_handle
Patch Set: Created 4 years, 7 months 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef CONTENT_COMMON_HOST_DISCARDABLE_SHARED_MEMORY_MANAGER_H_ 5 #ifndef CONTENT_COMMON_HOST_DISCARDABLE_SHARED_MEMORY_MANAGER_H_
6 #define CONTENT_COMMON_HOST_DISCARDABLE_SHARED_MEMORY_MANAGER_H_ 6 #define CONTENT_COMMON_HOST_DISCARDABLE_SHARED_MEMORY_MANAGER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <memory> 11 #include <memory>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/callback.h" 14 #include "base/callback.h"
15 #include "base/containers/hash_tables.h" 15 #include "base/containers/hash_tables.h"
16 #include "base/format_macros.h" 16 #include "base/format_macros.h"
17 #include "base/macros.h" 17 #include "base/macros.h"
18 #include "base/memory/discardable_memory_allocator.h" 18 #include "base/memory/discardable_memory_allocator.h"
19 #include "base/memory/discardable_shared_memory.h" 19 #include "base/memory/discardable_shared_memory.h"
20 #include "base/memory/memory_pressure_listener.h" 20 #include "base/memory/memory_pressure_listener.h"
21 #include "base/memory/ref_counted.h" 21 #include "base/memory/ref_counted.h"
22 #include "base/memory/shared_memory.h" 22 #include "base/memory/shared_memory.h"
23 #include "base/memory/weak_ptr.h" 23 #include "base/memory/weak_ptr.h"
24 #include "base/process/process_handle.h" 24 #include "base/process/process_handle.h"
25 #include "base/synchronization/lock.h" 25 #include "base/synchronization/lock.h"
26 #include "base/thread_task_runner_handle.h" 26 #include "base/threading/thread_task_runner_handle.h"
27 #include "base/trace_event/memory_dump_provider.h" 27 #include "base/trace_event/memory_dump_provider.h"
28 #include "content/common/content_export.h" 28 #include "content/common/content_export.h"
29 29
30 namespace content { 30 namespace content {
31 typedef int32_t DiscardableSharedMemoryId; 31 typedef int32_t DiscardableSharedMemoryId;
32 32
33 // Implementation of DiscardableMemoryAllocator that allocates and manages 33 // Implementation of DiscardableMemoryAllocator that allocates and manages
34 // discardable memory segments for the browser process and child processes. 34 // discardable memory segments for the browser process and child processes.
35 // This class is thread-safe and instances can safely be used on any thread. 35 // This class is thread-safe and instances can safely be used on any thread.
36 class CONTENT_EXPORT HostDiscardableSharedMemoryManager 36 class CONTENT_EXPORT HostDiscardableSharedMemoryManager
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 base::Closure enforce_memory_policy_callback_; 139 base::Closure enforce_memory_policy_callback_;
140 bool enforce_memory_policy_pending_; 140 bool enforce_memory_policy_pending_;
141 base::WeakPtrFactory<HostDiscardableSharedMemoryManager> weak_ptr_factory_; 141 base::WeakPtrFactory<HostDiscardableSharedMemoryManager> weak_ptr_factory_;
142 142
143 DISALLOW_COPY_AND_ASSIGN(HostDiscardableSharedMemoryManager); 143 DISALLOW_COPY_AND_ASSIGN(HostDiscardableSharedMemoryManager);
144 }; 144 };
145 145
146 } // namespace content 146 } // namespace content
147 147
148 #endif // CONTENT_COMMON_HOST_DISCARDABLE_SHARED_MEMORY_MANAGER_H_ 148 #endif // CONTENT_COMMON_HOST_DISCARDABLE_SHARED_MEMORY_MANAGER_H_
OLDNEW
« no previous file with comments | « content/common/database_connections_unittest.cc ('k') | content/common/host_discardable_shared_memory_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698