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

Side by Side Diff: content/browser/renderer_host/render_message_filter.h

Issue 2459733002: Move discardable memory to //components from //content (Closed)
Patch Set: Fix build error Created 4 years, 1 month 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 (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 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <list> 11 #include <list>
12 #include <string> 12 #include <string>
13 #include <vector> 13 #include <vector>
14 14
15 #include "base/files/file_path.h" 15 #include "base/files/file_path.h"
16 #include "base/macros.h" 16 #include "base/macros.h"
17 #include "base/memory/shared_memory.h" 17 #include "base/memory/shared_memory.h"
18 #include "base/memory/weak_ptr.h" 18 #include "base/memory/weak_ptr.h"
19 #include "base/sequenced_task_runner_helpers.h" 19 #include "base/sequenced_task_runner_helpers.h"
20 #include "base/strings/string16.h" 20 #include "base/strings/string16.h"
21 #include "build/build_config.h" 21 #include "build/build_config.h"
22 #include "cc/resources/shared_bitmap_manager.h" 22 #include "cc/resources/shared_bitmap_manager.h"
23 #include "components/discardable_memory/service/discardable_shared_memory_manage r.h"
23 #include "content/common/cache_storage/cache_storage_types.h" 24 #include "content/common/cache_storage/cache_storage_types.h"
24 #include "content/common/host_discardable_shared_memory_manager.h"
25 #include "content/common/host_shared_bitmap_manager.h" 25 #include "content/common/host_shared_bitmap_manager.h"
26 #include "content/common/render_message_filter.mojom.h" 26 #include "content/common/render_message_filter.mojom.h"
27 #include "content/public/browser/browser_associated_interface.h" 27 #include "content/public/browser/browser_associated_interface.h"
28 #include "content/public/browser/browser_message_filter.h" 28 #include "content/public/browser/browser_message_filter.h"
29 #include "gpu/config/gpu_info.h" 29 #include "gpu/config/gpu_info.h"
30 #include "ipc/message_filter.h" 30 #include "ipc/message_filter.h"
31 #include "third_party/WebKit/public/web/WebPopupType.h" 31 #include "third_party/WebKit/public/web/WebPopupType.h"
32 #include "ui/gfx/geometry/rect.h" 32 #include "ui/gfx/geometry/rect.h"
33 #include "ui/gfx/gpu_memory_buffer.h" 33 #include "ui/gfx/gpu_memory_buffer.h"
34 #include "ui/gfx/native_widget_types.h" 34 #include "ui/gfx/native_widget_types.h"
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 IPC::Message* reply_msg); 160 IPC::Message* reply_msg);
161 void OnAllocatedSharedBitmap(size_t buffer_size, 161 void OnAllocatedSharedBitmap(size_t buffer_size,
162 const base::SharedMemoryHandle& handle, 162 const base::SharedMemoryHandle& handle,
163 const cc::SharedBitmapId& id); 163 const cc::SharedBitmapId& id);
164 void OnDeletedSharedBitmap(const cc::SharedBitmapId& id); 164 void OnDeletedSharedBitmap(const cc::SharedBitmapId& id);
165 void OnResolveProxy(const GURL& url, IPC::Message* reply_msg); 165 void OnResolveProxy(const GURL& url, IPC::Message* reply_msg);
166 166
167 // Browser side discardable shared memory allocation. 167 // Browser side discardable shared memory allocation.
168 void AllocateLockedDiscardableSharedMemoryOnFileThread( 168 void AllocateLockedDiscardableSharedMemoryOnFileThread(
169 uint32_t size, 169 uint32_t size,
170 DiscardableSharedMemoryId id, 170 discardable_memory::DiscardableSharedMemoryId id,
171 IPC::Message* reply_message); 171 IPC::Message* reply_message);
172 void OnAllocateLockedDiscardableSharedMemory(uint32_t size, 172 void OnAllocateLockedDiscardableSharedMemory(
173 DiscardableSharedMemoryId id, 173 uint32_t size,
174 IPC::Message* reply_message); 174 discardable_memory::DiscardableSharedMemoryId id,
175 void DeletedDiscardableSharedMemoryOnFileThread(DiscardableSharedMemoryId id); 175 IPC::Message* reply_message);
176 void OnDeletedDiscardableSharedMemory(DiscardableSharedMemoryId id); 176 void DeletedDiscardableSharedMemoryOnFileThread(
177 discardable_memory::DiscardableSharedMemoryId id);
178 void OnDeletedDiscardableSharedMemory(
179 discardable_memory::DiscardableSharedMemoryId id);
177 180
178 #if defined(OS_LINUX) 181 #if defined(OS_LINUX)
179 void SetThreadPriorityOnFileThread(base::PlatformThreadId ns_tid, 182 void SetThreadPriorityOnFileThread(base::PlatformThreadId ns_tid,
180 base::ThreadPriority priority); 183 base::ThreadPriority priority);
181 void OnSetThreadPriority(base::PlatformThreadId ns_tid, 184 void OnSetThreadPriority(base::PlatformThreadId ns_tid,
182 base::ThreadPriority priority); 185 base::ThreadPriority priority);
183 #endif 186 #endif
184 187
185 void OnCacheableMetadataAvailable(const GURL& url, 188 void OnCacheableMetadataAvailable(const GURL& url,
186 base::Time expected_response_time, 189 base::Time expected_response_time,
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 CacheStorageContextImpl* cache_storage_context_; 252 CacheStorageContextImpl* cache_storage_context_;
250 253
251 base::WeakPtrFactory<RenderMessageFilter> weak_ptr_factory_; 254 base::WeakPtrFactory<RenderMessageFilter> weak_ptr_factory_;
252 255
253 DISALLOW_COPY_AND_ASSIGN(RenderMessageFilter); 256 DISALLOW_COPY_AND_ASSIGN(RenderMessageFilter);
254 }; 257 };
255 258
256 } // namespace content 259 } // namespace content
257 260
258 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_ 261 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_
OLDNEW
« no previous file with comments | « content/browser/browser_main_loop.cc ('k') | content/browser/renderer_host/render_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698