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 ASH_SYSTEM_NETWORK_SMS_OBSERVER_H | 5 #ifndef ASH_SYSTEM_NETWORK_SMS_OBSERVER_H |
6 #define ASH_SYSTEM_NETWORK_SMS_OBSERVER_H | 6 #define ASH_SYSTEM_NETWORK_SMS_OBSERVER_H |
7 #pragma once | |
8 | 7 |
9 #include "base/string16.h" | 8 #include "base/string16.h" |
10 | 9 |
11 namespace base { | 10 namespace base { |
12 class DictionaryValue; | 11 class DictionaryValue; |
13 } | 12 } |
14 | 13 |
15 namespace ash { | 14 namespace ash { |
16 | 15 |
17 const char kSmsNumberKey[] = "number"; | 16 const char kSmsNumberKey[] = "number"; |
18 const char kSmsTextKey[] = "text"; | 17 const char kSmsTextKey[] = "text"; |
19 | 18 |
20 class SmsObserver { | 19 class SmsObserver { |
21 public: | 20 public: |
22 virtual ~SmsObserver() {} | 21 virtual ~SmsObserver() {} |
23 | 22 |
24 virtual void AddMessage(const base::DictionaryValue& message) = 0; | 23 virtual void AddMessage(const base::DictionaryValue& message) = 0; |
25 }; | 24 }; |
26 | 25 |
27 } // namespace ash | 26 } // namespace ash |
28 | 27 |
29 #endif // ASH_SYSTEM_NETWORK_SMS_OBSERVER_H | 28 #endif // ASH_SYSTEM_NETWORK_SMS_OBSERVER_H |
OLD | NEW |