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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user