Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(692)

Side by Side Diff: chrome/browser/chromeos/kiosk_mode/kiosk_mode_helper.h

Issue 9568038: Implement the auto-logout on idle feature for Kiosk mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_CHROMEOS_KIOSK_MODE_KIOSK_MODE_HELPER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_KIOSK_MODE_KIOSK_MODE_HELPER_H_
6 #define CHROME_BROWSER_CHROMEOS_KIOSK_MODE_KIOSK_MODE_HELPER_H_ 6 #define CHROME_BROWSER_CHROMEOS_KIOSK_MODE_KIOSK_MODE_HELPER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 25 matching lines...) Expand all
36 static KioskModeHelper* Get(); 36 static KioskModeHelper* Get();
37 37
38 // Initialize the settings helper; this will wait till trust is established 38 // Initialize the settings helper; this will wait till trust is established
39 // for the enterprise policies then call the callback to notify the caller. 39 // for the enterprise policies then call the callback to notify the caller.
40 void Initialize(const base::Closure& notify_initialized); 40 void Initialize(const base::Closure& notify_initialized);
41 bool is_initialized() const { return is_initialized_; } 41 bool is_initialized() const { return is_initialized_; }
42 42
43 // Getters for various Kiosk Mode values. 43 // Getters for various Kiosk Mode values.
44 std::string GetScreensaverPath() const; 44 std::string GetScreensaverPath() const;
45 int64 GetScreensaverTimeout() const; 45 int64 GetScreensaverTimeout() const;
46 int64 GetIdleLogoutTimeout() const;
47 int64 GetIdleLogoutWarningTimeout() const;
46 48
47 private: 49 private:
48 friend struct base::DefaultLazyInstanceTraits<KioskModeHelper>; 50 friend struct base::DefaultLazyInstanceTraits<KioskModeHelper>;
49 KioskModeHelper(); 51 KioskModeHelper();
50 52
51 bool is_initialized_; 53 bool is_initialized_;
52 54
53 DISALLOW_COPY_AND_ASSIGN(KioskModeHelper); 55 DISALLOW_COPY_AND_ASSIGN(KioskModeHelper);
54 }; 56 };
55 57
56 58
57 } // namespace chromeos 59 } // namespace chromeos
58 60
59 #endif // CHROME_BROWSER_CHROMEOS_KIOSK_MODE_KIOSK_MODE_HELPER_H_ 61 #endif // CHROME_BROWSER_CHROMEOS_KIOSK_MODE_KIOSK_MODE_HELPER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/chrome_browser_main_chromeos.cc ('k') | chrome/browser/chromeos/kiosk_mode/kiosk_mode_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698