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

Unified Diff: chrome/browser/chromeos/lock_screen_apps/app_manager_impl.h

Issue 2949943003: Introduce lock screen app manager interface (Closed)
Patch Set: Created 3 years, 6 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: chrome/browser/chromeos/lock_screen_apps/app_manager_impl.h
diff --git a/chrome/browser/chromeos/lock_screen_apps/app_manager_impl.h b/chrome/browser/chromeos/lock_screen_apps/app_manager_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..d1cd759037954b44af909e65d92b51ff9ce2fb32
--- /dev/null
+++ b/chrome/browser/chromeos/lock_screen_apps/app_manager_impl.h
@@ -0,0 +1,42 @@
+// Copyright 2017 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 CHROME_BROWSER_CHROMEOS_LOCK_SCREEN_APPS_APP_MANAGER_IMPL_H_
+#define CHROME_BROWSER_CHROMEOS_LOCK_SCREEN_APPS_APP_MANAGER_IMPL_H_
+
+#include "base/callback.h"
+#include "base/macros.h"
+#include "chrome/browser/chromeos/lock_screen_apps/app_manager.h"
+
+class Profile;
+
+namespace lock_screen_apps {
+
+// The default implementation of lock_screen_apps::AppManager.
+class AppManagerImpl : public AppManager {
+ public:
+ AppManagerImpl();
+ ~AppManagerImpl() override;
+
+ // AppManager implementation:
+ void Initialize(Profile* primary_profile,
+ Profile* lock_screen_profile) override;
+ void Start(const base::Closure& note_taking_changed_callback) override;
+ void Stop() override;
+ bool LaunchNoteTaking() override;
+ bool IsNoteTakingAppAvailable() const override;
+ std::string GetNoteTakingAppId() const override;
+
+ private:
+ Profile* primary_profile_ = nullptr;
+ Profile* lock_screen_profile_ = nullptr;
+
+ base::Closure note_taking_changed_callback_;
+
+ DISALLOW_COPY_AND_ASSIGN(AppManagerImpl);
+};
+
+} // namespace lock_screen_apps
+
+#endif // CHROME_BROWSER_CHROMEOS_LOCK_SCREEN_APPS_APP_MANAGER_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698