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

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

Issue 2488913003: Replacing allocate bitmap IPC messages with a new Mojo interface. (Closed)
Patch Set: Synced Created 4 years 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
« no previous file with comments | « content/child/child_shared_bitmap_manager.cc ('k') | content/child/child_thread_impl.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_IMPL_H_ 5 #ifndef CONTENT_CHILD_CHILD_THREAD_IMPL_H_
6 #define CONTENT_CHILD_CHILD_THREAD_IMPL_H_ 6 #define CONTENT_CHILD_CHILD_THREAD_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 namespace mojo { 45 namespace mojo {
46 namespace edk { 46 namespace edk {
47 class ScopedIPCSupport; 47 class ScopedIPCSupport;
48 } // namespace edk 48 } // namespace edk
49 } // namespace mojo 49 } // namespace mojo
50 50
51 namespace content { 51 namespace content {
52 class ChildHistogramMessageFilter; 52 class ChildHistogramMessageFilter;
53 class ChildResourceMessageFilter; 53 class ChildResourceMessageFilter;
54 class ChildSharedBitmapManager;
55 class FileSystemDispatcher; 54 class FileSystemDispatcher;
56 class InProcessChildThreadParams; 55 class InProcessChildThreadParams;
57 class NotificationDispatcher; 56 class NotificationDispatcher;
58 class PushDispatcher; 57 class PushDispatcher;
59 class ServiceWorkerMessageFilter; 58 class ServiceWorkerMessageFilter;
60 class QuotaDispatcher; 59 class QuotaDispatcher;
61 class QuotaMessageFilter; 60 class QuotaMessageFilter;
62 class ResourceDispatcher; 61 class ResourceDispatcher;
63 class ThreadSafeSender; 62 class ThreadSafeSender;
64 63
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 static std::unique_ptr<base::SharedMemory> AllocateSharedMemory( 122 static std::unique_ptr<base::SharedMemory> AllocateSharedMemory(
124 size_t buf_size, 123 size_t buf_size,
125 IPC::Sender* sender, 124 IPC::Sender* sender,
126 bool* out_of_memory); 125 bool* out_of_memory);
127 126
128 #if defined(OS_LINUX) 127 #if defined(OS_LINUX)
129 void SetThreadPriority(base::PlatformThreadId id, 128 void SetThreadPriority(base::PlatformThreadId id,
130 base::ThreadPriority priority); 129 base::ThreadPriority priority);
131 #endif 130 #endif
132 131
133 ChildSharedBitmapManager* shared_bitmap_manager() const {
134 return shared_bitmap_manager_.get();
135 }
136
137 ResourceDispatcher* resource_dispatcher() const { 132 ResourceDispatcher* resource_dispatcher() const {
138 return resource_dispatcher_.get(); 133 return resource_dispatcher_.get();
139 } 134 }
140 135
141 FileSystemDispatcher* file_system_dispatcher() const { 136 FileSystemDispatcher* file_system_dispatcher() const {
142 return file_system_dispatcher_.get(); 137 return file_system_dispatcher_.get();
143 } 138 }
144 139
145 QuotaDispatcher* quota_dispatcher() const { 140 QuotaDispatcher* quota_dispatcher() const {
146 return quota_dispatcher_.get(); 141 return quota_dispatcher_.get();
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 scoped_refptr<ChildResourceMessageFilter> resource_message_filter_; 304 scoped_refptr<ChildResourceMessageFilter> resource_message_filter_;
310 305
311 scoped_refptr<ServiceWorkerMessageFilter> service_worker_message_filter_; 306 scoped_refptr<ServiceWorkerMessageFilter> service_worker_message_filter_;
312 307
313 scoped_refptr<QuotaMessageFilter> quota_message_filter_; 308 scoped_refptr<QuotaMessageFilter> quota_message_filter_;
314 309
315 scoped_refptr<NotificationDispatcher> notification_dispatcher_; 310 scoped_refptr<NotificationDispatcher> notification_dispatcher_;
316 311
317 scoped_refptr<PushDispatcher> push_dispatcher_; 312 scoped_refptr<PushDispatcher> push_dispatcher_;
318 313
319 std::unique_ptr<ChildSharedBitmapManager> shared_bitmap_manager_;
320
321 std::unique_ptr<base::PowerMonitor> power_monitor_; 314 std::unique_ptr<base::PowerMonitor> power_monitor_;
322 315
323 scoped_refptr<base::SingleThreadTaskRunner> browser_process_io_runner_; 316 scoped_refptr<base::SingleThreadTaskRunner> browser_process_io_runner_;
324 317
325 std::unique_ptr<base::WeakPtrFactory<ChildThreadImpl>> 318 std::unique_ptr<base::WeakPtrFactory<ChildThreadImpl>>
326 channel_connected_factory_; 319 channel_connected_factory_;
327 320
328 base::WeakPtrFactory<ChildThreadImpl> weak_factory_; 321 base::WeakPtrFactory<ChildThreadImpl> weak_factory_;
329 322
330 DISALLOW_COPY_AND_ASSIGN(ChildThreadImpl); 323 DISALLOW_COPY_AND_ASSIGN(ChildThreadImpl);
(...skipping 28 matching lines...) Expand all
359 352
360 private: 353 private:
361 struct Options options_; 354 struct Options options_;
362 355
363 DISALLOW_COPY_AND_ASSIGN(Builder); 356 DISALLOW_COPY_AND_ASSIGN(Builder);
364 }; 357 };
365 358
366 } // namespace content 359 } // namespace content
367 360
368 #endif // CONTENT_CHILD_CHILD_THREAD_IMPL_H_ 361 #endif // CONTENT_CHILD_CHILD_THREAD_IMPL_H_
OLDNEW
« no previous file with comments | « content/child/child_shared_bitmap_manager.cc ('k') | content/child/child_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698