Scott Violet | 53bfef6 | 2020-06-09 00:43:07 | [diff] [blame] | 1 | // Copyright 2020 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. |
| 4 | |
Scott Violet | 63553fe | 2020-06-09 16:59:25 | [diff] [blame] | 5 | #ifndef COMPONENTS_JS_INJECTION_BROWSER_WEB_MESSAGE_H_ |
| 6 | #define COMPONENTS_JS_INJECTION_BROWSER_WEB_MESSAGE_H_ |
Scott Violet | 53bfef6 | 2020-06-09 00:43:07 | [diff] [blame] | 7 | |
| 8 | #include <vector> |
| 9 | |
| 10 | #include "base/strings/string16.h" |
| 11 | #include "third_party/blink/public/common/messaging/message_port_descriptor.h" |
| 12 | |
Scott Violet | 63553fe | 2020-06-09 16:59:25 | [diff] [blame] | 13 | namespace js_injection { |
Scott Violet | 53bfef6 | 2020-06-09 00:43:07 | [diff] [blame] | 14 | |
| 15 | // Represents a message to or from the page. |
| 16 | struct WebMessage { |
| 17 | WebMessage(); |
| 18 | ~WebMessage(); |
| 19 | |
| 20 | base::string16 message; |
| 21 | std::vector<blink::MessagePortDescriptor> ports; |
| 22 | }; |
| 23 | |
Scott Violet | 63553fe | 2020-06-09 16:59:25 | [diff] [blame] | 24 | } // namespace js_injection |
Scott Violet | 53bfef6 | 2020-06-09 00:43:07 | [diff] [blame] | 25 | |
Scott Violet | 63553fe | 2020-06-09 16:59:25 | [diff] [blame] | 26 | #endif // COMPONENTS_JS_INJECTION_BROWSER_WEB_MESSAGE_H_ |