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 CHROME_BROWSER_CHROMEOS_CROS_SMS_WATCHER_H_ | 5 #ifndef CHROMEOS_NETWORK_SMS_WATCHER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_CROS_SMS_WATCHER_H_ | 6 #define CHROMEOS_NETWORK_SMS_WATCHER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
12 #include "chrome/browser/chromeos/cros/cros_network_functions.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 #include "chromeos/network/cros_network_functions.h" |
14 #include "dbus/object_path.h" | 15 #include "dbus/object_path.h" |
15 | 16 |
16 namespace base { | 17 namespace base { |
17 | 18 |
18 class DictionaryValue; | 19 class DictionaryValue; |
19 | 20 |
20 } // namespace base | 21 } // namespace base |
21 | 22 |
22 namespace chromeos { | 23 namespace chromeos { |
23 | 24 |
24 // Class to watch sms without Libcros. | 25 // Class to watch sms without Libcros. |
25 class SMSWatcher : public CrosNetworkWatcher { | 26 class CHROMEOS_EXPORT SMSWatcher : public CrosNetworkWatcher { |
26 public: | 27 public: |
27 // Dictionary key constants. | 28 // Dictionary key constants. |
28 static const char kNumberKey[]; | 29 static const char kNumberKey[]; |
29 static const char kTextKey[]; | 30 static const char kTextKey[]; |
30 static const char kTimestampKey[]; | 31 static const char kTimestampKey[]; |
31 static const char kSmscKey[]; | 32 static const char kSmscKey[]; |
32 static const char kValidityKey[]; | 33 static const char kValidityKey[]; |
33 static const char kClassKey[]; | 34 static const char kClassKey[]; |
34 static const char kIndexKey[]; | 35 static const char kIndexKey[]; |
35 | 36 |
(...skipping 21 matching lines...) Expand all Loading... |
57 base::WeakPtrFactory<SMSWatcher> weak_ptr_factory_; | 58 base::WeakPtrFactory<SMSWatcher> weak_ptr_factory_; |
58 std::string device_path_; | 59 std::string device_path_; |
59 MonitorSMSCallback callback_; | 60 MonitorSMSCallback callback_; |
60 scoped_ptr<WatcherBase> watcher_; | 61 scoped_ptr<WatcherBase> watcher_; |
61 | 62 |
62 DISALLOW_COPY_AND_ASSIGN(SMSWatcher); | 63 DISALLOW_COPY_AND_ASSIGN(SMSWatcher); |
63 }; | 64 }; |
64 | 65 |
65 } // namespace | 66 } // namespace |
66 | 67 |
67 #endif // CHROME_BROWSER_CHROMEOS_CROS_SMS_WATCHER_H_ | 68 #endif // CHROMEOS_NETWORK_SMS_WATCHER_H_ |
OLD | NEW |