message.h revision 1e9bf3e0803691d0a228da41fc608347b6db4340
11e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)// Copyright 2013 The Chromium Authors. All rights reserved.
21e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be
31e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)// found in the LICENSE file.
41e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)
51e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)#ifndef CHROME_COMMON_EXTENSIONS_API_MESSAGING_MESSAGE_H_
61e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)#define CHROME_COMMON_EXTENSIONS_API_MESSAGING_MESSAGE_H_
71e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)
81e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)namespace extensions {
91e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)
101e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)// A message consists of both the data itself as well as a user  gestur e state.
111e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)struct Message {
121e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)  std::string data;
131e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)  bool user_gesture;
141e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)
151e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)  Message() : data(), user_gesture(false) {}
161e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)  Message(const std::string& data, bool user_gesture)
171e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)      : data(data), user_gesture(user_gesture) {}
181e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)};
191e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)
201e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)}  // namespace extensions
211e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)
221e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)#endif  // CHROME_COMMON_EXTENSIONS_API_MESSAGING_MESSAGE_H_
23