#ifndef CHROMECAST_BASE_ANDROID_SYSTEM_TIME_CHANGE_NOTIFIER_ANDROID_H_
#define CHROMECAST_BASE_ANDROID_SYSTEM_TIME_CHANGE_NOTIFIER_ANDROID_H_
#include "base/android/scoped_java_ref.h"
#include "chromecast/base/system_time_change_notifier.h"
namespace chromecast {
class SystemTimeChangeNotifierAndroid : public SystemTimeChangeNotifier {
public:
SystemTimeChangeNotifierAndroid();
SystemTimeChangeNotifierAndroid(const SystemTimeChangeNotifierAndroid&) =
delete;
SystemTimeChangeNotifierAndroid& operator=(
const SystemTimeChangeNotifierAndroid&) = delete;
~SystemTimeChangeNotifierAndroid() override;
void OnTimeChanged(JNIEnv* env);
private:
base::android::ScopedJavaGlobalRef<jobject> java_notifier_;
};
}
#endif