Index: chrome/browser/chromeos/kiosk_mode/kiosk_mode_helper.h |
diff --git a/chrome/browser/chromeos/kiosk_mode/kiosk_mode_helper.h b/chrome/browser/chromeos/kiosk_mode/kiosk_mode_helper.h |
index b9ba08d114e0c22d42a9b005d81b3d7615c2dc35..3d81921df32ee3e27c9eb770e03efaf1c42276b6 100644 |
--- a/chrome/browser/chromeos/kiosk_mode/kiosk_mode_helper.h |
+++ b/chrome/browser/chromeos/kiosk_mode/kiosk_mode_helper.h |
@@ -10,6 +10,7 @@ |
#include "base/basictypes.h" |
#include "base/callback_forward.h" |
+#include "base/time.h" |
namespace base { |
template <typename T> struct DefaultLazyInstanceTraits; |
@@ -43,11 +44,17 @@ class KioskModeHelper { |
// The path to the screensaver extension. |
std::string GetScreensaverPath() const; |
// The timeout before which we'll start showing the screensaver. |
- int64 GetScreensaverTimeout() const; |
+ base::TimeDelta GetScreensaverTimeout() const; |
+ |
+ // NOTE: The idle logout timeout is the time 'till' we show the idle dialog |
+ // box. After we show the dialog box, it remains up for an 'additional' |
+ // IdleLogoutWarningTimeout seconds, which adds to the total time before the |
+ // user is logged out. |
+ |
// The time to logout the user in on idle. |
- int64 GetIdleLogoutTimeout() const; |
+ base::TimeDelta GetIdleLogoutTimeout() const; |
// The time to show the countdown timer for. |
- int64 GetIdleLogoutWarningTimeout() const; |
+ base::TimeDelta GetIdleLogoutWarningTimeout() const; |
private: |
friend struct base::DefaultLazyInstanceTraits<KioskModeHelper>; |
@@ -55,10 +62,15 @@ class KioskModeHelper { |
bool is_initialized_; |
+ std::string screensaver_id_; |
+ std::string screensaver_path_; |
+ base::TimeDelta screensaver_timeout_; |
+ base::TimeDelta idle_logout_timeout_; |
+ base::TimeDelta idle_logout_warning_timeout_; |
+ |
DISALLOW_COPY_AND_ASSIGN(KioskModeHelper); |
}; |
- |
} // namespace chromeos |
#endif // CHROME_BROWSER_CHROMEOS_KIOSK_MODE_KIOSK_MODE_HELPER_H_ |