summaryrefslogtreecommitdiffstats
path: root/chrome/common/child_thread.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common/child_thread.h')
-rw-r--r--chrome/common/child_thread.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/common/child_thread.h b/chrome/common/child_thread.h
index 2082b08..63464fe 100644
--- a/chrome/common/child_thread.h
+++ b/chrome/common/child_thread.h
@@ -13,6 +13,7 @@
#include "ipc/ipc_message.h"
class NotificationService;
+class SocketStreamDispatcher;
// The main thread of a child process derives from this class.
class ChildThread : public IPC::Channel::Listener,
@@ -35,6 +36,10 @@ class ChildThread : public IPC::Channel::Listener,
return resource_dispatcher_.get();
}
+ SocketStreamDispatcher* socket_stream_dispatcher() {
+ return socket_stream_dispatcher_.get();
+ }
+
MessageLoop* message_loop() { return message_loop_; }
// Returns the one child thread.
@@ -72,6 +77,9 @@ class ChildThread : public IPC::Channel::Listener,
// Handles resource loads for this process.
scoped_ptr<ResourceDispatcher> resource_dispatcher_;
+ // Handles SocketStream for this process.
+ scoped_ptr<SocketStreamDispatcher> socket_stream_dispatcher_;
+
// If true, checks with the browser process before shutdown. This avoids race
// conditions if the process refcount is 0 but there's an IPC message inflight
// that would addref it.