| OLD | NEW |
| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 // OAuth parameters from /home/chronos/kiosk_auth file. | 78 // OAuth parameters from /home/chronos/kiosk_auth file. |
| 79 struct KioskOAuthParams { | 79 struct KioskOAuthParams { |
| 80 std::string refresh_token; | 80 std::string refresh_token; |
| 81 std::string client_id; | 81 std::string client_id; |
| 82 std::string client_secret; | 82 std::string client_secret; |
| 83 }; | 83 }; |
| 84 | 84 |
| 85 void OnLaunchSuccess(); | 85 void OnLaunchSuccess(); |
| 86 void OnLaunchFailure(KioskAppLaunchError::Error error); | 86 void OnLaunchFailure(KioskAppLaunchError::Error error); |
| 87 | 87 |
| 88 // Callbacks from ExtensionUpdater. | |
| 89 void OnUpdateCheckFinished(); | |
| 90 | |
| 91 void BeginInstall(); | 88 void BeginInstall(); |
| 92 void OnReadyToLaunch(); | 89 void OnReadyToLaunch(); |
| 93 void UpdateAppData(); | 90 void UpdateAppData(); |
| 94 | 91 |
| 95 void InitializeTokenService(); | 92 void InitializeTokenService(); |
| 96 void MaybeInitializeNetwork(); | 93 void MaybeInitializeNetwork(); |
| 97 void MaybeLaunchApp(); | 94 void MaybeLaunchApp(); |
| 98 | 95 |
| 99 void StartLoadingOAuthFile(); | 96 void StartLoadingOAuthFile(); |
| 100 static void LoadOAuthFileOnBlockingPool(KioskOAuthParams* auth_params); | 97 static void LoadOAuthFileOnBlockingPool(KioskOAuthParams* auth_params); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 126 bool wait_for_crx_update_; | 123 bool wait_for_crx_update_; |
| 127 | 124 |
| 128 KioskOAuthParams auth_params_; | 125 KioskOAuthParams auth_params_; |
| 129 | 126 |
| 130 DISALLOW_COPY_AND_ASSIGN(StartupAppLauncher); | 127 DISALLOW_COPY_AND_ASSIGN(StartupAppLauncher); |
| 131 }; | 128 }; |
| 132 | 129 |
| 133 } // namespace chromeos | 130 } // namespace chromeos |
| 134 | 131 |
| 135 #endif // CHROME_BROWSER_CHROMEOS_APP_MODE_STARTUP_APP_LAUNCHER_H_ | 132 #endif // CHROME_BROWSER_CHROMEOS_APP_MODE_STARTUP_APP_LAUNCHER_H_ |
| OLD | NEW |