Bug 509798 - Create a ContentProcess protocol which manages IFrameEmbedding. ContentProcessChild is a globally-accessible singleton in the content process. For the moment, ContentProcessParent is a global singleton in the parent process, but that will change once we have process-per-domain or something similar.

This commit is contained in:
Benjamin Smedberg
2009-08-12 12:18:08 -04:00
parent 21b0a43cf8
commit 0d153eb5cd
17 changed files with 267 additions and 89 deletions

View File

@@ -88,10 +88,11 @@
#include "nsIView.h"
#ifdef MOZ_IPC
#include "ContentProcessParent.h"
#include "TabParent.h"
using namespace mozilla;
using namespace mozilla::tabs;
using namespace mozilla::dom;
#endif
#ifdef MOZ_WIDGET_GTK2
@@ -1126,7 +1127,7 @@ nsFrameLoader::TryNewProcess()
HWND parentwin =
static_cast<HWND>(w->GetNativeData(NS_NATIVE_WINDOW));
mChildProcess = new TabParent(parentwin);
mChildProcess = ContentProcessParent::GetSingleton()->CreateTab(parentwin);
mChildProcess->Move(0, 0,
presContext->AppUnitsToDevPixels(ourFrame->GetSize().width),
presContext->AppUnitsToDevPixels(ourFrame->GetSize().height));
@@ -1159,7 +1160,7 @@ nsFrameLoader::TryNewProcess()
GdkNativeWindow id = gtk_socket_get_id((GtkSocket*)socket);
mChildProcess = new TabParent(id);
mChildProcess = ContentProcessParent::GetSingleton()->CreateTab(id);
mChildProcess->Move(0, 0, alloc.width, alloc.height);