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 #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" | |
24 #include "content/common/cache_storage/cache_storage_types.h" | 23 #include "content/common/cache_storage/cache_storage_types.h" |
25 #include "content/common/host_shared_bitmap_manager.h" | 24 #include "content/common/host_shared_bitmap_manager.h" |
26 #include "content/common/render_message_filter.mojom.h" | 25 #include "content/common/render_message_filter.mojom.h" |
27 #include "content/public/browser/browser_associated_interface.h" | 26 #include "content/public/browser/browser_associated_interface.h" |
28 #include "content/public/browser/browser_message_filter.h" | 27 #include "content/public/browser/browser_message_filter.h" |
29 #include "gpu/config/gpu_info.h" | 28 #include "gpu/config/gpu_info.h" |
30 #include "ipc/message_filter.h" | 29 #include "ipc/message_filter.h" |
31 #include "third_party/WebKit/public/web/WebPopupType.h" | 30 #include "third_party/WebKit/public/web/WebPopupType.h" |
32 #include "ui/gfx/geometry/rect.h" | 31 #include "ui/gfx/geometry/rect.h" |
33 #include "ui/gfx/gpu_memory_buffer.h" | 32 #include "ui/gfx/gpu_memory_buffer.h" |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 IPC::Message* reply_msg); | 153 IPC::Message* reply_msg); |
155 void OnAllocateSharedBitmap(uint32_t buffer_size, | 154 void OnAllocateSharedBitmap(uint32_t buffer_size, |
156 const cc::SharedBitmapId& id, | 155 const cc::SharedBitmapId& id, |
157 IPC::Message* reply_msg); | 156 IPC::Message* reply_msg); |
158 void OnAllocatedSharedBitmap(size_t buffer_size, | 157 void OnAllocatedSharedBitmap(size_t buffer_size, |
159 const base::SharedMemoryHandle& handle, | 158 const base::SharedMemoryHandle& handle, |
160 const cc::SharedBitmapId& id); | 159 const cc::SharedBitmapId& id); |
161 void OnDeletedSharedBitmap(const cc::SharedBitmapId& id); | 160 void OnDeletedSharedBitmap(const cc::SharedBitmapId& id); |
162 void OnResolveProxy(const GURL& url, IPC::Message* reply_msg); | 161 void OnResolveProxy(const GURL& url, IPC::Message* reply_msg); |
163 | 162 |
164 // Browser side discardable shared memory allocation. | |
165 void AllocateLockedDiscardableSharedMemoryOnFileThread( | |
166 uint32_t size, | |
167 discardable_memory::DiscardableSharedMemoryId id, | |
168 IPC::Message* reply_message); | |
169 void OnAllocateLockedDiscardableSharedMemory( | |
170 uint32_t size, | |
171 discardable_memory::DiscardableSharedMemoryId id, | |
172 IPC::Message* reply_message); | |
173 void DeletedDiscardableSharedMemoryOnFileThread( | |
174 discardable_memory::DiscardableSharedMemoryId id); | |
175 void OnDeletedDiscardableSharedMemory( | |
176 discardable_memory::DiscardableSharedMemoryId id); | |
177 | |
178 #if defined(OS_LINUX) | 163 #if defined(OS_LINUX) |
179 void SetThreadPriorityOnFileThread(base::PlatformThreadId ns_tid, | 164 void SetThreadPriorityOnFileThread(base::PlatformThreadId ns_tid, |
180 base::ThreadPriority priority); | 165 base::ThreadPriority priority); |
181 void OnSetThreadPriority(base::PlatformThreadId ns_tid, | 166 void OnSetThreadPriority(base::PlatformThreadId ns_tid, |
182 base::ThreadPriority priority); | 167 base::ThreadPriority priority); |
183 #endif | 168 #endif |
184 | 169 |
185 void OnCacheableMetadataAvailable(const GURL& url, | 170 void OnCacheableMetadataAvailable(const GURL& url, |
186 base::Time expected_response_time, | 171 base::Time expected_response_time, |
187 const std::vector<char>& data); | 172 const std::vector<char>& data); |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 CacheStorageContextImpl* cache_storage_context_; | 233 CacheStorageContextImpl* cache_storage_context_; |
249 | 234 |
250 base::WeakPtrFactory<RenderMessageFilter> weak_ptr_factory_; | 235 base::WeakPtrFactory<RenderMessageFilter> weak_ptr_factory_; |
251 | 236 |
252 DISALLOW_COPY_AND_ASSIGN(RenderMessageFilter); | 237 DISALLOW_COPY_AND_ASSIGN(RenderMessageFilter); |
253 }; | 238 }; |
254 | 239 |
255 } // namespace content | 240 } // namespace content |
256 | 241 |
257 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_ | 242 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_ |
OLD | NEW |