kiosk_app_manager_observer.h revision 116680a4aac90f2aa7413d9095a592090648e557
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 3// found in the LICENSE file. 4 5#ifndef CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_MANAGER_OBSERVER_H_ 6#define CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_MANAGER_OBSERVER_H_ 7 8#include <string> 9 10namespace chromeos { 11 12class KioskAppManagerObserver { 13 public: 14 // Invoked when the app data is changed or loading state is changed. 15 virtual void OnKioskAppDataChanged(const std::string& app_id) {} 16 17 // Invoked when failed to load web store data of an app. 18 virtual void OnKioskAppDataLoadFailure(const std::string& app_id) {} 19 20 // Invoked when the extension is loaded in cache. 21 virtual void OnKioskExtensionLoadedInCache(const std::string& app_id) {} 22 23 // Invoked when the extension download fails. 24 virtual void OnKioskExtensionDownloadFailed(const std::string& app_id) {} 25 26 // Invoked when the Kiosk Apps configuration changes. 27 virtual void OnKioskAppsSettingsChanged() {} 28 29 protected: 30 virtual ~KioskAppManagerObserver() {} 31}; 32 33} // namespace chromeos 34 35#endif // CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_MANAGER_OBSERVER_H_ 36