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

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

Issue 540673003: Add more browser tests for Kiosk update from usb stick. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove TestObsesrver. Created 6 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/app_mode/kiosk_app_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_KIOSK_APP_MANAGER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_MANAGER_H_
6 #define CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_MANAGER_H_ 6 #define CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 void InstallFromCache(const std::string& id); 179 void InstallFromCache(const std::string& id);
180 180
181 void UpdateExternalCache(); 181 void UpdateExternalCache();
182 182
183 // Monitors kiosk external update from usb stick. 183 // Monitors kiosk external update from usb stick.
184 void MonitorKioskExternalUpdate(); 184 void MonitorKioskExternalUpdate();
185 185
186 // Invoked when kiosk app cache has been updated. 186 // Invoked when kiosk app cache has been updated.
187 void OnKioskAppCacheUpdated(const std::string& app_id); 187 void OnKioskAppCacheUpdated(const std::string& app_id);
188 188
189 // Invoked when kiosk app updating from usb stick has been completed.
190 // |success| indicates if all the updates are completed successfully.
191 void OnKioskAppExternalUpdateComplete(bool success);
192
189 // Installs the validated external extension into cache. 193 // Installs the validated external extension into cache.
190 void PutValidatedExternalExtension( 194 void PutValidatedExternalExtension(
191 const std::string& app_id, 195 const std::string& app_id,
192 const base::FilePath& crx_path, 196 const base::FilePath& crx_path,
193 const std::string& version, 197 const std::string& version,
194 const ExternalCache::PutExternalExtensionCallback& callback); 198 const ExternalCache::PutExternalExtensionCallback& callback);
195 199
196 bool external_loader_created() const { return external_loader_created_; } 200 bool external_loader_created() const { return external_loader_created_; }
197 201
198 private: 202 private:
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 // The extension external loader for installing kiosk app. 279 // The extension external loader for installing kiosk app.
276 bool external_loader_created_; 280 bool external_loader_created_;
277 base::WeakPtr<KioskAppExternalLoader> external_loader_; 281 base::WeakPtr<KioskAppExternalLoader> external_loader_;
278 282
279 DISALLOW_COPY_AND_ASSIGN(KioskAppManager); 283 DISALLOW_COPY_AND_ASSIGN(KioskAppManager);
280 }; 284 };
281 285
282 } // namespace chromeos 286 } // namespace chromeos
283 287
284 #endif // CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_MANAGER_H_ 288 #endif // CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/app_mode/kiosk_app_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698