diff options
Diffstat (limited to 'common/cleanup_previous_update_action_delegate.h')
-rw-r--r-- | common/cleanup_previous_update_action_delegate.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/common/cleanup_previous_update_action_delegate.h b/common/cleanup_previous_update_action_delegate.h new file mode 100644 index 00000000..7dad9c50 --- /dev/null +++ b/common/cleanup_previous_update_action_delegate.h @@ -0,0 +1,32 @@ +// +// Copyright (C) 2020 The Android Open Source Project +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +#ifndef UPDATE_ENGINE_CLEANUP_PREVIOUS_UPDATE_ACTION_DELEGETE_H_ +#define UPDATE_ENGINE_CLEANUP_PREVIOUS_UPDATE_ACTION_DELEGETE_H_ + +namespace chromeos_update_engine { + +// Delegate interface for CleanupPreviousUpdateAction. +class CleanupPreviousUpdateActionDelegateInterface { + public: + virtual ~CleanupPreviousUpdateActionDelegateInterface() {} + // |progress| is within [0, 1] + virtual void OnCleanupProgressUpdate(double progress) = 0; +}; + +} // namespace chromeos_update_engine + +#endif // UPDATE_ENGINE_CLEANUP_PREVIOUS_UPDATE_ACTION_DELEGETE_H_ |