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

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

Issue 2552913003: Revert of Replacing allocate bitmap IPC messages with a new Mojo interface. (Closed)
Patch Set: 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;
54 class FileSystemDispatcher; 55 class FileSystemDispatcher;
55 class InProcessChildThreadParams; 56 class InProcessChildThreadParams;
56 class NotificationDispatcher; 57 class NotificationDispatcher;
57 class PushDispatcher; 58 class PushDispatcher;
58 class ServiceWorkerMessageFilter; 59 class ServiceWorkerMessageFilter;
59 class QuotaDispatcher; 60 class QuotaDispatcher;
60 class QuotaMessageFilter; 61 class QuotaMessageFilter;
61 class ResourceDispatcher; 62 class ResourceDispatcher;
62 class ThreadSafeSender; 63 class ThreadSafeSender;
63 64
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 static std::unique_ptr<base::SharedMemory> AllocateSharedMemory( 123 static std::unique_ptr<base::SharedMemory> AllocateSharedMemory(
123 size_t buf_size, 124 size_t buf_size,
124 IPC::Sender* sender, 125 IPC::Sender* sender,
125 bool* out_of_memory); 126 bool* out_of_memory);
126 127
127 #if defined(OS_LINUX) 128 #if defined(OS_LINUX)
128 void SetThreadPriority(base::PlatformThreadId id, 129 void SetThreadPriority(base::PlatformThreadId id,
129 base::ThreadPriority priority); 130 base::ThreadPriority priority);
130 #endif 131 #endif
131 132
133 ChildSharedBitmapManager* shared_bitmap_manager() const {
134 return shared_bitmap_manager_.get();
135 }
136
132 ResourceDispatcher* resource_dispatcher() const { 137 ResourceDispatcher* resource_dispatcher() const {
133 return resource_dispatcher_.get(); 138 return resource_dispatcher_.get();
134 } 139 }
135 140
136 FileSystemDispatcher* file_system_dispatcher() const { 141 FileSystemDispatcher* file_system_dispatcher() const {
137 return file_system_dispatcher_.get(); 142 return file_system_dispatcher_.get();
138 } 143 }
139 144
140 QuotaDispatcher* quota_dispatcher() const { 145 QuotaDispatcher* quota_dispatcher() const {
141 return quota_dispatcher_.get(); 146 return quota_dispatcher_.get();
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 scoped_refptr<ChildResourceMessageFilter> resource_message_filter_; 309 scoped_refptr<ChildResourceMessageFilter> resource_message_filter_;
305 310
306 scoped_refptr<ServiceWorkerMessageFilter> service_worker_message_filter_; 311 scoped_refptr<ServiceWorkerMessageFilter> service_worker_message_filter_;
307 312
308 scoped_refptr<QuotaMessageFilter> quota_message_filter_; 313 scoped_refptr<QuotaMessageFilter> quota_message_filter_;
309 314
310 scoped_refptr<NotificationDispatcher> notification_dispatcher_; 315 scoped_refptr<NotificationDispatcher> notification_dispatcher_;
311 316
312 scoped_refptr<PushDispatcher> push_dispatcher_; 317 scoped_refptr<PushDispatcher> push_dispatcher_;
313 318
319 std::unique_ptr<ChildSharedBitmapManager> shared_bitmap_manager_;
320
314 std::unique_ptr<base::PowerMonitor> power_monitor_; 321 std::unique_ptr<base::PowerMonitor> power_monitor_;
315 322
316 scoped_refptr<base::SingleThreadTaskRunner> browser_process_io_runner_; 323 scoped_refptr<base::SingleThreadTaskRunner> browser_process_io_runner_;
317 324
318 std::unique_ptr<base::WeakPtrFactory<ChildThreadImpl>> 325 std::unique_ptr<base::WeakPtrFactory<ChildThreadImpl>>
319 channel_connected_factory_; 326 channel_connected_factory_;
320 327
321 base::WeakPtrFactory<ChildThreadImpl> weak_factory_; 328 base::WeakPtrFactory<ChildThreadImpl> weak_factory_;
322 329
323 DISALLOW_COPY_AND_ASSIGN(ChildThreadImpl); 330 DISALLOW_COPY_AND_ASSIGN(ChildThreadImpl);
(...skipping 28 matching lines...) Expand all
352 359
353 private: 360 private:
354 struct Options options_; 361 struct Options options_;
355 362
356 DISALLOW_COPY_AND_ASSIGN(Builder); 363 DISALLOW_COPY_AND_ASSIGN(Builder);
357 }; 364 };
358 365
359 } // namespace content 366 } // namespace content
360 367
361 #endif // CONTENT_CHILD_CHILD_THREAD_IMPL_H_ 368 #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