mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 01:48:05 +00:00
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:
parent
889fc1ad61
commit
ed7e987ecb
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user