Switch global error menu icon to vectorized MD asset
[chromium-blink-merge.git] / chrome / browser / chromeos / login / demo_mode / demo_app_launcher.h
blob98f959ca9287b06027e321ad654461045a387207
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_DEMO_MODE_DEMO_APP_LAUNCHER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_DEMO_MODE_DEMO_APP_LAUNCHER_H_
8 #include <string>
10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h"
12 #include "base/memory/scoped_ptr.h"
13 #include "chrome/browser/chromeos/app_mode/kiosk_profile_loader.h"
15 namespace base {
16 class FilePath;
19 namespace chromeos {
21 // Class responsible for launching the demo app under a kiosk session.
22 class DemoAppLauncher : public KioskProfileLoader::Delegate {
23 public:
24 DemoAppLauncher();
25 ~DemoAppLauncher() override;
27 void StartDemoAppLaunch();
29 static bool IsDemoAppSession(const std::string& user_id);
30 static void SetDemoAppPathForTesting(const base::FilePath& path);
32 static const char kDemoUserName[];
33 static const char kDemoAppId[];
35 private:
36 friend class DemoAppLauncherTest;
38 // KioskProfileLoader::Delegate overrides:
39 void OnProfileLoaded(Profile* profile) override;
40 void OnProfileLoadFailed(KioskAppLaunchError::Error error) override;
42 scoped_ptr<KioskProfileLoader> kiosk_profile_loader_;
44 static base::FilePath* demo_app_path_;
46 DISALLOW_COPY_AND_ASSIGN(DemoAppLauncher);
49 } // namespace chromeos
51 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_DEMO_MODE_DEMO_APP_LAUNCHER_H_