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