Bug 1178363 - make nsTimerImpl::PostTimerEvent a private method; r=poiru

PostTimerEvent is only called by the timer thread, which is already able
to access private members of nsTimerImpl; there's no reason for
PostTimerEvent to be public.
This commit is contained in:
Nathan Froyd 2015-06-29 10:33:30 -04:00
parent f7e2d88bc7
commit 26761c12a0

View File

@ -45,9 +45,6 @@ public:
friend struct TimerAdditionComparator;
friend class nsTimerEvent;
// If a failure is encountered, the reference is returned to the caller
static already_AddRefed<nsTimerImpl> PostTimerEvent(
already_AddRefed<nsTimerImpl> aTimerRef);
NS_DECL_THREADSAFE_ISUPPORTS
NS_DECL_NSITIMER
@ -68,6 +65,10 @@ private:
mozilla::tasktracer::TracedTaskCommon GetTracedTask();
#endif
// If a failure is encountered, the reference is returned to the caller
static already_AddRefed<nsTimerImpl> PostTimerEvent(
already_AddRefed<nsTimerImpl> aTimerRef);
enum class CallbackType : uint8_t {
Unknown = 0,
Interface = 1,