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 CHROME_BROWSER_CHROMEOS_LOGIN_DEMO_MODE_DEMO_APP_LAUNCHER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_DEMO_MODE_DEMO_APP_LAUNCHER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_DEMO_MODE_DEMO_APP_LAUNCHER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_DEMO_MODE_DEMO_APP_LAUNCHER_H_ |
7 | 7 |
8 #include <string> | |
9 | |
10 #include "base/basictypes.h" | |
11 #include "base/compiler_specific.h" | |
8 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
9 #include "chrome/browser/chromeos/app_mode/kiosk_profile_loader.h" | 13 #include "chrome/browser/chromeos/app_mode/kiosk_profile_loader.h" |
10 | 14 |
11 class Profile; | 15 class Profile; |
bartfab (slow)
2014/02/17 15:53:58
Nit: |Profile| is only referenced in overridden me
| |
12 | 16 |
13 namespace chromeos { | 17 namespace chromeos { |
14 | 18 |
15 // Class responsible for launching the demo app under a kiosk session. | 19 // Class responsible for launching the demo app under a kiosk session. |
16 class DemoAppLauncher : public KioskProfileLoader::Delegate { | 20 class DemoAppLauncher : public KioskProfileLoader::Delegate { |
17 public: | 21 public: |
18 DemoAppLauncher(); | 22 DemoAppLauncher(); |
19 virtual ~DemoAppLauncher(); | 23 virtual ~DemoAppLauncher(); |
20 | 24 |
21 void StartDemoAppLaunch(); | 25 void StartDemoAppLaunch(); |
22 | 26 |
23 static bool IsDemoAppSession(const std::string& user_id); | 27 static bool IsDemoAppSession(const std::string& user_id); |
24 | 28 |
25 private: | 29 private: |
26 // KioskProfileLoader::Delegate overrides: | 30 // KioskProfileLoader::Delegate overrides: |
27 virtual void OnProfileLoaded(Profile* profile) OVERRIDE; | 31 virtual void OnProfileLoaded(Profile* profile) OVERRIDE; |
28 virtual void OnProfileLoadFailed(KioskAppLaunchError::Error error) OVERRIDE; | 32 virtual void OnProfileLoadFailed(KioskAppLaunchError::Error error) OVERRIDE; |
29 | 33 |
30 Profile* profile_; | |
31 scoped_ptr<KioskProfileLoader> kiosk_profile_loader_; | 34 scoped_ptr<KioskProfileLoader> kiosk_profile_loader_; |
32 | 35 |
33 DISALLOW_COPY_AND_ASSIGN(DemoAppLauncher); | 36 DISALLOW_COPY_AND_ASSIGN(DemoAppLauncher); |
34 }; | 37 }; |
35 | 38 |
36 } // namespace chromeos | 39 } // namespace chromeos |
37 | 40 |
38 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_DEMO_MODE_DEMO_APP_LAUNCHER_H_ | 41 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_DEMO_MODE_DEMO_APP_LAUNCHER_H_ |
OLD | NEW |