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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 void OnProcessBackgrounded(bool background); | 228 void OnProcessBackgrounded(bool background); |
229 #ifdef IPC_MESSAGE_LOG_ENABLED | 229 #ifdef IPC_MESSAGE_LOG_ENABLED |
230 void OnSetIPCLoggingEnabled(bool enable); | 230 void OnSetIPCLoggingEnabled(bool enable); |
231 #endif | 231 #endif |
232 #if defined(USE_TCMALLOC) | 232 #if defined(USE_TCMALLOC) |
233 void OnGetTcmallocStats(); | 233 void OnGetTcmallocStats(); |
234 #endif | 234 #endif |
235 | 235 |
236 void EnsureConnected(); | 236 void EnsureConnected(); |
237 | 237 |
| 238 class SingleProcessChannelDelegate; |
| 239 class SingleProcessChannelDelegateDeleter { |
| 240 public: |
| 241 void operator()(SingleProcessChannelDelegate* delegate) const; |
| 242 }; |
| 243 |
| 244 scoped_ptr<IPC::ScopedIPCSupport> ipc_support_; |
| 245 scoped_ptr<SingleProcessChannelDelegate, SingleProcessChannelDelegateDeleter> |
| 246 single_process_channel_delegate_; |
238 scoped_ptr<MojoApplication> mojo_application_; | 247 scoped_ptr<MojoApplication> mojo_application_; |
239 | 248 |
240 std::string channel_name_; | 249 std::string channel_name_; |
241 scoped_ptr<IPC::SyncChannel> channel_; | 250 scoped_ptr<IPC::SyncChannel> channel_; |
242 | 251 |
243 // Allows threads other than the main thread to send sync messages. | 252 // Allows threads other than the main thread to send sync messages. |
244 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_; | 253 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_; |
245 | 254 |
246 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 255 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
247 | 256 |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 | 337 |
329 private: | 338 private: |
330 struct Options options_; | 339 struct Options options_; |
331 | 340 |
332 DISALLOW_COPY_AND_ASSIGN(Builder); | 341 DISALLOW_COPY_AND_ASSIGN(Builder); |
333 }; | 342 }; |
334 | 343 |
335 } // namespace content | 344 } // namespace content |
336 | 345 |
337 #endif // CONTENT_CHILD_CHILD_THREAD_IMPL_H_ | 346 #endif // CONTENT_CHILD_CHILD_THREAD_IMPL_H_ |
OLD | NEW |