Chromium Code Reviews| 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_KIOSK_APP_DATA_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_DATA_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_DATA_DELEGATE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_DATA_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 namespace base { | 10 namespace base { |
| 11 class FilePath; | 11 class FilePath; |
| 12 } | 12 } |
| 13 | 13 |
| 14 namespace chromeos { | 14 namespace chromeos { |
| 15 | 15 |
| 16 class KioskAppDataDelegate { | 16 class KioskAppDataDelegate { |
| 17 public: | 17 public: |
| 18 // Invoked to get the root directory for storing cached icon files. | 18 // Invoked to get the root directory for storing cached icon files. |
| 19 virtual void GetKioskAppIconCacheDir(base::FilePath* cache_dir) = 0; | 19 virtual void GetKioskAppIconCacheDir(base::FilePath* cache_dir) = 0; |
| 20 | 20 |
| 21 // Invoked to get the root directory for storing cached crx files. | |
| 22 virtual void GetKioskAppCrxCacheDir(base::FilePath* cache_dir) = 0; | |
|
xiyuan
2014/05/02 22:19:45
This does not belong here since KioskAppData does
jennyz
2014/05/02 22:31:01
Done.
| |
| 23 | |
| 21 // Invoked when kiosk app data or status has changed. | 24 // Invoked when kiosk app data or status has changed. |
| 22 virtual void OnKioskAppDataChanged(const std::string& app_id) = 0; | 25 virtual void OnKioskAppDataChanged(const std::string& app_id) = 0; |
| 23 | 26 |
| 24 // Invoked when failed to load web store data of an app. | 27 // Invoked when failed to load web store data of an app. |
| 25 virtual void OnKioskAppDataLoadFailure(const std::string& app_id) = 0; | 28 virtual void OnKioskAppDataLoadFailure(const std::string& app_id) = 0; |
| 26 | 29 |
| 27 protected: | 30 protected: |
| 28 virtual ~KioskAppDataDelegate() {} | 31 virtual ~KioskAppDataDelegate() {} |
| 29 }; | 32 }; |
| 30 | 33 |
| 31 } // namespace chromeos | 34 } // namespace chromeos |
| 32 | 35 |
| 33 #endif // CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_DATA_DELEGATE_H_ | 36 #endif // CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_DATA_DELEGATE_H_ |
| OLD | NEW |