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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 namespace base { | 22 namespace base { |
23 class MessageLoop; | 23 class MessageLoop; |
24 | 24 |
25 namespace trace_event { | 25 namespace trace_event { |
26 class TraceMemoryController; | 26 class TraceMemoryController; |
27 } // namespace trace_event | 27 } // namespace trace_event |
28 } // namespace base | 28 } // namespace base |
29 | 29 |
30 namespace IPC { | 30 namespace IPC { |
31 class MessageFilter; | 31 class MessageFilter; |
| 32 class ScopedIPCSupport; |
32 class SyncChannel; | 33 class SyncChannel; |
33 class SyncMessageFilter; | 34 class SyncMessageFilter; |
34 } // namespace IPC | 35 } // namespace IPC |
35 | 36 |
36 namespace blink { | 37 namespace blink { |
37 class WebFrame; | 38 class WebFrame; |
38 } // namespace blink | 39 } // namespace blink |
39 | 40 |
40 namespace content { | 41 namespace content { |
41 class ChildMessageFilter; | 42 class ChildMessageFilter; |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 void OnProcessBackgrounded(bool background); | 233 void OnProcessBackgrounded(bool background); |
233 #ifdef IPC_MESSAGE_LOG_ENABLED | 234 #ifdef IPC_MESSAGE_LOG_ENABLED |
234 void OnSetIPCLoggingEnabled(bool enable); | 235 void OnSetIPCLoggingEnabled(bool enable); |
235 #endif | 236 #endif |
236 #if defined(USE_TCMALLOC) | 237 #if defined(USE_TCMALLOC) |
237 void OnGetTcmallocStats(); | 238 void OnGetTcmallocStats(); |
238 #endif | 239 #endif |
239 | 240 |
240 void EnsureConnected(); | 241 void EnsureConnected(); |
241 | 242 |
| 243 class SingleProcessChannelDelegate; |
| 244 class SingleProcessChannelDelegateDeleter { |
| 245 public: |
| 246 void operator()(SingleProcessChannelDelegate* delegate) const; |
| 247 }; |
| 248 |
| 249 scoped_ptr<IPC::ScopedIPCSupport> ipc_support_; |
| 250 scoped_ptr<SingleProcessChannelDelegate, SingleProcessChannelDelegateDeleter> |
| 251 single_process_channel_delegate_; |
242 scoped_ptr<MojoApplication> mojo_application_; | 252 scoped_ptr<MojoApplication> mojo_application_; |
243 | 253 |
244 std::string channel_name_; | 254 std::string channel_name_; |
245 scoped_ptr<IPC::SyncChannel> channel_; | 255 scoped_ptr<IPC::SyncChannel> channel_; |
246 | 256 |
247 // Allows threads other than the main thread to send sync messages. | 257 // Allows threads other than the main thread to send sync messages. |
248 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_; | 258 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_; |
249 | 259 |
250 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 260 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
251 | 261 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 bool in_browser_process_; | 311 bool in_browser_process_; |
302 | 312 |
303 base::WeakPtrFactory<ChildThreadImpl> channel_connected_factory_; | 313 base::WeakPtrFactory<ChildThreadImpl> channel_connected_factory_; |
304 | 314 |
305 DISALLOW_COPY_AND_ASSIGN(ChildThreadImpl); | 315 DISALLOW_COPY_AND_ASSIGN(ChildThreadImpl); |
306 }; | 316 }; |
307 | 317 |
308 } // namespace content | 318 } // namespace content |
309 | 319 |
310 #endif // CONTENT_CHILD_CHILD_THREAD_IMPL_H_ | 320 #endif // CONTENT_CHILD_CHILD_THREAD_IMPL_H_ |
OLD | NEW |