Bug 1448850 - Remove nsIContentProcessMessageManager. r=bz.

--HG--
extra : rebase_source : 94ed787dd1bd8b2352f45ccfb1e2f255be07c185
This commit is contained in:
Peter Van der Beken 2018-02-09 16:02:37 +01:00
Родитель a1016b0241
Коммит 156753e507
4 изменённых файлов: 5 добавлений и 18 удалений

Просмотреть файл

@ -96,11 +96,10 @@ NS_IMPL_CYCLE_COLLECTION_UNLINK_END
NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(ProcessGlobal) NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(ProcessGlobal)
NS_WRAPPERCACHE_INTERFACE_MAP_ENTRY NS_WRAPPERCACHE_INTERFACE_MAP_ENTRY
NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsIContentProcessMessageManager) NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsIMessageManagerGlobal)
NS_INTERFACE_MAP_ENTRY(nsIMessageListenerManager) NS_INTERFACE_MAP_ENTRY(nsIMessageListenerManager)
NS_INTERFACE_MAP_ENTRY(nsIMessageSender) NS_INTERFACE_MAP_ENTRY(nsIMessageSender)
NS_INTERFACE_MAP_ENTRY(nsISyncMessageSender) NS_INTERFACE_MAP_ENTRY(nsISyncMessageSender)
NS_INTERFACE_MAP_ENTRY(nsIContentProcessMessageManager)
NS_INTERFACE_MAP_ENTRY(nsIScriptObjectPrincipal) NS_INTERFACE_MAP_ENTRY(nsIScriptObjectPrincipal)
NS_INTERFACE_MAP_ENTRY(nsIGlobalObject) NS_INTERFACE_MAP_ENTRY(nsIGlobalObject)
NS_INTERFACE_MAP_ENTRY(nsISupportsWeakReference) NS_INTERFACE_MAP_ENTRY(nsISupportsWeakReference)

Просмотреть файл

@ -26,7 +26,7 @@ namespace mozilla {
namespace dom { namespace dom {
class ProcessGlobal : class ProcessGlobal :
public nsIContentProcessMessageManager, public nsIMessageManagerGlobal,
public nsMessageManagerScriptExecutor, public nsMessageManagerScriptExecutor,
public nsIGlobalObject, public nsIGlobalObject,
public nsIScriptObjectPrincipal, public nsIScriptObjectPrincipal,
@ -52,7 +52,7 @@ public:
static ProcessGlobal* Get(); static ProcessGlobal* Get();
NS_DECL_CYCLE_COLLECTING_ISUPPORTS NS_DECL_CYCLE_COLLECTING_ISUPPORTS
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS_AMBIGUOUS(ProcessGlobal, nsIContentProcessMessageManager) NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS_AMBIGUOUS(ProcessGlobal, nsIMessageManagerGlobal)
virtual JSObject* WrapObject(JSContext* aCx, virtual JSObject* WrapObject(JSContext* aCx,
JS::Handle<JSObject*> aGivenProto) override JS::Handle<JSObject*> aGivenProto) override
@ -93,7 +93,6 @@ public:
NS_FORWARD_SAFE_NSIMESSAGESENDER(mMessageManager) NS_FORWARD_SAFE_NSIMESSAGESENDER(mMessageManager)
NS_FORWARD_SAFE_NSISYNCMESSAGESENDER(mMessageManager) NS_FORWARD_SAFE_NSISYNCMESSAGESENDER(mMessageManager)
NS_FORWARD_SAFE_NSIMESSAGEMANAGERGLOBAL(mMessageManager) NS_FORWARD_SAFE_NSIMESSAGEMANAGERGLOBAL(mMessageManager)
NS_FORWARD_SAFE_NSICONTENTPROCESSMESSAGEMANAGER(mMessageManager)
virtual void LoadScript(const nsAString& aURL); virtual void LoadScript(const nsAString& aURL);

Просмотреть файл

@ -477,9 +477,9 @@ mozilla::dom::TraceBlackJS(JSTracer* aTrc, bool aIsShutdownGC)
} }
if (nsFrameMessageManager::GetChildProcessManager()) { if (nsFrameMessageManager::GetChildProcessManager()) {
nsIContentProcessMessageManager* pg = ProcessGlobal::Get(); ProcessGlobal* pg = ProcessGlobal::Get();
if (pg) { if (pg) {
mozilla::TraceScriptHolder(pg, aTrc); mozilla::TraceScriptHolder(ToSupports(pg), aTrc);
} }
} }

Просмотреть файл

@ -424,17 +424,6 @@ interface nsIInProcessContentFrameMessageManager : nsIContentFrameMessageManager
[notxpcom] void cacheFrameLoader(in nativeFrameLoader aFrameLoader); [notxpcom] void cacheFrameLoader(in nativeFrameLoader aFrameLoader);
}; };
[uuid(6d12e467-2446-46db-9965-e4e93cb87ca5)]
interface nsIContentProcessMessageManager : nsIMessageManagerGlobal
{
/**
* Read out a copy of the object that was initialized in the parent
* process via nsIProcessScriptLoader.initialProcessData.
*/
[implicit_jscontext]
readonly attribute jsval initialProcessData;
};
[uuid(bf61446b-ba24-4b1d-88c7-4f94724b9ce1)] [uuid(bf61446b-ba24-4b1d-88c7-4f94724b9ce1)]
interface nsIFrameScriptLoader : nsISupports interface nsIFrameScriptLoader : nsISupports
{ {