summaryrefslogtreecommitdiffstats
path: root/chromeos/dbus/shill_property_changed_observer.h
blob: 7ee937328cbddc7ea0930034c6d4c07d29a9253b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROMEOS_DBUS_SHILL_PROPERTY_CHANGED_OBSERVER_H_
#define CHROMEOS_DBUS_SHILL_PROPERTY_CHANGED_OBSERVER_H_

#include <string>

namespace base {
class Value;
}

namespace chromeos {

// This is a base class for observers which handle the PropertyChanged signal
// sent from Shill.
class ShillPropertyChangedObserver {
 public:
  virtual void OnPropertyChanged(const std::string& name,
                                 const base::Value& value) = 0;

 protected:
  virtual ~ShillPropertyChangedObserver() {}
};

}  // namespace chromeos

#endif  // CHROMEOS_DBUS_SHILL_PROPERTY_CHANGED_OBSERVER_H_