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

Unified Diff: athena/screen_lock/screen_lock_manager_base.h

Issue 620663005: Lock screen for Chrome-Athena (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use PowerButtonObserver 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
Index: athena/screen_lock/screen_lock_manager_base.h
diff --git a/athena/screen_lock/screen_lock_manager_base.h b/athena/screen_lock/screen_lock_manager_base.h
new file mode 100644
index 0000000000000000000000000000000000000000..6fd3342c9245f47e64481e94490b8ab99c250665
--- /dev/null
+++ b/athena/screen_lock/screen_lock_manager_base.h
@@ -0,0 +1,25 @@
+// 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_SCREEN_LOCK_MANAGER_BASE_H_
+#define ATHENA_SCREEN_LOCK_SCREEN_LOCK_MANAGER_BASE_H_
+
+#include "athena/screen_lock/public/screen_lock_manager.h"
+
+namespace athena {
+
+// Base class for ScreenLockManager implementations. Its c-tors remembers
+// instance pointer in global static variable for ScreenLockManager::Get
+// implementation and d-tor clears that global variable.
+class ScreenLockManagerBase : public ScreenLockManager {
+ public:
+ ScreenLockManagerBase();
+
+ protected:
+ virtual ~ScreenLockManagerBase();
oshima 2014/10/16 10:52:18 nit: DISALLOW...
Dmitry Polukhin 2014/10/16 11:25:41 Done.
+};
+
+} // namespace athena
+
+#endif // ATHENA_SCREEN_LOCK_SCREEN_LOCK_MANAGER_BASE_H_

Powered by Google App Engine
This is Rietveld 408576698