| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 COMPONENTS_ARC_STORAGE_MANAGER_ARC_STORAGE_MANAGER_H_ | 5 #ifndef COMPONENTS_ARC_STORAGE_MANAGER_ARC_STORAGE_MANAGER_H_ |
| 6 #define COMPONENTS_ARC_STORAGE_MANAGER_ARC_STORAGE_MANAGER_H_ | 6 #define COMPONENTS_ARC_STORAGE_MANAGER_ARC_STORAGE_MANAGER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 // Gets storage usage of all application's APK, data, and cache size. | 33 // Gets storage usage of all application's APK, data, and cache size. |
| 34 using GetApplicationsSizeCallback = | 34 using GetApplicationsSizeCallback = |
| 35 base::Callback<void(bool succeeded, arc::mojom::ApplicationsSizePtr)>; | 35 base::Callback<void(bool succeeded, arc::mojom::ApplicationsSizePtr)>; |
| 36 bool GetApplicationsSize(const GetApplicationsSizeCallback& callback); | 36 bool GetApplicationsSize(const GetApplicationsSizeCallback& callback); |
| 37 | 37 |
| 38 // Deletes all applications' cache files. | 38 // Deletes all applications' cache files. |
| 39 bool DeleteApplicationsCache(const base::Callback<void()>& callback); | 39 bool DeleteApplicationsCache(const base::Callback<void()>& callback); |
| 40 | 40 |
| 41 private: | 41 private: |
| 42 mojom::StorageManagerInstance* GetStorageManagerInstance(); | |
| 43 | |
| 44 DISALLOW_COPY_AND_ASSIGN(ArcStorageManager); | 42 DISALLOW_COPY_AND_ASSIGN(ArcStorageManager); |
| 45 }; | 43 }; |
| 46 | 44 |
| 47 } // namespace arc | 45 } // namespace arc |
| 48 | 46 |
| 49 #endif // COMPONENTS_ARC_STORAGE_MANAGER_ARC_STORAGE_MANAGER_H_ | 47 #endif // COMPONENTS_ARC_STORAGE_MANAGER_ARC_STORAGE_MANAGER_H_ |
| OLD | NEW |