blob: 1061cc82a765b05469187e3fd8df0e7e748d7df0 [file] [log] [blame]
Scott Violet53bfef62020-06-09 00:43:071// 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 Violet63553fe2020-06-09 16:59:255#ifndef COMPONENTS_JS_INJECTION_BROWSER_WEB_MESSAGE_H_
6#define COMPONENTS_JS_INJECTION_BROWSER_WEB_MESSAGE_H_
Scott Violet53bfef62020-06-09 00:43:077
8#include <vector>
9
10#include "base/strings/string16.h"
11#include "third_party/blink/public/common/messaging/message_port_descriptor.h"
12
Scott Violet63553fe2020-06-09 16:59:2513namespace js_injection {
Scott Violet53bfef62020-06-09 00:43:0714
15// Represents a message to or from the page.
16struct WebMessage {
17 WebMessage();
18 ~WebMessage();
19
20 base::string16 message;
21 std::vector<blink::MessagePortDescriptor> ports;
22};
23
Scott Violet63553fe2020-06-09 16:59:2524} // namespace js_injection
Scott Violet53bfef62020-06-09 00:43:0725
Scott Violet63553fe2020-06-09 16:59:2526#endif // COMPONENTS_JS_INJECTION_BROWSER_WEB_MESSAGE_H_