| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 ATHENA_SCREEN_LOCK_SCREEN_LOCK_MANAGER_BASE_H_ | 5 #ifndef ATHENA_SCREEN_LOCK_SCREEN_LOCK_MANAGER_BASE_H_ |
| 6 #define ATHENA_SCREEN_LOCK_SCREEN_LOCK_MANAGER_BASE_H_ | 6 #define ATHENA_SCREEN_LOCK_SCREEN_LOCK_MANAGER_BASE_H_ |
| 7 | 7 |
| 8 #include "athena/screen_lock/public/screen_lock_manager.h" | 8 #include "athena/screen_lock/public/screen_lock_manager.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 | 10 |
| 11 namespace athena { | 11 namespace athena { |
| 12 | 12 |
| 13 // Base class for ScreenLockManager implementations. Its c-tors remembers | 13 // Base class for ScreenLockManager implementations. Its c-tors remembers |
| 14 // instance pointer in global static variable for ScreenLockManager::Get | 14 // instance pointer in global static variable for ScreenLockManager::Get |
| 15 // implementation and d-tor clears that global variable. | 15 // implementation and d-tor clears that global variable. |
| 16 class ScreenLockManagerBase : public ScreenLockManager { | 16 class ScreenLockManagerBase : public ScreenLockManager { |
| 17 public: | 17 public: |
| 18 ScreenLockManagerBase(); | 18 ScreenLockManagerBase(); |
| 19 | 19 |
| 20 protected: | 20 protected: |
| 21 virtual ~ScreenLockManagerBase(); | 21 ~ScreenLockManagerBase() override; |
| 22 | 22 |
| 23 private: | 23 private: |
| 24 DISALLOW_COPY_AND_ASSIGN(ScreenLockManagerBase); | 24 DISALLOW_COPY_AND_ASSIGN(ScreenLockManagerBase); |
| 25 }; | 25 }; |
| 26 | 26 |
| 27 } // namespace athena | 27 } // namespace athena |
| 28 | 28 |
| 29 #endif // ATHENA_SCREEN_LOCK_SCREEN_LOCK_MANAGER_BASE_H_ | 29 #endif // ATHENA_SCREEN_LOCK_SCREEN_LOCK_MANAGER_BASE_H_ |
| OLD | NEW |