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

Side by Side Diff: chrome/browser/chromeos/login/demo_mode/demo_app_launcher.h

Issue 171423009: Use MountGuest to mount cryptohome for a demo user. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "chrome/browser/chromeos/app_mode/kiosk_profile_loader.h" 9 #include "chrome/browser/chromeos/app_mode/kiosk_profile_loader.h"
10 10
11 class Profile; 11 class Profile;
12 12
13 namespace chromeos { 13 namespace chromeos {
14 14
15 // Class responsible for launching the demo app under a kiosk session. 15 // Class responsible for launching the demo app under a kiosk session.
16 class DemoAppLauncher : public KioskProfileLoader::Delegate { 16 class DemoAppLauncher : public KioskProfileLoader::Delegate {
17 public: 17 public:
18 DemoAppLauncher(); 18 DemoAppLauncher();
19 virtual ~DemoAppLauncher(); 19 virtual ~DemoAppLauncher();
20 20
21 void StartDemoAppLaunch(); 21 void StartDemoAppLaunch();
22 22
23 static bool IsDemoAppSession(const std::string& user_id); 23 static bool IsDemoAppSession(const std::string& user_id);
24 static const char kDemoUserName[];
24 25
25 private: 26 private:
26 // KioskProfileLoader::Delegate overrides: 27 // KioskProfileLoader::Delegate overrides:
27 virtual void OnProfileLoaded(Profile* profile) OVERRIDE; 28 virtual void OnProfileLoaded(Profile* profile) OVERRIDE;
28 virtual void OnProfileLoadFailed(KioskAppLaunchError::Error error) OVERRIDE; 29 virtual void OnProfileLoadFailed(KioskAppLaunchError::Error error) OVERRIDE;
29 30
30 Profile* profile_; 31 Profile* profile_;
31 scoped_ptr<KioskProfileLoader> kiosk_profile_loader_; 32 scoped_ptr<KioskProfileLoader> kiosk_profile_loader_;
32 33
33 DISALLOW_COPY_AND_ASSIGN(DemoAppLauncher); 34 DISALLOW_COPY_AND_ASSIGN(DemoAppLauncher);
34 }; 35 };
35 36
36 } // namespace chromeos 37 } // namespace chromeos
37 38
38 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_DEMO_MODE_DEMO_APP_LAUNCHER_H_ 39 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_DEMO_MODE_DEMO_APP_LAUNCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698