Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / extensions / common / api / messaging / message.h
blob64ecb82a9e96a52c8c3d99a383058e43028f8cca
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef EXTENSIONS_COMMON_API_MESSAGING_MESSAGE_H_
6 #define EXTENSIONS_COMMON_API_MESSAGING_MESSAGE_H_
8 namespace extensions {
10 // A message consists of both the data itself as well as a user gesture state.
11 struct Message {
12 std::string data;
13 bool user_gesture;
15 Message() : data(), user_gesture(false) {}
16 Message(const std::string& data, bool user_gesture)
17 : data(data), user_gesture(user_gesture) {}
20 } // namespace extensions
22 #endif // EXTENSIONS_COMMON_API_MESSAGING_MESSAGE_H_