mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 14:18:48 +00:00
755cb8b710
- Bug 1103036 - Ensure __delete__ message from TabChild doesn't get sent after ActorDestroy (r=bent) (c91362f82) - Bug 1103036 - Wait for ContentChild shutdown during profile-before-change; r=billm (98602a765) - Bug 1103036 - Use nsITimer for ContentParent shutdown timer (r=bent) (d8f453cb5) - Bug 1103036 - Use kill timer when shutting down ContentParent in shutdown observer; r=billm (0b3dba9bd) - Bug 1103036 - Don't send shutdown message to Nuwa processes; r=billm (3337de858) - Bug 1131375 - Fix message ordering for in-process message manager (r=smaug) (2256e6aa8) - Bug 1155224 - Add targetFrameLoader property to messages (r=smaug) (971ff2db4) - Bug 1134762 - Clean-up UseFastPath logic to avoid OOM error. r=kats (28e0da5c3) - HACK - include nsPIDOMWInindow to get tree compiling again, no clue why it is needed now (88c10e8b4) - Bug 982347 - Implement netError design changes. r=Unfocused (e27b9af06) - Bug 1014282: Do not direct every ssl error to 'Report Web Forgery' (r=margaret) (febb83ad8) - Bug 1035536 - add blank theme file for net error pages, r=Unfocused (cac5f43ba) - Bug 1035536 - move CSS to themes directory, r=dao (5191e1032) - Bug 859695 - OS.File should be adopted in PlacesBackups.jsm and PlacesUtils.jsm. r=mak (78ebec312) - Bug 529697 - (CSP 1.1) Implement form-action directive [3/4], r=unfocused (2f884e70f)
58 lines
1.2 KiB
C++
58 lines
1.2 KiB
C++
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* vim: set ts=2 et sw=2 tw=80: */
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#ifndef mozilla_dom_SameProcessMessageQueue_h
|
|
#define mozilla_dom_SameProcessMessageQueue_h
|
|
|
|
#include "nsIRunnable.h"
|
|
#include "mozilla/RefPtr.h"
|
|
#include "nsTArray.h"
|
|
|
|
namespace mozilla {
|
|
namespace dom {
|
|
|
|
class CancelableRunnable;
|
|
|
|
class SameProcessMessageQueue
|
|
{
|
|
public:
|
|
SameProcessMessageQueue();
|
|
virtual ~SameProcessMessageQueue();
|
|
|
|
class Runnable : public nsIRunnable
|
|
{
|
|
public:
|
|
explicit Runnable();
|
|
|
|
NS_DECL_ISUPPORTS
|
|
NS_DECL_NSIRUNNABLE
|
|
|
|
virtual nsresult HandleMessage() = 0;
|
|
|
|
protected:
|
|
virtual ~Runnable() {}
|
|
|
|
private:
|
|
bool mDispatched;
|
|
};
|
|
|
|
void Push(Runnable* aRunnable);
|
|
void Flush();
|
|
|
|
static SameProcessMessageQueue* Get();
|
|
|
|
private:
|
|
friend class CancelableRunnable;
|
|
|
|
nsTArray<RefPtr<Runnable>> mQueue;
|
|
static SameProcessMessageQueue* sSingleton;
|
|
};
|
|
|
|
} // namespace dom
|
|
} // namespace mozilla
|
|
|
|
#endif // mozilla_dom_SameProcessMessageQueue_h
|