OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_LOCK_SCREEN_APPS_APP_MANAGER_IMPL_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOCK_SCREEN_APPS_APP_MANAGER_IMPL_H_ |
| 7 |
| 8 #include "base/callback.h" |
| 9 #include "base/macros.h" |
| 10 #include "chrome/browser/chromeos/lock_screen_apps/app_manager.h" |
| 11 |
| 12 class Profile; |
| 13 |
| 14 namespace lock_screen_apps { |
| 15 |
| 16 // The default implementation of lock_screen_apps::AppManager. |
| 17 class AppManagerImpl : public AppManager { |
| 18 public: |
| 19 AppManagerImpl(); |
| 20 ~AppManagerImpl() override; |
| 21 |
| 22 // AppManager implementation: |
| 23 void Initialize(Profile* primary_profile, |
| 24 Profile* lock_screen_profile) override; |
| 25 void Start(const base::Closure& note_taking_changed_callback) override; |
| 26 void Stop() override; |
| 27 bool LaunchNoteTaking() override; |
| 28 bool IsNoteTakingAppAvailable() const override; |
| 29 std::string GetNoteTakingAppId() const override; |
| 30 |
| 31 private: |
| 32 Profile* primary_profile_ = nullptr; |
| 33 Profile* lock_screen_profile_ = nullptr; |
| 34 |
| 35 base::Closure note_taking_changed_callback_; |
| 36 |
| 37 DISALLOW_COPY_AND_ASSIGN(AppManagerImpl); |
| 38 }; |
| 39 |
| 40 } // namespace lock_screen_apps |
| 41 |
| 42 #endif // CHROME_BROWSER_CHROMEOS_LOCK_SCREEN_APPS_APP_MANAGER_IMPL_H_ |
OLD | NEW |