| 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_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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 } // namespace edk | 48 } // namespace edk |
| 49 } // namespace mojo | 49 } // namespace mojo |
| 50 | 50 |
| 51 namespace discardable_memory { | 51 namespace discardable_memory { |
| 52 class ClientDiscardableSharedMemoryManager; | 52 class ClientDiscardableSharedMemoryManager; |
| 53 } // namespace discardable_memory | 53 } // namespace discardable_memory |
| 54 | 54 |
| 55 namespace content { | 55 namespace content { |
| 56 class ChildHistogramMessageFilter; | 56 class ChildHistogramMessageFilter; |
| 57 class ChildResourceMessageFilter; | 57 class ChildResourceMessageFilter; |
| 58 class ChildSharedBitmapManager; | |
| 59 class FileSystemDispatcher; | 58 class FileSystemDispatcher; |
| 60 class InProcessChildThreadParams; | 59 class InProcessChildThreadParams; |
| 61 class NotificationDispatcher; | 60 class NotificationDispatcher; |
| 62 class PushDispatcher; | 61 class PushDispatcher; |
| 63 class ServiceWorkerMessageFilter; | 62 class ServiceWorkerMessageFilter; |
| 64 class QuotaDispatcher; | 63 class QuotaDispatcher; |
| 65 class QuotaMessageFilter; | 64 class QuotaMessageFilter; |
| 66 class ResourceDispatcher; | 65 class ResourceDispatcher; |
| 67 class ThreadSafeSender; | 66 class ThreadSafeSender; |
| 68 | 67 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 static std::unique_ptr<base::SharedMemory> AllocateSharedMemory( | 127 static std::unique_ptr<base::SharedMemory> AllocateSharedMemory( |
| 129 size_t buf_size, | 128 size_t buf_size, |
| 130 IPC::Sender* sender, | 129 IPC::Sender* sender, |
| 131 bool* out_of_memory); | 130 bool* out_of_memory); |
| 132 | 131 |
| 133 #if defined(OS_LINUX) | 132 #if defined(OS_LINUX) |
| 134 void SetThreadPriority(base::PlatformThreadId id, | 133 void SetThreadPriority(base::PlatformThreadId id, |
| 135 base::ThreadPriority priority); | 134 base::ThreadPriority priority); |
| 136 #endif | 135 #endif |
| 137 | 136 |
| 138 ChildSharedBitmapManager* shared_bitmap_manager() const { | |
| 139 return shared_bitmap_manager_.get(); | |
| 140 } | |
| 141 | |
| 142 discardable_memory::ClientDiscardableSharedMemoryManager* | 137 discardable_memory::ClientDiscardableSharedMemoryManager* |
| 143 discardable_shared_memory_manager() const { | 138 discardable_shared_memory_manager() const { |
| 144 return discardable_shared_memory_manager_.get(); | 139 return discardable_shared_memory_manager_.get(); |
| 145 } | 140 } |
| 146 | 141 |
| 147 ResourceDispatcher* resource_dispatcher() const { | 142 ResourceDispatcher* resource_dispatcher() const { |
| 148 return resource_dispatcher_.get(); | 143 return resource_dispatcher_.get(); |
| 149 } | 144 } |
| 150 | 145 |
| 151 FileSystemDispatcher* file_system_dispatcher() const { | 146 FileSystemDispatcher* file_system_dispatcher() const { |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 scoped_refptr<ChildResourceMessageFilter> resource_message_filter_; | 316 scoped_refptr<ChildResourceMessageFilter> resource_message_filter_; |
| 322 | 317 |
| 323 scoped_refptr<ServiceWorkerMessageFilter> service_worker_message_filter_; | 318 scoped_refptr<ServiceWorkerMessageFilter> service_worker_message_filter_; |
| 324 | 319 |
| 325 scoped_refptr<QuotaMessageFilter> quota_message_filter_; | 320 scoped_refptr<QuotaMessageFilter> quota_message_filter_; |
| 326 | 321 |
| 327 scoped_refptr<NotificationDispatcher> notification_dispatcher_; | 322 scoped_refptr<NotificationDispatcher> notification_dispatcher_; |
| 328 | 323 |
| 329 scoped_refptr<PushDispatcher> push_dispatcher_; | 324 scoped_refptr<PushDispatcher> push_dispatcher_; |
| 330 | 325 |
| 331 std::unique_ptr<ChildSharedBitmapManager> shared_bitmap_manager_; | |
| 332 | |
| 333 std::unique_ptr<discardable_memory::ClientDiscardableSharedMemoryManager> | 326 std::unique_ptr<discardable_memory::ClientDiscardableSharedMemoryManager> |
| 334 discardable_shared_memory_manager_; | 327 discardable_shared_memory_manager_; |
| 335 | 328 |
| 336 std::unique_ptr<ClientDiscardableSharedMemoryManagerDelegate> | 329 std::unique_ptr<ClientDiscardableSharedMemoryManagerDelegate> |
| 337 client_discardable_shared_memory_manager_delegate_; | 330 client_discardable_shared_memory_manager_delegate_; |
| 338 | 331 |
| 339 std::unique_ptr<base::PowerMonitor> power_monitor_; | 332 std::unique_ptr<base::PowerMonitor> power_monitor_; |
| 340 | 333 |
| 341 scoped_refptr<base::SequencedTaskRunner> browser_process_io_runner_; | 334 scoped_refptr<base::SequencedTaskRunner> browser_process_io_runner_; |
| 342 | 335 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 377 | 370 |
| 378 private: | 371 private: |
| 379 struct Options options_; | 372 struct Options options_; |
| 380 | 373 |
| 381 DISALLOW_COPY_AND_ASSIGN(Builder); | 374 DISALLOW_COPY_AND_ASSIGN(Builder); |
| 382 }; | 375 }; |
| 383 | 376 |
| 384 } // namespace content | 377 } // namespace content |
| 385 | 378 |
| 386 #endif // CONTENT_CHILD_CHILD_THREAD_IMPL_H_ | 379 #endif // CONTENT_CHILD_CHILD_THREAD_IMPL_H_ |
| OLD | NEW |