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

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

Issue 1301323005: Implement kiosk multiple apps feature. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 5 years, 3 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/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 84
85 void OnLaunchSuccess(); 85 void OnLaunchSuccess();
86 void OnLaunchFailure(KioskAppLaunchError::Error error); 86 void OnLaunchFailure(KioskAppLaunchError::Error error);
87 87
88 void BeginInstall(); 88 void BeginInstall();
89 void OnReadyToLaunch(); 89 void OnReadyToLaunch();
90 void UpdateAppData(); 90 void UpdateAppData();
91 91
92 void InitializeTokenService(); 92 void InitializeTokenService();
93 void MaybeInitializeNetwork(); 93 void MaybeInitializeNetwork();
94 void MaybeInstallSecondaryApps();
94 void MaybeLaunchApp(); 95 void MaybeLaunchApp();
95 96
96 void StartLoadingOAuthFile(); 97 void StartLoadingOAuthFile();
97 static void LoadOAuthFileOnBlockingPool(KioskOAuthParams* auth_params); 98 static void LoadOAuthFileOnBlockingPool(KioskOAuthParams* auth_params);
98 void OnOAuthFileLoaded(KioskOAuthParams* auth_params); 99 void OnOAuthFileLoaded(KioskOAuthParams* auth_params);
99 100
100 void OnKioskAppDataLoadStatusChanged(const std::string& app_id); 101 void OnKioskAppDataLoadStatusChanged(const std::string& app_id);
101 102
103 // Returns true if any secondary app is pending.
104 bool IsAnySecondaryAppPending() const;
105
106 // Returns true if all secondary apps have been installed.
107 bool AreSecondaryAppsInstalled() const;
108
109 // Returns true if there are secondary apps.
110 bool HaveSecondaryApps() const;
111
112 const extensions::Extension* GetPrimaryAppExtension() const;
113
102 // OAuth2TokenService::Observer overrides. 114 // OAuth2TokenService::Observer overrides.
103 void OnRefreshTokenAvailable(const std::string& account_id) override; 115 void OnRefreshTokenAvailable(const std::string& account_id) override;
104 void OnRefreshTokensLoaded() override; 116 void OnRefreshTokensLoaded() override;
105 117
106 // extensions::InstallObserver overrides. 118 // extensions::InstallObserver overrides.
107 void OnFinishCrxInstall(const std::string& extension_id, 119 void OnFinishCrxInstall(const std::string& extension_id,
108 bool success) override; 120 bool success) override;
109 121
110 // KioskAppManagerObserver overrides. 122 // KioskAppManagerObserver overrides.
111 void OnKioskExtensionLoadedInCache(const std::string& app_id) override; 123 void OnKioskExtensionLoadedInCache(const std::string& app_id) override;
112 void OnKioskExtensionDownloadFailed(const std::string& app_id) override; 124 void OnKioskExtensionDownloadFailed(const std::string& app_id) override;
113 125
114 Profile* profile_; 126 Profile* profile_;
115 const std::string app_id_; 127 const std::string app_id_;
116 const bool diagnostic_mode_; 128 const bool diagnostic_mode_;
117 Delegate* delegate_; 129 Delegate* delegate_;
118 bool network_ready_handled_; 130 bool network_ready_handled_;
119 int launch_attempt_; 131 int launch_attempt_;
120 bool ready_to_launch_; 132 bool ready_to_launch_;
121 bool wait_for_crx_update_; 133 bool wait_for_crx_update_;
122 134
123 KioskOAuthParams auth_params_; 135 KioskOAuthParams auth_params_;
124 136
125 DISALLOW_COPY_AND_ASSIGN(StartupAppLauncher); 137 DISALLOW_COPY_AND_ASSIGN(StartupAppLauncher);
126 }; 138 };
127 139
128 } // namespace chromeos 140 } // namespace chromeos
129 141
130 #endif // CHROME_BROWSER_CHROMEOS_APP_MODE_STARTUP_APP_LAUNCHER_H_ 142 #endif // CHROME_BROWSER_CHROMEOS_APP_MODE_STARTUP_APP_LAUNCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698