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

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

Issue 676913002: kiosk: Support update url for enterprise. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 1 month 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/app_mode/kiosk_app_manager.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