| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_COMMON_EXTENSIONS_API_MESSAGING_MESSAGE_H_ | 5 #ifndef EXTENSIONS_COMMON_API_MESSAGING_MESSAGE_H_ |
| 6 #define CHROME_COMMON_EXTENSIONS_API_MESSAGING_MESSAGE_H_ | 6 #define EXTENSIONS_COMMON_API_MESSAGING_MESSAGE_H_ |
| 7 | 7 |
| 8 namespace extensions { | 8 namespace extensions { |
| 9 | 9 |
| 10 // A message consists of both the data itself as well as a user gestur e state. | 10 // A message consists of both the data itself as well as a user gesture state. |
| 11 struct Message { | 11 struct Message { |
| 12 std::string data; | 12 std::string data; |
| 13 bool user_gesture; | 13 bool user_gesture; |
| 14 | 14 |
| 15 Message() : data(), user_gesture(false) {} | 15 Message() : data(), user_gesture(false) {} |
| 16 Message(const std::string& data, bool user_gesture) | 16 Message(const std::string& data, bool user_gesture) |
| 17 : data(data), user_gesture(user_gesture) {} | 17 : data(data), user_gesture(user_gesture) {} |
| 18 }; | 18 }; |
| 19 | 19 |
| 20 } // namespace extensions | 20 } // namespace extensions |
| 21 | 21 |
| 22 #endif // CHROME_COMMON_EXTENSIONS_API_MESSAGING_MESSAGE_H_ | 22 #endif // EXTENSIONS_COMMON_API_MESSAGING_MESSAGE_H_ |
| OLD | NEW |