| 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_NETWORK_NETWORK_HANDLER_CALLBACKS_H_ | 5 #ifndef CHROMEOS_NETWORK_NETWORK_HANDLER_CALLBACKS_H_ |
| 6 #define CHROMEOS_NETWORK_NETWORK_HANDLER_CALLBACKS_H_ | 6 #define CHROMEOS_NETWORK_NETWORK_HANDLER_CALLBACKS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "chromeos/chromeos_export.h" | 12 #include "chromeos/chromeos_export.h" |
| 13 #include "chromeos/dbus/dbus_method_call_status.h" | 13 #include "chromeos/dbus/dbus_method_call_status.h" |
| 14 | 14 |
| 15 namespace base { | 15 namespace base { |
| 16 class DictionaryValue; | 16 class DictionaryValue; |
| 17 } | 17 } |
| 18 | 18 |
| 19 namespace chromeos { | 19 namespace chromeos { |
| 20 namespace network_handler { | 20 namespace network_handler { |
| 21 | 21 |
| 22 CHROMEOS_EXPORT extern const char kErrorName[]; |
| 23 CHROMEOS_EXPORT extern const char kErrorDetail[]; |
| 24 CHROMEOS_EXPORT extern const char kDbusErrorName[]; |
| 25 CHROMEOS_EXPORT extern const char kDbusErrorMessage[]; |
| 26 |
| 22 // An error callback used by both the configuration handler and the state | 27 // An error callback used by both the configuration handler and the state |
| 23 // handler to receive error results from the API. | 28 // handler to receive error results from the API. |
| 24 typedef base::Callback< | 29 typedef base::Callback< |
| 25 void(const std::string& error_name, | 30 void(const std::string& error_name, |
| 26 scoped_ptr<base::DictionaryValue> error_data)> ErrorCallback; | 31 scoped_ptr<base::DictionaryValue> error_data)> ErrorCallback; |
| 27 | 32 |
| 28 typedef base::Callback< | 33 typedef base::Callback< |
| 29 void(const std::string& service_path, | 34 void(const std::string& service_path, |
| 30 const base::DictionaryValue& dictionary)> DictionaryResultCallback; | 35 const base::DictionaryValue& dictionary)> DictionaryResultCallback; |
| 31 | 36 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 const network_handler::DictionaryResultCallback& callback, | 70 const network_handler::DictionaryResultCallback& callback, |
| 66 const network_handler::ErrorCallback& error_callback, | 71 const network_handler::ErrorCallback& error_callback, |
| 67 const std::string& path, | 72 const std::string& path, |
| 68 DBusMethodCallStatus call_status, | 73 DBusMethodCallStatus call_status, |
| 69 const base::DictionaryValue& value); | 74 const base::DictionaryValue& value); |
| 70 | 75 |
| 71 } // namespace network_handler | 76 } // namespace network_handler |
| 72 } // namespace chromeos | 77 } // namespace chromeos |
| 73 | 78 |
| 74 #endif // CHROMEOS_NETWORK_NETWORK_HANDLER_CALLBACKS_H_ | 79 #endif // CHROMEOS_NETWORK_NETWORK_HANDLER_CALLBACKS_H_ |
| OLD | NEW |