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

Side by Side Diff: content/child/child_thread.h

Issue 148243013: Add shared bitmap managers for browser and renderer processes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « content/child/child_shared_bitmap_manager.cc ('k') | content/child/child_thread.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_CHILD_CHILD_THREAD_H_ 5 #ifndef CONTENT_CHILD_CHILD_THREAD_H_
6 #define CONTENT_CHILD_CHILD_THREAD_H_ 6 #define CONTENT_CHILD_CHILD_THREAD_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 20 matching lines...) Expand all
31 class SyncMessageFilter; 31 class SyncMessageFilter;
32 } // namespace IPC 32 } // namespace IPC
33 33
34 namespace blink { 34 namespace blink {
35 class WebFrame; 35 class WebFrame;
36 } // namespace blink 36 } // namespace blink
37 37
38 namespace content { 38 namespace content {
39 class ChildHistogramMessageFilter; 39 class ChildHistogramMessageFilter;
40 class ChildResourceMessageFilter; 40 class ChildResourceMessageFilter;
41 class ChildSharedBitmapManager;
41 class FileSystemDispatcher; 42 class FileSystemDispatcher;
42 class ServiceWorkerDispatcher; 43 class ServiceWorkerDispatcher;
43 class ServiceWorkerMessageFilter; 44 class ServiceWorkerMessageFilter;
44 class QuotaDispatcher; 45 class QuotaDispatcher;
45 class QuotaMessageFilter; 46 class QuotaMessageFilter;
46 class ResourceDispatcher; 47 class ResourceDispatcher;
47 class SocketStreamDispatcher; 48 class SocketStreamDispatcher;
48 class ThreadSafeSender; 49 class ThreadSafeSender;
49 class WebSocketDispatcher; 50 class WebSocketDispatcher;
50 51
(...skipping 30 matching lines...) Expand all
81 // maps in into the address space. Returns NULL of failure. 82 // maps in into the address space. Returns NULL of failure.
82 // Note: On posix, this requires a sync IPC to the browser process, 83 // Note: On posix, this requires a sync IPC to the browser process,
83 // but on windows the child process directly allocates the block. 84 // but on windows the child process directly allocates the block.
84 base::SharedMemory* AllocateSharedMemory(size_t buf_size); 85 base::SharedMemory* AllocateSharedMemory(size_t buf_size);
85 86
86 // A static variant that can be called on background threads provided 87 // A static variant that can be called on background threads provided
87 // the |sender| passed in is safe to use on background threads. 88 // the |sender| passed in is safe to use on background threads.
88 static base::SharedMemory* AllocateSharedMemory(size_t buf_size, 89 static base::SharedMemory* AllocateSharedMemory(size_t buf_size,
89 IPC::Sender* sender); 90 IPC::Sender* sender);
90 91
92 ChildSharedBitmapManager* shared_bitmap_manager() const {
93 return shared_bitmap_manager_.get();
94 }
95
91 ResourceDispatcher* resource_dispatcher() const { 96 ResourceDispatcher* resource_dispatcher() const {
92 return resource_dispatcher_.get(); 97 return resource_dispatcher_.get();
93 } 98 }
94 99
95 SocketStreamDispatcher* socket_stream_dispatcher() const { 100 SocketStreamDispatcher* socket_stream_dispatcher() const {
96 return socket_stream_dispatcher_.get(); 101 return socket_stream_dispatcher_.get();
97 } 102 }
98 103
99 WebSocketDispatcher* websocket_dispatcher() const { 104 WebSocketDispatcher* websocket_dispatcher() const {
100 return websocket_dispatcher_.get(); 105 return websocket_dispatcher_.get();
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 scoped_ptr<QuotaDispatcher> quota_dispatcher_; 217 scoped_ptr<QuotaDispatcher> quota_dispatcher_;
213 218
214 scoped_refptr<ChildHistogramMessageFilter> histogram_message_filter_; 219 scoped_refptr<ChildHistogramMessageFilter> histogram_message_filter_;
215 220
216 scoped_refptr<ChildResourceMessageFilter> resource_message_filter_; 221 scoped_refptr<ChildResourceMessageFilter> resource_message_filter_;
217 222
218 scoped_refptr<ServiceWorkerMessageFilter> service_worker_message_filter_; 223 scoped_refptr<ServiceWorkerMessageFilter> service_worker_message_filter_;
219 224
220 scoped_refptr<QuotaMessageFilter> quota_message_filter_; 225 scoped_refptr<QuotaMessageFilter> quota_message_filter_;
221 226
227 scoped_ptr<ChildSharedBitmapManager> shared_bitmap_manager_;
228
222 base::WeakPtrFactory<ChildThread> channel_connected_factory_; 229 base::WeakPtrFactory<ChildThread> channel_connected_factory_;
223 230
224 // Observes the trace event system. When tracing is enabled, optionally 231 // Observes the trace event system. When tracing is enabled, optionally
225 // starts profiling the tcmalloc heap. 232 // starts profiling the tcmalloc heap.
226 scoped_ptr<base::debug::TraceMemoryController> trace_memory_controller_; 233 scoped_ptr<base::debug::TraceMemoryController> trace_memory_controller_;
227 234
228 scoped_ptr<base::PowerMonitor> power_monitor_; 235 scoped_ptr<base::PowerMonitor> power_monitor_;
229 236
230 bool in_browser_process_; 237 bool in_browser_process_;
231 238
232 DISALLOW_COPY_AND_ASSIGN(ChildThread); 239 DISALLOW_COPY_AND_ASSIGN(ChildThread);
233 }; 240 };
234 241
235 } // namespace content 242 } // namespace content
236 243
237 #endif // CONTENT_CHILD_CHILD_THREAD_H_ 244 #endif // CONTENT_CHILD_CHILD_THREAD_H_
OLDNEW
« no previous file with comments | « content/child/child_shared_bitmap_manager.cc ('k') | content/child/child_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698