Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(195)

Side by Side Diff: chromeos/dbus/shill_property_changed_observer.h

Issue 12669004: Fix NetworkSmsHandler to observe Manager and improve API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chromeos/network/network_handler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROMEOS_DBUS_SHILL_PROPERTY_CHANGED_OBSERVER_H_ 5 #ifndef CHROMEOS_DBUS_SHILL_PROPERTY_CHANGED_OBSERVER_H_
6 #define CHROMEOS_DBUS_SHILL_PROPERTY_CHANGED_OBSERVER_H_ 6 #define CHROMEOS_DBUS_SHILL_PROPERTY_CHANGED_OBSERVER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 namespace base { 10 namespace base {
11 class Value; 11 class Value;
12 } 12 }
13 13
14 namespace chromeos { 14 namespace chromeos {
15 15
16 // This is a base class for observers which handle the PropertyChanged signal 16 // This is a base class for observers which handle the PropertyChanged signal
17 // sent from Shill. 17 // sent from Shill.
18 class ShillPropertyChangedObserver { 18 class ShillPropertyChangedObserver {
19 public: 19 public:
20 virtual ~ShillPropertyChangedObserver() {}
21 virtual void OnPropertyChanged(const std::string& name, 20 virtual void OnPropertyChanged(const std::string& name,
22 const base::Value& value) = 0; 21 const base::Value& value) = 0;
22
23 protected:
24 virtual ~ShillPropertyChangedObserver() {}
23 }; 25 };
24 26
25 } // namespace chromeos 27 } // namespace chromeos
26 28
27 #endif // CHROMEOS_DBUS_SHILL_PROPERTY_CHANGED_OBSERVER_H_ 29 #endif // CHROMEOS_DBUS_SHILL_PROPERTY_CHANGED_OBSERVER_H_
OLDNEW
« no previous file with comments | « no previous file | chromeos/network/network_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698