• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_DATA_DELEGATE_H_
6 #define CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_DATA_DELEGATE_H_
7 
8 #include <string>
9 
10 namespace base {
11 class FilePath;
12 }
13 
14 namespace chromeos {
15 
16 class KioskAppDataDelegate {
17  public:
18   // Invoked to get the root directory for storing cached icon files.
19   virtual void GetKioskAppIconCacheDir(base::FilePath* cache_dir) = 0;
20 
21   // Invoked when kiosk app data or status has changed.
22   virtual void OnKioskAppDataChanged(const std::string& app_id) = 0;
23 
24   // Invoked when failed to load web store data of an app.
25   virtual void OnKioskAppDataLoadFailure(const std::string& app_id) = 0;
26 
27  protected:
~KioskAppDataDelegate()28   virtual ~KioskAppDataDelegate() {}
29 };
30 
31 }  // namespace chromeos
32 
33 #endif  // CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_DATA_DELEGATE_H_
34