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

Side by Side Diff: chrome/browser/chromeos/app_mode/startup_app_launcher.h

Issue 2669203006: When restoring kiosk app after crash, skip app installation steps. Installed apps should already be… (Closed)
Patch Set: Created 3 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_APP_MODE_STARTUP_APP_LAUNCHER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_APP_MODE_STARTUP_APP_LAUNCHER_H_
6 #define CHROME_BROWSER_CHROMEOS_APP_MODE_STARTUP_APP_LAUNCHER_H_ 6 #define CHROME_BROWSER_CHROMEOS_APP_MODE_STARTUP_APP_LAUNCHER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 28 matching lines...) Expand all
39 public: 39 public:
40 class Delegate { 40 class Delegate {
41 public: 41 public:
42 // Invoked to perform actual network initialization work. Note the app 42 // Invoked to perform actual network initialization work. Note the app
43 // launch flow is paused until ContinueWithNetworkReady is called. 43 // launch flow is paused until ContinueWithNetworkReady is called.
44 virtual void InitializeNetwork() = 0; 44 virtual void InitializeNetwork() = 0;
45 45
46 // Returns true if Internet is online. 46 // Returns true if Internet is online.
47 virtual bool IsNetworkReady() = 0; 47 virtual bool IsNetworkReady() = 0;
48 48
49 // Whether app launch flow can assume all required apps are installed, and
50 // skip app installation steps.
51 virtual bool ShouldSkipAppInstallation() = 0;
52
49 virtual void OnLoadingOAuthFile() = 0; 53 virtual void OnLoadingOAuthFile() = 0;
50 virtual void OnInitializingTokenService() = 0; 54 virtual void OnInitializingTokenService() = 0;
51 virtual void OnInstallingApp() = 0; 55 virtual void OnInstallingApp() = 0;
52 virtual void OnReadyToLaunch() = 0; 56 virtual void OnReadyToLaunch() = 0;
53 virtual void OnLaunchSucceeded() = 0; 57 virtual void OnLaunchSucceeded() = 0;
54 virtual void OnLaunchFailed(KioskAppLaunchError::Error error) = 0; 58 virtual void OnLaunchFailed(KioskAppLaunchError::Error error) = 0;
55 virtual bool IsShowingNetworkConfigScreen() = 0; 59 virtual bool IsShowingNetworkConfigScreen() = 0;
56 60
57 protected: 61 protected:
58 virtual ~Delegate() {} 62 virtual ~Delegate() {}
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 159
156 KioskOAuthParams auth_params_; 160 KioskOAuthParams auth_params_;
157 content::NotificationRegistrar registrar_; 161 content::NotificationRegistrar registrar_;
158 162
159 DISALLOW_COPY_AND_ASSIGN(StartupAppLauncher); 163 DISALLOW_COPY_AND_ASSIGN(StartupAppLauncher);
160 }; 164 };
161 165
162 } // namespace chromeos 166 } // namespace chromeos
163 167
164 #endif // CHROME_BROWSER_CHROMEOS_APP_MODE_STARTUP_APP_LAUNCHER_H_ 168 #endif // CHROME_BROWSER_CHROMEOS_APP_MODE_STARTUP_APP_LAUNCHER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/app_mode/app_launch_utils.cc ('k') | chrome/browser/chromeos/app_mode/startup_app_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698