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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 std::string refresh_token; | 71 std::string refresh_token; |
72 std::string client_id; | 72 std::string client_id; |
73 std::string client_secret; | 73 std::string client_secret; |
74 }; | 74 }; |
75 | 75 |
76 void OnLaunchSuccess(); | 76 void OnLaunchSuccess(); |
77 void OnLaunchFailure(KioskAppLaunchError::Error error); | 77 void OnLaunchFailure(KioskAppLaunchError::Error error); |
78 | 78 |
79 void BeginInstall(); | 79 void BeginInstall(); |
80 void InstallCallback(bool success, const std::string& error); | 80 void InstallCallback(bool success, const std::string& error); |
81 void EnsureSystemSaltIsLoaded(); | 81 void OnReadyToLaunch(); |
82 void OnReadyToLaunch(const std::string& system_salt); | |
83 | 82 |
84 void InitializeTokenService(); | 83 void InitializeTokenService(); |
85 void InitializeNetwork(); | 84 void InitializeNetwork(); |
86 | 85 |
87 void StartLoadingOAuthFile(); | 86 void StartLoadingOAuthFile(); |
88 static void LoadOAuthFileOnBlockingPool(KioskOAuthParams* auth_params); | 87 static void LoadOAuthFileOnBlockingPool(KioskOAuthParams* auth_params); |
89 void OnOAuthFileLoaded(KioskOAuthParams* auth_params); | 88 void OnOAuthFileLoaded(KioskOAuthParams* auth_params); |
90 | 89 |
91 // OAuth2TokenService::Observer overrides. | 90 // OAuth2TokenService::Observer overrides. |
92 virtual void OnRefreshTokenAvailable(const std::string& account_id) OVERRIDE; | 91 virtual void OnRefreshTokenAvailable(const std::string& account_id) OVERRIDE; |
(...skipping 10 matching lines...) Expand all Loading... |
103 | 102 |
104 scoped_refptr<extensions::WebstoreStandaloneInstaller> installer_; | 103 scoped_refptr<extensions::WebstoreStandaloneInstaller> installer_; |
105 KioskOAuthParams auth_params_; | 104 KioskOAuthParams auth_params_; |
106 | 105 |
107 DISALLOW_COPY_AND_ASSIGN(StartupAppLauncher); | 106 DISALLOW_COPY_AND_ASSIGN(StartupAppLauncher); |
108 }; | 107 }; |
109 | 108 |
110 } // namespace chromeos | 109 } // namespace chromeos |
111 | 110 |
112 #endif // CHROME_BROWSER_CHROMEOS_APP_MODE_STARTUP_APP_LAUNCHER_H_ | 111 #endif // CHROME_BROWSER_CHROMEOS_APP_MODE_STARTUP_APP_LAUNCHER_H_ |
OLD | NEW |