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.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/common/child_thread.h b/chrome/common/child_thread.h
index f97964c..c499cb5 100644
--- a/chrome/common/child_thread.h
+++ b/chrome/common/child_thread.h
@@ -8,6 +8,7 @@
#include "base/thread.h"
#include "chrome/common/ipc_sync_channel.h"
#include "chrome/common/message_router.h"
+#include "chrome/common/resource_dispatcher.h"
// Child processes's background thread should derive from this class.
class ChildThread : public IPC::Channel::Listener,
@@ -27,6 +28,10 @@ class ChildThread : public IPC::Channel::Listener,
MessageLoop* owner_loop() { return owner_loop_; }
+ ResourceDispatcher* resource_dispatcher() {
+ return resource_dispatcher_.get();
+ }
+
protected:
friend class ChildProcess;
@@ -68,6 +73,10 @@ class ChildThread : public IPC::Channel::Listener,
Thread::Options options_;
+ // Handles resource loads for this process.
+ // NOTE: this object lives on the owner thread.
+ scoped_ptr<ResourceDispatcher> resource_dispatcher_;
+
DISALLOW_EVIL_CONSTRUCTORS(ChildThread);
};