| 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_; | |
| 247 scoped_ptr<MojoApplication> mojo_application_; | 238 scoped_ptr<MojoApplication> mojo_application_; |
| 248 | 239 |
| 249 std::string channel_name_; | 240 std::string channel_name_; |
| 250 scoped_ptr<IPC::SyncChannel> channel_; | 241 scoped_ptr<IPC::SyncChannel> channel_; |
| 251 | 242 |
| 252 // Allows threads other than the main thread to send sync messages. | 243 // Allows threads other than the main thread to send sync messages. |
| 253 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_; | 244 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_; |
| 254 | 245 |
| 255 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 246 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
| 256 | 247 |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 337 | 328 |
| 338 private: | 329 private: |
| 339 struct Options options_; | 330 struct Options options_; |
| 340 | 331 |
| 341 DISALLOW_COPY_AND_ASSIGN(Builder); | 332 DISALLOW_COPY_AND_ASSIGN(Builder); |
| 342 }; | 333 }; |
| 343 | 334 |
| 344 } // namespace content | 335 } // namespace content |
| 345 | 336 |
| 346 #endif // CONTENT_CHILD_CHILD_THREAD_IMPL_H_ | 337 #endif // CONTENT_CHILD_CHILD_THREAD_IMPL_H_ |
| OLD | NEW |