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

Side by Side Diff: chromeos/network/network_sms_handler.h

Issue 11367048: This is the first pass at making GetIPConfigs asynchronous. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 1 month 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
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_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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 private: 49 private:
50 class NetworkSmsDeviceHandler; 50 class NetworkSmsDeviceHandler;
51 class ModemManagerNetworkSmsDeviceHandler; 51 class ModemManagerNetworkSmsDeviceHandler;
52 class ModemManager1NetworkSmsDeviceHandler; 52 class ModemManager1NetworkSmsDeviceHandler;
53 53
54 // Called from NetworkSmsDeviceHandler when a message is received. 54 // Called from NetworkSmsDeviceHandler when a message is received.
55 void NotifyMessageReceived(const base::DictionaryValue& message); 55 void NotifyMessageReceived(const base::DictionaryValue& message);
56 56
57 // Callback to handle the manager properties with the list of devices. 57 // Callback to handle the manager properties with the list of devices.
58 void ManagerPropertiesCallback(DBusMethodCallStatus call_status, 58 void ManagerPropertiesCallback(DBusMethodCallStatus call_status,
59 const base::DictionaryValue& properties); 59 scoped_ptr<base::DictionaryValue> properties);
60 60
61 // Callback to handle the device properties for |device_path|. 61 // Callback to handle the device properties for |device_path|.
62 // A NetworkSmsDeviceHandler will be instantiated for each cellular device. 62 // A NetworkSmsDeviceHandler will be instantiated for each cellular device.
63 void DevicePropertiesCallback(const std::string& device_path, 63 void DevicePropertiesCallback(const std::string& device_path,
64 DBusMethodCallStatus call_status, 64 DBusMethodCallStatus call_status,
65 const base::DictionaryValue& properties); 65 scoped_ptr<base::DictionaryValue> properties);
66 66
67 ObserverList<Observer> observers_; 67 ObserverList<Observer> observers_;
68 ScopedVector<NetworkSmsDeviceHandler> device_handlers_; 68 ScopedVector<NetworkSmsDeviceHandler> device_handlers_;
69 base::WeakPtrFactory<NetworkSmsHandler> weak_ptr_factory_; 69 base::WeakPtrFactory<NetworkSmsHandler> weak_ptr_factory_;
70 70
71 DISALLOW_COPY_AND_ASSIGN(NetworkSmsHandler); 71 DISALLOW_COPY_AND_ASSIGN(NetworkSmsHandler);
72 }; 72 };
73 73
74 } // namespace 74 } // namespace
75 75
76 #endif // CHROMEOS_NETWORK_NETWORK_SMS_HANDLER_H_ 76 #endif // CHROMEOS_NETWORK_NETWORK_SMS_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698