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

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

Issue 2485623002: discardable_memory: Using mojo IPC to replace Chrome IPC (Closed)
Patch Set: Update 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"
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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 IPC::Message* reply_msg); 156 IPC::Message* reply_msg);
158 void OnAllocateSharedBitmap(uint32_t buffer_size, 157 void OnAllocateSharedBitmap(uint32_t buffer_size,
159 const cc::SharedBitmapId& id, 158 const cc::SharedBitmapId& id,
160 IPC::Message* reply_msg); 159 IPC::Message* reply_msg);
161 void OnAllocatedSharedBitmap(size_t buffer_size, 160 void OnAllocatedSharedBitmap(size_t buffer_size,
162 const base::SharedMemoryHandle& handle, 161 const base::SharedMemoryHandle& handle,
163 const cc::SharedBitmapId& id); 162 const cc::SharedBitmapId& id);
164 void OnDeletedSharedBitmap(const cc::SharedBitmapId& id); 163 void OnDeletedSharedBitmap(const cc::SharedBitmapId& id);
165 void OnResolveProxy(const GURL& url, IPC::Message* reply_msg); 164 void OnResolveProxy(const GURL& url, IPC::Message* reply_msg);
166 165
167 // Browser side discardable shared memory allocation.
168 void AllocateLockedDiscardableSharedMemoryOnFileThread(
169 uint32_t size,
170 discardable_memory::DiscardableSharedMemoryId id,
171 IPC::Message* reply_message);
172 void OnAllocateLockedDiscardableSharedMemory(
173 uint32_t size,
174 discardable_memory::DiscardableSharedMemoryId id,
175 IPC::Message* reply_message);
176 void DeletedDiscardableSharedMemoryOnFileThread(
177 discardable_memory::DiscardableSharedMemoryId id);
178 void OnDeletedDiscardableSharedMemory(
179 discardable_memory::DiscardableSharedMemoryId id);
180
181 #if defined(OS_LINUX) 166 #if defined(OS_LINUX)
182 void SetThreadPriorityOnFileThread(base::PlatformThreadId ns_tid, 167 void SetThreadPriorityOnFileThread(base::PlatformThreadId ns_tid,
183 base::ThreadPriority priority); 168 base::ThreadPriority priority);
184 void OnSetThreadPriority(base::PlatformThreadId ns_tid, 169 void OnSetThreadPriority(base::PlatformThreadId ns_tid,
185 base::ThreadPriority priority); 170 base::ThreadPriority priority);
186 #endif 171 #endif
187 172
188 void OnCacheableMetadataAvailable(const GURL& url, 173 void OnCacheableMetadataAvailable(const GURL& url,
189 base::Time expected_response_time, 174 base::Time expected_response_time,
190 const std::vector<char>& data); 175 const std::vector<char>& data);
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 CacheStorageContextImpl* cache_storage_context_; 237 CacheStorageContextImpl* cache_storage_context_;
253 238
254 base::WeakPtrFactory<RenderMessageFilter> weak_ptr_factory_; 239 base::WeakPtrFactory<RenderMessageFilter> weak_ptr_factory_;
255 240
256 DISALLOW_COPY_AND_ASSIGN(RenderMessageFilter); 241 DISALLOW_COPY_AND_ASSIGN(RenderMessageFilter);
257 }; 242 };
258 243
259 } // namespace content 244 } // namespace content
260 245
261 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_ 246 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698