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

Unified Diff: athena/screen_lock/public/screen_lock_manager.h

Issue 620663005: Lock screen for Chrome-Athena (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: one more nit Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « athena/screen_lock/public/DEPS ('k') | athena/screen_lock/screen_lock_manager_base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/screen_lock/public/screen_lock_manager.h
diff --git a/athena/screen_lock/public/screen_lock_manager.h b/athena/screen_lock/public/screen_lock_manager.h
new file mode 100644
index 0000000000000000000000000000000000000000..bde787daec3087e0c782e46c3c7ab37f9f994f30
--- /dev/null
+++ b/athena/screen_lock/public/screen_lock_manager.h
@@ -0,0 +1,28 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ATHENA_SCREEN_LOCK_PUBLIC_SCREEN_LOCK_MANAGER_H_
+#define ATHENA_SCREEN_LOCK_PUBLIC_SCREEN_LOCK_MANAGER_H_
+
+namespace athena {
+
+// Manages screen lock and register keyboard shortcuts.
+class ScreenLockManager {
+ public:
+ // Creates, returns and deletes the singleton object of the ScreenLockManager
+ // implementation.
+ static ScreenLockManager* Create();
+ static ScreenLockManager* Get();
+ static void Shutdown();
+
+ virtual void LockScreen() = 0;
+
+ protected:
+ // Make d-tor protected to prevent destruction without calling Shutdown.
+ virtual ~ScreenLockManager() {}
+};
+
+} // namespace athena
+
+#endif // ATHENA_SCREEN_LOCK_PUBLIC_SCREEN_LOCK_MANAGER_H_
« no previous file with comments | « athena/screen_lock/public/DEPS ('k') | athena/screen_lock/screen_lock_manager_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698