| 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_SMS_HANDLER_H_ | 5 #ifndef CHROMEOS_NETWORK_NETWORK_SMS_HANDLER_H_ |
| 6 #define CHROMEOS_NETWORK_NETWORK_SMS_HANDLER_H_ | 6 #define CHROMEOS_NETWORK_NETWORK_SMS_HANDLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 | 83 |
| 84 // Requests properties for each entry in |devices|. | 84 // Requests properties for each entry in |devices|. |
| 85 void UpdateDevices(const base::ListValue* devices); | 85 void UpdateDevices(const base::ListValue* devices); |
| 86 | 86 |
| 87 // Callback to handle the device properties for |device_path|. | 87 // Callback to handle the device properties for |device_path|. |
| 88 // A NetworkSmsDeviceHandler will be instantiated for each cellular device. | 88 // A NetworkSmsDeviceHandler will be instantiated for each cellular device. |
| 89 void DevicePropertiesCallback(const std::string& device_path, | 89 void DevicePropertiesCallback(const std::string& device_path, |
| 90 DBusMethodCallStatus call_status, | 90 DBusMethodCallStatus call_status, |
| 91 const base::DictionaryValue& properties); | 91 const base::DictionaryValue& properties); |
| 92 | 92 |
| 93 base::ObserverList<Observer> observers_; | 93 base::ObserverList<Observer, true> observers_; |
| 94 ScopedVector<NetworkSmsDeviceHandler> device_handlers_; | 94 ScopedVector<NetworkSmsDeviceHandler> device_handlers_; |
| 95 ScopedVector<base::DictionaryValue> received_messages_; | 95 ScopedVector<base::DictionaryValue> received_messages_; |
| 96 base::WeakPtrFactory<NetworkSmsHandler> weak_ptr_factory_; | 96 base::WeakPtrFactory<NetworkSmsHandler> weak_ptr_factory_; |
| 97 | 97 |
| 98 DISALLOW_COPY_AND_ASSIGN(NetworkSmsHandler); | 98 DISALLOW_COPY_AND_ASSIGN(NetworkSmsHandler); |
| 99 }; | 99 }; |
| 100 | 100 |
| 101 } // namespace | 101 } // namespace chromeos |
| 102 | 102 |
| 103 #endif // CHROMEOS_NETWORK_NETWORK_SMS_HANDLER_H_ | 103 #endif // CHROMEOS_NETWORK_NETWORK_SMS_HANDLER_H_ |
| OLD | NEW |