blob: d424f4a26059abf37693ef6b80fa83cfdc03bdb8 [file] [log] [blame]
Klemen Kozjekb0658852017-08-15 13:03:48 +09001// Copyright 2017 The Chromium OS 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 CROS_DISKS_RENAME_MANAGER_OBSERVER_INTERFACE_H_
6#define CROS_DISKS_RENAME_MANAGER_OBSERVER_INTERFACE_H_
7
8#include <string>
9
10#include <chromeos/dbus/service_constants.h>
11
12namespace cros_disks {
13
14// An interface class for observing events from the rename manager.
15// A derived class of this class should override the event methods
16// that it would like to observe.
17class RenameManagerObserverInterface {
18 public:
19 virtual ~RenameManagerObserverInterface() = default;
20
21 // This method is called when a renaming operation on a device has
22 // completed. |error_type| indicates whether the operation succeeded
23 // or failed with a particular error.
24 virtual void OnRenameCompleted(const std::string& device_path,
25 RenameErrorType error_type) = 0;
26};
27
28} // namespace cros_disks
29
30#endif // CROS_DISKS_RENAME_MANAGER_OBSERVER_INTERFACE_H_