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

Side by Side Diff: chrome/browser/chromeos/cros/sms_watcher.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 CHROME_BROWSER_CHROMEOS_CROS_SMS_WATCHER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_CROS_SMS_WATCHER_H_
6 #define CHROME_BROWSER_CHROMEOS_CROS_SMS_WATCHER_H_ 6 #define CHROME_BROWSER_CHROMEOS_CROS_SMS_WATCHER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 // derived classes in the anonymous namespace to inherit from it. 45 // derived classes in the anonymous namespace to inherit from it.
46 class WatcherBase; 46 class WatcherBase;
47 47
48 SMSWatcher(const std::string& modem_device_path, 48 SMSWatcher(const std::string& modem_device_path,
49 MonitorSMSCallback callback); 49 MonitorSMSCallback callback);
50 virtual ~SMSWatcher(); 50 virtual ~SMSWatcher();
51 51
52 private: 52 private:
53 // Callback for shill device's GetProperties() method. 53 // Callback for shill device's GetProperties() method.
54 void DevicePropertiesCallback(DBusMethodCallStatus call_status, 54 void DevicePropertiesCallback(DBusMethodCallStatus call_status,
55 const base::DictionaryValue& properties); 55 scoped_ptr<base::DictionaryValue> properties);
56 56
57 base::WeakPtrFactory<SMSWatcher> weak_ptr_factory_; 57 base::WeakPtrFactory<SMSWatcher> weak_ptr_factory_;
58 std::string device_path_; 58 std::string device_path_;
59 MonitorSMSCallback callback_; 59 MonitorSMSCallback callback_;
60 scoped_ptr<WatcherBase> watcher_; 60 scoped_ptr<WatcherBase> watcher_;
61 61
62 DISALLOW_COPY_AND_ASSIGN(SMSWatcher); 62 DISALLOW_COPY_AND_ASSIGN(SMSWatcher);
63 }; 63 };
64 64
65 } // namespace 65 } // namespace
66 66
67 #endif // CHROME_BROWSER_CHROMEOS_CROS_SMS_WATCHER_H_ 67 #endif // CHROME_BROWSER_CHROMEOS_CROS_SMS_WATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698