Bug 540126 - CPOW: Let PObjectWrapper actors use ContentProcessParent::RequestRunToCompletion(). r=mrbkap sr=jst

This commit is contained in:
Ben Newman
2010-01-20 18:24:14 -08:00
parent 2ce29f5e13
commit 60eeaade88
6 changed files with 98 additions and 26 deletions

View File

@@ -35,6 +35,7 @@
* ***** END LICENSE BLOCK ***** */
#include "TestShellParent.h"
#include "mozilla/dom/ContentProcessParent.h"
#include "mozilla/jsipc/ContextWrapperParent.h"
#include "nsAutoPtr.h"
@@ -42,6 +43,7 @@
using mozilla::ipc::TestShellParent;
using mozilla::ipc::TestShellCommandParent;
using mozilla::ipc::PTestShellCommandParent;
using mozilla::dom::ContentProcessParent;
using mozilla::jsipc::PContextWrapperParent;
using mozilla::jsipc::ContextWrapperParent;
@@ -72,7 +74,9 @@ TestShellParent::CommandDone(TestShellCommandParent* command,
PContextWrapperParent*
TestShellParent::AllocPContextWrapper()
{
return new ContextWrapperParent();
ContentProcessParent* cpp =
static_cast<ContentProcessParent*>(Manager());
return new ContextWrapperParent(cpp);
}
bool