| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 COMPONENTS_GCM_DRIVER_COMMON_GCM_MESSAGES_H_ | 5 #ifndef COMPONENTS_GCM_DRIVER_COMMON_GCM_MESSAGES_H_ |
| 6 #define COMPONENTS_GCM_DRIVER_COMMON_GCM_MESSAGES_H_ | 6 #define COMPONENTS_GCM_DRIVER_COMMON_GCM_MESSAGES_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 | 31 |
| 32 // Message being received from the other party. | 32 // Message being received from the other party. |
| 33 struct GCM_DRIVER_EXPORT IncomingMessage { | 33 struct GCM_DRIVER_EXPORT IncomingMessage { |
| 34 IncomingMessage(); | 34 IncomingMessage(); |
| 35 ~IncomingMessage(); | 35 ~IncomingMessage(); |
| 36 | 36 |
| 37 MessageData data; | 37 MessageData data; |
| 38 std::string collapse_key; | 38 std::string collapse_key; |
| 39 std::string sender_id; | 39 std::string sender_id; |
| 40 std::string raw_data; | 40 std::string raw_data; |
| 41 |
| 42 // Whether the contents of the message have been decrypted, and are |
| 43 // available in |raw_data|. |
| 44 bool decrypted; |
| 41 }; | 45 }; |
| 42 | 46 |
| 43 } // namespace gcm | 47 } // namespace gcm |
| 44 | 48 |
| 45 #endif // COMPONENTS_GCM_DRIVER_COMMON_GCM_MESSAGES_H_ | 49 #endif // COMPONENTS_GCM_DRIVER_COMMON_GCM_MESSAGES_H_ |
| OLD | NEW |