| Index: chrome/browser/chromeos/app_mode/kiosk_app_launcher.h
|
| diff --git a/chrome/browser/chromeos/app_mode/kiosk_app_launcher.h b/chrome/browser/chromeos/app_mode/kiosk_app_launcher.h
|
| deleted file mode 100644
|
| index 5b9908f7b824833a3498a64ac91356e67aec27f1..0000000000000000000000000000000000000000
|
| --- a/chrome/browser/chromeos/app_mode/kiosk_app_launcher.h
|
| +++ /dev/null
|
| @@ -1,73 +0,0 @@
|
| -// Copyright 2013 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_APP_MODE_KIOSK_APP_LAUNCHER_H_
|
| -#define CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_LAUNCHER_H_
|
| -
|
| -#include <string>
|
| -
|
| -#include "base/basictypes.h"
|
| -#include "base/callback.h"
|
| -#include "base/memory/scoped_ptr.h"
|
| -#include "chrome/browser/chromeos/app_mode/kiosk_app_launch_error.h"
|
| -#include "third_party/cros_system_api/dbus/service_constants.h"
|
| -
|
| -class Profile;
|
| -
|
| -namespace chromeos {
|
| -
|
| -class KioskAppManager;
|
| -
|
| -// KioskAppLauncher launches a given app from login screen. It first attempts
|
| -// to mount a cryptohome for the app. If the mount is successful, it prepares
|
| -// app profile then calls StartupAppLauncher to finish the launch. If mount
|
| -// fails, it sets relevant launch error and restart chrome to gets back to
|
| -// the login screen. Note that there should only be one launch attempt in
|
| -// progress.
|
| -class KioskAppLauncher {
|
| - public:
|
| - KioskAppLauncher(KioskAppManager* kiosk_app_manager,
|
| - const std::string& app_id);
|
| -
|
| - // Starts a launch attempt. Fails immediately if there is already a launch
|
| - // attempt running.
|
| - void Start();
|
| -
|
| - private:
|
| - class CryptohomedChecker;
|
| - class ProfileLoader;
|
| -
|
| - // Private dtor because this class manages its own lifetime.
|
| - ~KioskAppLauncher();
|
| -
|
| - void ReportLaunchResult(KioskAppLaunchError::Error error);
|
| -
|
| - void StartMount();
|
| - void MountCallback(bool mount_success, cryptohome::MountError mount_error);
|
| -
|
| - void AttemptRemove();
|
| - void RemoveCallback(bool success,
|
| - cryptohome::MountError return_code);
|
| -
|
| - void OnProfilePrepared(Profile* profile);
|
| -
|
| - // The instance of the current running launch.
|
| - static KioskAppLauncher* running_instance_;
|
| -
|
| - KioskAppManager* kiosk_app_manager_;
|
| - const std::string app_id_;
|
| - std::string user_id_;
|
| -
|
| - scoped_ptr<CryptohomedChecker> crytohomed_checker;
|
| - scoped_ptr<ProfileLoader> profile_loader_;
|
| -
|
| - // Whether remove existing cryptohome has attempted.
|
| - bool remove_attempted_;
|
| -
|
| - DISALLOW_COPY_AND_ASSIGN(KioskAppLauncher);
|
| -};
|
| -
|
| -} // namespace chromeos
|
| -
|
| -#endif // CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_LAUNCHER_H_
|
|
|