mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
Bug 1258908: Rename TYPE_MOZILLA_UI to TYPE_MOZILLA_PARENT. r=jld
This commit is contained in:
parent
20daca1a98
commit
29596ecfff
@ -106,7 +106,7 @@ MessageLoop::MessageLoop(Type type)
|
||||
get_tls_ptr().Set(this);
|
||||
|
||||
switch (type_) {
|
||||
case TYPE_MOZILLA_UI:
|
||||
case TYPE_MOZILLA_PARENT:
|
||||
pump_ = new mozilla::ipc::MessagePump();
|
||||
return;
|
||||
case TYPE_MOZILLA_CHILD:
|
||||
|
@ -199,7 +199,7 @@ public:
|
||||
// This type of ML is used in Mozilla child processes which initialize
|
||||
// XPCOM and use the gecko event loop.
|
||||
//
|
||||
// TYPE_MOZILLA_UI
|
||||
// TYPE_MOZILLA_PARENT
|
||||
// This type of ML is used in Mozilla parent processes which initialize
|
||||
// XPCOM and use the gecko event loop.
|
||||
//
|
||||
@ -216,7 +216,7 @@ public:
|
||||
TYPE_UI,
|
||||
TYPE_IO,
|
||||
TYPE_MOZILLA_CHILD,
|
||||
TYPE_MOZILLA_UI,
|
||||
TYPE_MOZILLA_PARENT,
|
||||
TYPE_MOZILLA_NONMAINTHREAD,
|
||||
TYPE_MOZILLA_NONMAINUITHREAD
|
||||
};
|
||||
@ -473,7 +473,7 @@ class MessageLoopForUI : public MessageLoop {
|
||||
return NULL;
|
||||
Type type = loop->type();
|
||||
DCHECK(type == MessageLoop::TYPE_UI ||
|
||||
type == MessageLoop::TYPE_MOZILLA_UI ||
|
||||
type == MessageLoop::TYPE_MOZILLA_PARENT ||
|
||||
type == MessageLoop::TYPE_MOZILLA_CHILD);
|
||||
return static_cast<MessageLoopForUI*>(loop);
|
||||
}
|
||||
|
@ -523,7 +523,7 @@ NS_InitXPCOM2(nsIServiceManager** aResult,
|
||||
|
||||
MessageLoop* messageLoop = MessageLoop::current();
|
||||
if (!messageLoop) {
|
||||
sMessageLoop = new MessageLoopForUI(MessageLoop::TYPE_MOZILLA_UI);
|
||||
sMessageLoop = new MessageLoopForUI(MessageLoop::TYPE_MOZILLA_PARENT);
|
||||
sMessageLoop->set_thread_name("Gecko");
|
||||
// Set experimental values for main thread hangs:
|
||||
// 128ms for transient hangs and 8192ms for permanent hangs
|
||||
|
Loading…
Reference in New Issue
Block a user