Chromium Code Reviews| Index: chrome/browser/chromeos/login/demo_mode/demo_app_launcher.h |
| diff --git a/chrome/browser/chromeos/login/demo_mode/demo_app_launcher.h b/chrome/browser/chromeos/login/demo_mode/demo_app_launcher.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..d449e48a65f9f88acda0e0edd4881efed12f783c |
| --- /dev/null |
| +++ b/chrome/browser/chromeos/login/demo_mode/demo_app_launcher.h |
| @@ -0,0 +1,38 @@ |
| +// 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 CHROME_BROWSER_CHROMEOS_LOGIN_DEMO_MODE_DEMO_APP_LAUNCHER_H_ |
| +#define CHROME_BROWSER_CHROMEOS_LOGIN_DEMO_MODE_DEMO_APP_LAUNCHER_H_ |
| + |
| +#include "base/memory/scoped_ptr.h" |
| +#include "chrome/browser/chromeos/app_mode/kiosk_profile_loader.h" |
| + |
| +class Profile; |
| + |
| +namespace chromeos { |
| + |
| +// Class responsible for launching the demo app under a kiosk session. |
| +class DemoAppLauncher : public KioskProfileLoader::Delegate { |
| + public: |
| + DemoAppLauncher(); |
| + virtual ~DemoAppLauncher(); |
| + |
| + void StartDemoAppLaunch(); |
| + |
| + static bool IsDemoAppSession(const std::string& user_id); |
|
bartfab (slow)
2014/02/13 19:51:53
Nit: #include <string>
rkc
2014/02/13 23:22:01
Done.
|
| + |
| + private: |
| + // KioskProfileLoader::Delegate overrides: |
| + virtual void OnProfileLoaded(Profile* profile) OVERRIDE; |
|
bartfab (slow)
2014/02/13 19:51:53
Nit: #include "base/compiler_specific.h"
rkc
2014/02/13 23:22:01
Done.
rkc
2014/02/13 23:22:01
Done.
|
| + virtual void OnProfileLoadFailed(KioskAppLaunchError::Error error) OVERRIDE; |
| + |
| + Profile* profile_; |
|
bartfab (slow)
2014/02/13 19:51:53
This member is unnecessary. |profile_| is only eve
rkc
2014/02/13 23:22:01
Done.
|
| + scoped_ptr<KioskProfileLoader> kiosk_profile_loader_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(DemoAppLauncher); |
|
bartfab (slow)
2014/02/13 19:51:53
Nit: #include "base/basictypes.h"
rkc
2014/02/13 23:22:01
Done.
|
| +}; |
| + |
| +} // namespace chromeos |
| + |
| +#endif // CHROME_BROWSER_CHROMEOS_LOGIN_DEMO_MODE_DEMO_APP_LAUNCHER_H_ |