| 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 13 matching lines...) Expand all Loading... |
| 24 #include "content/common/mojo/channel_init.h" | 24 #include "content/common/mojo/channel_init.h" |
| 25 #include "content/public/child/child_thread.h" | 25 #include "content/public/child/child_thread.h" |
| 26 #include "ipc/ipc_message.h" // For IPC_MESSAGE_LOG_ENABLED. | 26 #include "ipc/ipc_message.h" // For IPC_MESSAGE_LOG_ENABLED. |
| 27 #include "ipc/ipc_platform_file.h" | 27 #include "ipc/ipc_platform_file.h" |
| 28 | 28 |
| 29 namespace base { | 29 namespace base { |
| 30 class MessageLoop; | 30 class MessageLoop; |
| 31 } // namespace base | 31 } // namespace base |
| 32 | 32 |
| 33 namespace IPC { | 33 namespace IPC { |
| 34 class AttachmentBrokerUnprivileged; | |
| 35 class MessageFilter; | 34 class MessageFilter; |
| 36 class ScopedIPCSupport; | 35 class ScopedIPCSupport; |
| 37 class SyncChannel; | 36 class SyncChannel; |
| 38 class SyncMessageFilter; | 37 class SyncMessageFilter; |
| 39 } // namespace IPC | 38 } // namespace IPC |
| 40 | 39 |
| 41 namespace blink { | 40 namespace blink { |
| 42 class WebFrame; | 41 class WebFrame; |
| 43 } // namespace blink | 42 } // namespace blink |
| 44 | 43 |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 #ifdef IPC_MESSAGE_LOG_ENABLED | 232 #ifdef IPC_MESSAGE_LOG_ENABLED |
| 234 void OnSetIPCLoggingEnabled(bool enable); | 233 void OnSetIPCLoggingEnabled(bool enable); |
| 235 #endif | 234 #endif |
| 236 | 235 |
| 237 void EnsureConnected(); | 236 void EnsureConnected(); |
| 238 | 237 |
| 239 scoped_ptr<IPC::ScopedIPCSupport> mojo_ipc_support_; | 238 scoped_ptr<IPC::ScopedIPCSupport> mojo_ipc_support_; |
| 240 scoped_ptr<MojoApplication> mojo_application_; | 239 scoped_ptr<MojoApplication> mojo_application_; |
| 241 | 240 |
| 242 std::string channel_name_; | 241 std::string channel_name_; |
| 243 scoped_ptr<IPC::AttachmentBrokerUnprivileged> attachment_broker_; | |
| 244 scoped_ptr<IPC::SyncChannel> channel_; | 242 scoped_ptr<IPC::SyncChannel> channel_; |
| 245 | 243 |
| 246 // Allows threads other than the main thread to send sync messages. | 244 // Allows threads other than the main thread to send sync messages. |
| 247 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_; | 245 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_; |
| 248 | 246 |
| 249 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 247 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
| 250 | 248 |
| 251 // Implements message routing functionality to the consumers of | 249 // Implements message routing functionality to the consumers of |
| 252 // ChildThreadImpl. | 250 // ChildThreadImpl. |
| 253 ChildThreadMessageRouter router_; | 251 ChildThreadMessageRouter router_; |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 | 324 |
| 327 private: | 325 private: |
| 328 struct Options options_; | 326 struct Options options_; |
| 329 | 327 |
| 330 DISALLOW_COPY_AND_ASSIGN(Builder); | 328 DISALLOW_COPY_AND_ASSIGN(Builder); |
| 331 }; | 329 }; |
| 332 | 330 |
| 333 } // namespace content | 331 } // namespace content |
| 334 | 332 |
| 335 #endif // CONTENT_CHILD_CHILD_THREAD_IMPL_H_ | 333 #endif // CONTENT_CHILD_CHILD_THREAD_IMPL_H_ |
| OLD | NEW |