1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #ifndef mozilla_dom_time_TimeService_h
6 #define mozilla_dom_time_TimeService_h
8 #include "mozilla/StaticPtr.h"
9 #include "nsITimeService.h"
16 * This class implements a service which lets us modify the system clock time.
18 class TimeService
: public nsITimeService
22 NS_DECL_NSITIMESERVICE
24 static already_AddRefed
<TimeService
> GetInstance();
27 virtual ~TimeService() {};
29 static StaticRefPtr
<TimeService
> sSingleton
;
34 } // namespace mozilla
36 #endif //mozilla_dom_time_TimeService_h