| OLD | NEW |
| 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_CLIENT_HELPER_H_ | 5 #ifndef CHROMEOS_DBUS_SHILL_CLIENT_HELPER_H_ |
| 6 #define CHROMEOS_DBUS_SHILL_CLIENT_HELPER_H_ | 6 #define CHROMEOS_DBUS_SHILL_CLIENT_HELPER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
| 14 #include "base/observer_list.h" | 14 #include "base/observer_list.h" |
| 15 #include "base/values.h" | 15 #include "base/values.h" |
| 16 #include "chromeos/dbus/dbus_method_call_status.h" | 16 #include "chromeos/dbus/dbus_method_call_status.h" |
| 17 #include "chromeos/dbus/shill_property_changed_observer.h" | 17 #include "chromeos/dbus/shill_property_changed_observer.h" |
| 18 | 18 |
| 19 namespace base { | 19 namespace base { |
| 20 | 20 |
| 21 class Value; | 21 class Value; |
| 22 class DictionaryValue; | 22 class DictionaryValue; |
| 23 | 23 |
| 24 } // namespace base | 24 } // namespace base |
| 25 | 25 |
| 26 namespace dbus { | 26 namespace dbus { |
| 27 | 27 |
| 28 class Bus; | |
| 29 class ErrorResponse; | |
| 30 class MessageWriter; | 28 class MessageWriter; |
| 31 class MethodCall; | 29 class MethodCall; |
| 32 class ObjectPath; | |
| 33 class ObjectProxy; | 30 class ObjectProxy; |
| 34 class Response; | |
| 35 class Signal; | 31 class Signal; |
| 36 | 32 |
| 37 } // namespace dbus | 33 } // namespace dbus |
| 38 | 34 |
| 39 namespace chromeos { | 35 namespace chromeos { |
| 40 | 36 |
| 41 // A class to help implement Shill clients. | 37 // A class to help implement Shill clients. |
| 42 class ShillClientHelper { | 38 class ShillClientHelper { |
| 43 public: | 39 public: |
| 44 class RefHolder; | 40 class RefHolder; |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 // Note: This should remain the last member so it'll be destroyed and | 178 // Note: This should remain the last member so it'll be destroyed and |
| 183 // invalidate its weak pointers before any other members are destroyed. | 179 // invalidate its weak pointers before any other members are destroyed. |
| 184 base::WeakPtrFactory<ShillClientHelper> weak_ptr_factory_; | 180 base::WeakPtrFactory<ShillClientHelper> weak_ptr_factory_; |
| 185 | 181 |
| 186 DISALLOW_COPY_AND_ASSIGN(ShillClientHelper); | 182 DISALLOW_COPY_AND_ASSIGN(ShillClientHelper); |
| 187 }; | 183 }; |
| 188 | 184 |
| 189 } // namespace chromeos | 185 } // namespace chromeos |
| 190 | 186 |
| 191 #endif // CHROMEOS_DBUS_SHILL_CLIENT_HELPER_H_ | 187 #endif // CHROMEOS_DBUS_SHILL_CLIENT_HELPER_H_ |
| OLD | NEW |