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..d202ddaa19265d978f52efa3f49e96ae24e3030a |
--- /dev/null |
+++ b/athena/screen_lock/screen_lock_manager_base.h |
@@ -0,0 +1,29 @@ |
+// 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" |
+#include "base/macros.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(); |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(ScreenLockManagerBase); |
+}; |
+ |
+} // namespace athena |
+ |
+#endif // ATHENA_SCREEN_LOCK_SCREEN_LOCK_MANAGER_BASE_H_ |